Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages
Started by Dan
Fri, 23 Feb 2007 20:54
Preventing VCL Components from updating
Author: Dan
Date: Fri, 23 Feb 2007 20:54
Date: Fri, 23 Feb 2007 20:54
12 lines
1357 bytes
1357 bytes
Basic question. I have a VCL object, TStringGrid, that I want to apply a number of changes to, but I don't want to see the screen flicker. Or in otherwords, I want all my changes made, and then the screen redrawn. I can accomplish that to some extent by setting Visible to false and , doing all the updates, and then setting it to true, but that does cause the screen to become invisible briefly. Is there a better way that doesn't make the component invisible, and thus flicker?
Re: Preventing VCL Components from updating
Author: Remy Lebeau (TeamB)
Date: Fri, 23 Feb 2007 21:17
Date: Fri, 23 Feb 2007 21:17
13 lines
1273 bytes
1273 bytes
"Dan" <Dan@do.not.spam> wrote in message news:45df54b7$1@newsgroups.borland.com... > Is there a better way that doesn't make the component invisible, > and thus flicker? Send a WM_SETREDRAW message with its wParam set to FALSE to the grid's HWND before making the update, and then send it again with wParam set to TRUE afterwards. Gambit
Re: Preventing VCL Components from updating
Author: Dan
Date: Fri, 23 Feb 2007 21:53
Date: Fri, 23 Feb 2007 21:53
16 lines
1356 bytes
1356 bytes
Remy Lebeau (TeamB) wrote: > "Dan" <Dan@do.not.spam> wrote in message > news:45df54b7$1@newsgroups.borland.com... > >> Is there a better way that doesn't make the component invisible, >> and thus flicker? > > Send a WM_SETREDRAW message with its wParam set to FALSE to the grid's > HWND before making the update, and then send it again with wParam set > to TRUE afterwards. > > > Gambit > > Thanks
Re: Preventing VCL Components from updating
Author: DreamChaser
Date: Fri, 23 Mar 2007 04:11
Date: Fri, 23 Mar 2007 04:11
8 lines
1306 bytes
1306 bytes
>> >> Send a WM_SETREDRAW message with its wParam set to FALSE to the grid's >> HWND before making the update, and then send it again with wParam set >> to TRUE afterwards. I had done this in an app and found that I needed to force a repaint after send the TRUE. DC
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads