ADG itemRenderer Redraw issue
here is the long and the short of it.
I have the following system in place
Advanced Data Grid with a list of data created objects. One
of the columns has an item renderer on it, it also happens to be
the itemEditor.
I have a method on the itemRenderer component (which is
derived from a canvas) that is called at creationComplete
in this method I use the data object to determine the type of
object I am going to add to the canvas
IE if the data.@Type has a 1 then it creates an hBox and
three radio buttons and adds that to the canvas. Then it adds a
event handler for the item click at the radio button group level
and changes the public string for the result.
in turn the editorDataField is the name of the public member
of the itemRenderer / itemEditor
so here is the problem.
I have a large enough grid that the column is off the main
display area so I have to scroll to it. If i scroll over there, and
set some of the radio buttons and scroll away from it when I scroll
back the itemRenderer that has set data is in a different place. It
seems like the row and the renderer are not in sync.
it is a simlar problem when it pretains to a grouping also,
the place where the render should be is misplaced not quite sure
what the issue is.
is there a refresh that I need to do ?
also have a problem with the filter and the redraw but I
think that its linked to this initial problem.
Anyone have an idea or a place to point me in the right
direction? any help would be amazing.
Thank you all in advance.
-D
below you will find my itemRenderer code and the advanced
grid layout
"Jorlett32" <[email protected]> wrote in
message
news:ge848t$mch$[email protected]..
> here is the long and the short of it.
>
> I have the following system in place
>
> Advanced Data Grid with a list of data created objects.
One of the
> columns
> has an item renderer on it, it also happens to be the
itemEditor.
>
> I have a method on the itemRenderer component (which is
derived from a
> canvas)
> that is called at creationComplete
>
> in this method I use the data object to determine the
type of object I am
> going to add to the canvas
>
> IE if the data.@Type has a 1 then it creates an hBox and
three radio
> buttons
> and adds that to the canvas. Then it adds a event
handler for the item
> click
> at the radio button group level and changes the public
string for the
> result.
>
> in turn the editorDataField is the name of the public
member of the
> itemRenderer / itemEditor
>
> so here is the problem.
>
> I have a large enough grid that the column is off the
main display area so
> I
> have to scroll to it. If i scroll over there, and set
some of the radio
> buttons and scroll away from it when I scroll back the
itemRenderer that
> has
> set data is in a different place. It seems like the row
and the renderer
> are
> not in sync.
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
Q2
Similar Messages
-
Hi everyone
My new Macbook appears to have screen redraw issues (as I've mentioned in other posts). It often does not redraw the screen quickly or smoothly. It may redraw the screen in bands from the top, or the Dock may come up in jerks. Also, the cursor often freezes, especially when switching from one app. to another, or after performing a function in an app (e.g. Save, or Delete in Finder). Messing around with the keyboard or trying another function often unfreezes the cursor again. It's frustrating.
I think it's probably a compatibility issue, since quite a few of the applications I transferred over from my iBook are not yet available as fat binaries ("universal" binaries). Yet they seem to work OK. I'll post about that separately.
If anyone else has experienced screen redraw issues, I'd be interested to hear about them. This machine should run much faster than my iBook, not much more slowly.Thanks again, Shawn. I wasn't sure whether to post all the problems as one mess, or separately so people could search for them separately. I decided on separately, in case they weren't related, but mentioned the other bits in each post in case they were.
I myself searched under all these problems, but had little success. I don't know if that's an artefact of the Search or not. I suppose it depends on things like using "frozen cursor" or "freezing cursor". I certainly found more posts related to my problems when I read all the forum posts for MacBook Users. It took quite a while, but was more productive than searching. I'd rather not have to spend quite as much time on finding data, though.
Thanks again.
from Clytie -
Redraw issues when compile for Air
This is about redraw issues which occur in Flash, when I try to compile a file in Air 2.6. The initial files were built in inDesign CS5.5, saved as a FLA, and opened in Flash CS5.5.
I created a test file in inDesign to be used as an Air App, as I saw discussed and done on several videos on Adobe.tv. The file has 3 pages. The pages are pretty simple. Though there are some clipping paths and animation.
Here are the steps:
1.
I ported the filed to Flash, as a FLA.
2.
I opened the FLA in Flash, and added some more animation.
I added simple code so the file will go from frame to frame, (what were the pages in inDesisgn), on mouse click in the frame.
3.
If I complie it is Flash, it works.
4.
If I compile it in Air, which I want to do, when it gets to the last page, it starts to have redraw-issues.
When the user clicks on page/frame 3, (the last page), there is AS3 code, a gotoAndStop(), which normally takes the user back to frame 1. But in Air, the user gets to page one, but only sees page 3, thinking they are on page 3, as the redraw of page 1 never occurs. I tested this very carefully, by rebuilding the whole thing and removing every element and all code and starting over piece by piece to isolate the issue.
5.
The issue seems to be, if I remove all the pagespreads from inDesign, which the FLA transformed into "movieclips" in Flash, it works fine without redraw issues. If I add any of the pagespread movieclips to a frame in the Flash file, as they were when imported, the redraw issue occurs, but only when I compile in Air.
Have you heard of this before? I was wondering if there might be some settting in Air that is conflicting with the inDesign created pages which are now movieclips in Flash. I am hoping there is something that I can do to fix it, as I would like to continue to create the spreads in inDesign.
I am working on a PC in Windows Vista. I wondered if this was the issue as well. I can share the file if you want to see it, compiled in flash, and compiled in Air or the FLA.
Thanks very much,
eI fixed it. it was not the code. it was the use of text. This time when exporting to an FLA from indesign, I turned the TLF text to pixels, and now it compiles fine. I isolated the problem by dismantling each item in the indesign spread, and seeing when the problem occured. once I removed the type, it had no issues. I was using hanging indents. Maybe that was the issue. All I know is once I turned off the TLF text option, there are no problems.It is sad to lose that feature. but at least it works, and I would rather have my type look well formatted with hanging intents, and correct kearning, even if i have to rasterize it first.
geez. that was fun. -
Application redraw issue over Citrix and Terminal Server
Hi All,
We provide a client-server application which connects to a SQL Server database. The middle-tier is hosted on an application server (Windows Server 2008 R2) which in turn connects to the SQL Server database. The fat client can either be installed on user laptops/desktops
or published using Citix/Terminal services.
We have a long standing issue which frankly I just cannot fathom. A customer has published the client via Citrix to users and using roaming profiles. If an employee is using the application in London, the roaming profile is created on a server in London and
connects to the middle-tier in London. If an employee is using the application in Glasgow, the roaming profile is created in Edinburgh and the user connects to the middle-tier in London. The customer is also using DFS
The roaming profile consists of the 'My Documents', 'My Pictures', 'My Videos', 'My Music' and 'Windows' folder. Distributed File System (DFS) is used for roaming profile folder replication between offices. See http://technet.microsoft.com/en-gb/library/cc732863%28v=ws.10%29.aspx
The Edinburgh users are experiencing application redraw issue where the interface loads in chunks. For example, when a user scrolls up and down or left and right, the data loads immediately (from SQL Server) but the interface (GUI) loads in blocks. You can
actually see each segment of the GUI components loading. The issue also occurs if connecting via a Terminal Server where the application is also installed.
For London users, it all works fine. If an Edinburgh user comes to London, they have no issues.
The network connection is super fast between the various offices.
The application is built using C++ and Delphi and uses the GDI API to draw the objects.
Any guidance is appreciated.Hello partner,
Thanks for contacting Microsoft. This is Sophia who is going to help with this issue. From your description, I learnt that users from Edinburgh have application redraw issue. However, London users worked fine. Please let me know if I misunderstand your purpose.
Based on the information, it seems that the issue located in the middle-tier in London. Could you try building a middle-tier in Edinburgh and then test how the issue goes?
Besides, based on my experience and research, by default the allocation of the bandwidth is 70 percent for graphics data and 30 percent for virtual channel data, meaning when bandwidth usage is under pressure, graphics data is guaranteed to get 70 percent
of the available bandwidth. And we can tweak the settings a bit for some scenarios. To change the settings, we can set registry values. Please reference the information below.
===========================================================================================================================================
Note: For these settings to take effect, the computer must be restarted.
Following is the list of registry values that affect the bandwidth allocation behavior. These are all DWORD values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD:
· FlowControlDisable: When set to 1, this value disables the new flow control algorithm, making it essentially First-In-First-Out (FIFO) for all packet requests. This provides results similar to Windows Server
2003. (The default for this value is 0).
· FlowControlDisplayBandwidth / FlowControlChannelBandwidth: These two values together determine the bandwidth distribution between display and virtual channels. You can set these values in the range of 0–255.
For example, setting FlowControlDisplayBandwidth = 100 and FlowControlChannelBandwidth = 100 creates an equal bandwidth distribution between video and VCs. The default is 70 for FlowControlDisplayBandwidth and 30 for FlowControlChannelBandwidth, thus making
the default distribution equal to 70–30.
· FlowControlChargePostCompression: If set to 1, this value bases the bandwidth allocation on post-compression bandwidth usage. The default for this value is 0, which means that the bandwidth distribution is applied
on pre-compressed data.
For more information about RDP Bandwidth, please reference the article below.
================================================
Bandwidth Allocation for Terminal Server connections over RDP
http://blogs.msdn.com/b/rds/archive/2007/04/09/bandwidth-allocation-for-terminal-server-connections-over-rdp.aspx
Top 10 RDP Protocol Misconceptions – Part 1
http://blogs.msdn.com/b/rds/archive/2009/03/03/top-10-rdp-protocol-misconceptions-part-1.aspx
If you have any concerns about the action plan above, feel free to let me know.
Best regards,
Sophia Sun
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Photoshop cc redraw issues mac yosemite
having issues with mac yosemite, intel hd 4000 1024mb card, 16gb ram and 2.5 intel core i5 with photoshop cc 2014. it has redraw issues when you draw objects around the screen.. its jjittery and not smooth like it should be. i dont know why this is happening but would like to know when it will be fixed. it seems to only be happening on mac osx because i have bootcamp with windows 7 running on this same macbook pro and it runs perfectly fine on there. any ideas on whats going on and when this will be resolved?
A downgrade don't work for me. The Mac is brand new (3 Days old). Yosemite is the custom os. I think a downgrade is impossible.
I'm very disappointed about that, because i bought this machine just for Photoshop... -
We're having screen redraw issues when panning and zooming pages. Getting screen anomolies and jittery display performance. It only happens when using InDesign, no other apps exhibit similar issues.
PC specs are:
WinXP Prop SP2
Dell Optiplex GX620, 2GB RAM
ATI Radeon X600, 256MB Video Card
Dual Dell 19" Flat Displays
Tried setting Display Performance slider in Prefs to middle setting and still getting redraw problems.
Is there a setting for the video card that might help?
Thanks,
-DannyInDesign is known to have display issues with scrolling (white bars appearing where the edge of the screen used to be), although I don't believe I've ever seen it panning. As far as I know there is nothing you can do but grumble.
Not a lot of help, I'm afraid.
Peter -
Redraw issues after FLA imported to Flash, and Compiled in Air
I created a test file in inDesign. It has 3 pages. The pages are pretty simple. Though there are some clipping paths and animation.
I ported the filed to Flash, as a FLA.
I added video in Flash, and some more animation.
I added code so the file will go from frame to frame, (what were the pages), on mouse click in the frame.
If I complie it is Flash, it works great.
If I compile it in Air, which I want to do, when it gets to the last page, it starts to have redraw-issues.
When the user clicks on page 3, there is a gotoAndStop(), which normally takes the user back to page 1. But in Air, the user gets to page one, but only sees page 3, as the redraw never occurs. I tested this very carefully, by rebuilding the whole thing and removing every element.
The issue seems to be, if I remove all the pagespreads, which are now "movieclips" in Flash, it works fine without redraw issues.
If I add any of the pagespread movieclips to a frame, as they were when imported, the redraw issue occurs, but only when I compile in Air.
Have you heard of this before? I was wondering if there might be some settting in Air that is conflicting with the inDesign created pages, which are now movieclips.I am hoping there is something that I can do to fix it, as I would like to continue to create the spreads in inDesign.
I am working on a PC in Windows Vista. I wondered if this was the issue as well. I can share the file if you want to see it, compiled in flash, and compiled in Air.
Thanks very much,
eJust to update. this is relevant for inDesign users who want to port to Flash, and compile as an app in Air.
It turned out what was causing the problem was my use of the TLF text. Air did not like it and caused it to error and not function. I rasterized the text on export as a FLA instead, and it compiled fine. It may be my use of kearning, hanging indents, etc. I refined the text alot in inDesign, as would most designers. Maybe the samples used in testing never had hanging indents? Anyway, it works fine, as long as I rasterize. This loses the nice TLF editing function in Flash. But at least it works and the text looks good.
Any info on this, or if anyone reproduces the error, I'd be interested in hearing. -
Screen redraw issues after update to 10.7.4
Anyone else seeing screen redraw issues since updating to 10.7.4? Suddenly, the zoom tool stops working or causes visual errors.
thank you FFS48, it really helped and might work fine as temporary solution. I was about to restore my OS from backup to 10.7.3 version... as booting from it made no errors. The latest 10.7.4 update filled my log filles with different error messages like:
2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PC2C kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PD0R kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PN1R kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PG0C kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
which might be caused by iStatMenus as these log entries are allways next to iStat log entries.
I often need to access my Mac Pro using Back to my Mac from my MBP. Do you know will it still be possible having WiFi on MacPro off?
It is strange, that the latest update delivered more visible problems than benefits....
What I tried to solve the problem and that did not work:
- Disable WiFi sync on iTunes (after reading some forums discussing similar problem)
- Uninstalled Xcode (as some forums suggested)
It is some how related to WiFi and iOS devices that sync to that computer. Switching these iOS devices off - removes the problem, and I believe it should be reported to Apple.
Is there any URL to Apple bug submit form? -
Safari 3.0.4 window redraw issues
I recently updated to 10.5.2 and Safari 3.0.4 (5523.15) on my MacBook Pro (15", 2.4GHz). Ever since the update, I'm having screen redraw issues in Safari where artifacts are left on the browser window while I attempt to scroll vertically through a web page.
After playing around, I have discovered that if I use the vertical scrollbar, everything works properly. But if I use the touchpad scrolling (ie. via dragging two fingers on the touchpad), the window scrolls but it does not redraw properly leaving multiple copies of sentences smearing into each other making the page unreadable. The only way to clear is to use the scrollbar to scroll up and down and force the browser to redraw those portions of the window.
Has anyone else seen this issue and know of any work arounds. Up until this point, I have gotten very used to using the touchpad scrolling and it worked fine until the 10.5.2 update after which I'm getting this smearing if I scroll using the touchpad. =(I had the same problem not only in Safari but in Finder as well. Serious it was too. It appeared after installing the 10.5.2 update. I got the advise from my local Mac dealer to reset the System Management Controller (SMC). I did as he said and now it works just fine
SMC reset instruction for MacBook Pro:
[http://docs.info.apple.com/article.html?artnum=303319] -
IMac 27" -Photoshop CS3/CS4 redraw issues- anyone else?
Hello Forum,
I am a pro photographer.
I do have the new 27", 3.06Gh, with 10.6.2.1
When I start up CS3 or CS4, open a picture at 100%,
and scroll within it, the borders show the "chess" pattern, and I have redraw issues.
Any help would be appreciated.
Thank YouOK, sorry I didn´t follow this thread the last weeks.
This has to change now
I´m on 10.4.3.
It didn´t bring ANY improvement.
I have all updates installed, all firmware upgrades.
My videocard is the Radeon HD 4670.
Screen redraw is an absolute pain.
For example, if I have a lasso istalled, or work on a layer I see no refresh, or lagged, sometimes the picture reverts to a previous state, but only in displaying the data.Once I zoom in, I can force a correct display. -
Lately, I'm having redraw issues with menus that seem to apear at random. To demonstrate:
http://img156.imageshack.us/img156/2931/screenahg.png
This time, menu from avant window navigator remained on screen, but it also happens with other applications menus. When I killed awn, te menu disapeard. It also disapears after some time by itself, but it varies. I know it's not a window manager issue, because I replaced metacity with openbox with no success, and openbox --restart when this occurs doesn't to anything.
Any ideas to fix this?Same problem here:
http://img413.imageshack.us/img413/3548 … hot1yq.png
Using Radeon 4670 with xf86-video-ati + Gnome (with Metacity compositing_manager enabled).
Last edited by Da_Coynul (2010-10-20 01:08:18) -
I am noticing that Photoshop seems to not redraw or refresh sometimes... seems to happen after I get several edits in. I will unhide or hide a layer, nothing happens on the canvas... I zoom in, then the change appears.
I am running on a mac pro (dual quad core xenon) 8gb ram, geforce 8800.
And before you blast me, yes, I have done all the tips in the performance thread.
I thought this may be an openGL issue, but when I disable that, same problem.
Again, this seems to happen after I get about 10-20 edits in... and my history is only set to 50. and the file I am working on is only about 20 layers.
Why do I get the feeling Adobe is really dropping the ball on the mac side of things???I get a lot of the same redraw bugs too.
Sometimes it won't show the front most document when switching between open files.
Sometimes I have to zoom in and out to see changes. Sometimes hitting 'tab' and flicking the tools on and off gets it to work. Sometimes I just quit and try again.
I can't find a pattern to it, just happens now and again. Really breaks my stride.
Interestingly we are running virtually the same system notably the 8800 (mine's 'GT', whatever that means).
After all the nonsense with the VM Buffering plugin, did it do any good? -
Richedit redraw issue. Windows 8 specific.
Hi,
Source code for demo application is pasted at the end of the message. Just add it to a blank Win32 project in Visual Studio and run on Windows 8. When compiled as is on my system the main window looks like this after the startup.
If I change n_lines_in_edit at the first source code line to 20, Richedits redraws correctly.
I need help figuring out how to make sure Richedit redraws correctly for any reasonable number of lines.
const int n_lines_in_edit = 200;
#include <stdlib.h>
#include <tchar.h>
#include <windows.h>
#include <WindowsX.h>
#include <Richedit.h>
#include <memory>
#define MAX_LOADSTRING 255
using namespace std;
// Global Variables
HINSTANCE hInstGlobal; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
TCHAR szChildClass[MAX_LOADSTRING]; // the child window class name
HWND m_hWnd;
HWND hWndFrame;
HWND hWndClient;
// Forward declarations of functions
ATOM FrameRegisterClass(HINSTANCE hInstance);
ATOM ChildRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
HWND CreateChildWindow();
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
MSG msg;
// Initialize global strings
wcscpy_s(szTitle, _T("Main window"));
wcscpy_s(szWindowClass, _T("FrameClass"));
wcscpy_s(szChildClass, _T("ChildClass"));
FrameRegisterClass(hInstance);
ChildRegisterClass(hInstance);
// Perform application initialization
if (!InitInstance (hInstance, nCmdShow))
return FALSE;
// Main message loop
while (GetMessage(&msg, NULL, 0, 0))
TranslateMessage(&msg);
DispatchMessage(&msg);
return (int) msg.wParam;
ATOM FrameRegisterClass(HINSTANCE hInstance)
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = sizeof(LONG_PTR);
wcex.hInstance = hInstance;
wcex.hIcon = 0;
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND);
wcex.lpszMenuName = szTitle;
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = 0;
return RegisterClassEx(&wcex);
ATOM ChildRegisterClass(HINSTANCE hInstance)
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0;
wcex.lpfnWndProc = ChildWndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = sizeof(LONG_PTR);
wcex.hInstance = hInstance;
wcex.hIcon = 0;
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH) (COLOR_3DFACE + 1);
wcex.lpszMenuName = 0;
wcex.lpszClassName = szChildClass;
wcex.hIconSm = 0;
return RegisterClassEx(&wcex);
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
hInstGlobal = hInstance;
m_hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
if (!m_hWnd)
return FALSE;
hWndFrame = m_hWnd;
ShowWindow(m_hWnd, nCmdShow);
UpdateWindow(m_hWnd);
CreateChildWindow();
return TRUE;
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
switch (message) {
case WM_CREATE:
CLIENTCREATESTRUCT ccs;
hWndClient = CreateWindow(_T("MDICLIENT"), _T(""),
WS_CHILD | WS_CLIPCHILDREN | WS_VSCROLL | WS_HSCROLL,
0, 0, 0, 0, hWnd, (HMENU)0, hInstGlobal, &ccs);
if (!hWndClient)
DestroyWindow(hWnd);
break;
ShowWindow(hWndClient, SW_SHOW);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefFrameProc(hWnd, hWndClient, message, wParam, lParam);
return 0;
HWND CreateChildWindow()
RECT r;
GetClientRect(hWndFrame, &r);
HWND hWnd = CreateWindowExW(WS_EX_MDICHILD, szChildClass, _T("Sample title"),
WS_CLIPCHILDREN | WS_CHILD, CW_USEDEFAULT, CW_USEDEFAULT, r.right / 2, CW_USEDEFAULT,
hWndClient, nullptr, hInstGlobal, ChildWndProc);
if (hWnd != nullptr)
ShowWindow(hWnd, SW_SHOW);
else
PostQuitMessage(0);
return hWnd;
LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
switch (message)
case WM_CREATE:
LoadLibrary(TEXT("Msftedit.dll"));
HWND hEdit = CreateWindow(_T("RICHEDIT50W"),_T(""), WS_BORDER | WS_VSCROLL |
WS_HSCROLL | WS_GROUP | WS_TABSTOP | WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE |
ES_READONLY | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_SAVESEL,
0, 0, 300, 200, hWnd, nullptr, hInstGlobal, nullptr);
SETTEXTEX stEX;
stEX.flags = ST_SELECTION;
stEX.codepage = -1;
char text[250];
for(int j = 1; j < n_lines_in_edit; j++)
sprintf(text, "Sample string #%d\r\n", j);
SendMessage(hEdit, EM_SETTEXTEX, (WPARAM)&stEX, (LPARAM) text);
Edit_SetSel(hEdit, -1, 0);
Edit_ScrollCaret(hEdit);
ShowWindow(hWnd, SW_SHOW);
return 0;
case WM_SETFOCUS:
SetFocus(GetWindow(hWnd, GW_CHILD));
return 0;
case WM_MOUSEACTIVATE:
BringWindowToTop(hWnd);
return MA_ACTIVATE;
case WM_DESTROY:
break;
default:
return DefMDIChildProc(hWnd, message, wParam, lParam);
return 0;
O.Z.Hi O.Z,
I find this issue only happens on RICHEDIT50W, if you use RICHEDIT20W instead, this issue is gone.
Then I try send EN_REQUESTRESIZE notification code to notifies the rich edit control's parent window that the control's contents are larger than the control's window size.
SendMessage(hEdit, EM_SETEVENTMASK, 0, ENM_REQUESTRESIZE);
I find the issue is gone with RICHEDIT50W, maybe this can be a workaround for this issue, hope this helps some.
Best regards,
Shu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hey all,
A strange problem i came across:
I have a ADG which gets its data from an XML of 3 levels
(<root><node><childnode/></node></root>)
All works great but i have this strange issue:
Once a drag&drop action is completed the first row of the
ADG is automaticly selected.
I tried using the dragComplete event and set the
myADG.selectedIndex to null, or -1 but it doesnt do anything (the
first row is still auto selected),
I did find that if i use myADG.expandall() in the
dragComplete event it does work, but it doesnt help me...
So my question is: how can i make the ADG not to select any
row after drag&drop action?
ThanksonDragEnter(event) {
if (fail) {
event.preventDefault();
DragManager.showFeedback(DM.NONE);
return;
} -
I need to force a redraw for a list itemrenderer. The code is
attached. Basically, I have a quiz question with the option in a
list, preceeded by a radio button. The data is coming from XML,
which identifies the correct option and an isSelected attribute
that stores which option the user chose. When the radio is clicked,
I do the following:
Set isSelected to 1 on the coorect XML node.
Set the style for the correct option to a changed background
and bolded text
Make the list unselectable.
Display the explanation.
Everything works EXCEPT: The item renderer for the correct
item doesn't resize. It only displays 1 line.
I've tried a number of things, including invalidateList(),
validateNow(), invalidateDisplayList() -- both before and after the
code identifying the correct option in the list.
Please help!
Thanks."nnmmooppqq" <[email protected]> wrote in
message
news:gohbor$93n$[email protected]..
>I need to force a redraw for a list itemrenderer. The
code is attached.
> Basically, I have a quiz question with the option in a
list, preceeded by
> a
> radio button. The data is coming from XML, which
identifies the correct
> option
> and an isSelected attribute that stores which option the
user chose. When
> the
> radio is clicked, I do the following:
>
> Set isSelected to 1 on the coorect XML node.
> Set the style for the correct option to a changed
background and bolded
> text
> Make the list unselectable.
> Display the explanation.
>
> Everything works EXCEPT: The item renderer for the
correct item doesn't
> resize. It only displays 1 line.
>
> I've tried a number of things, including
invalidateList(), validateNow(),
> invalidateDisplayList() -- both before and after the
code identifying the
> correct option in the list.
You haven't said what kind of control this is in. Some
controls will allow
you to do this with variableRowHeight set to true, but some
won't allow
resizing of renderers at runtime at all. You might want to
also try calling
invalidateSize() on your renderer.
HTH;
Amy
Maybe you are looking for
-
Getting the Error while restoring the iPhone3 back-up to iPhone4s
When i try to restore the back-up getting the error and restore is not happening with the iPhone3 data in iPhone4. I have observed the below error in MobileBackUp log Can any one help me in how to restoring the data successfuly. 2013-12-05 02:14:50.0
-
How do i get ahold of a real person? My phone is only showing a black screen so I can't get on it to get the serial number or call anyone. please help
-
My hard drive crashed. Should I replace it myself?
My last question posted about an hour ago helped me realize my hard drive on my mid-2009 13" MBP died. So now the question, should I just replace the hard drive myself? I am fairly comfortable around computers and have opened the computer and replace
-
How low can I sync -- limiting the addresses I sync
Am I able to limit the contact cards I sync between my Macs by making a subset and checking only that subset (in a similar fashion to limiting the different calendars I sync w/iCal)? Thank you.
-
Exporting FCE mov file into .flv
Quick question: I exported out of Final Cut Express on my MacBook Pro a .mov file using the "Quick Time Movie" option. Then, I pulled it into Mpeg Streamclip to transform it into an .flv (the only option our newspaper web system allows for videos). T