Board index » delphi » Form resize with "Show window content" turned on.
Jim Roberts
![]() Delphi Developer |
Tue, 04 May 2004 08:59:41 GMT
|
Jim Roberts
![]() Delphi Developer |
Tue, 04 May 2004 08:59:41 GMT
Form resize with "Show window content" turned on.
Does anyone have a clue how to resize forms with a lot of controls avoiding
flicker. This is with the "Show windows content while dragging" (SPI_SETDRAGFULLWINDOWS) is set true. My D5 apps flicker noticeably. ...I mean other than get a good graphics card. <G> I'd like to perform like Outlook/Excel/Word. D5 forms looks great too, In fact, it seems that it is only really noticeable on TGroupBox captions Thanks, |
Leontin Birsa
![]() Delphi Developer |
Tue, 04 May 2004 14:25:36 GMT
Re:Form resize with "Show window content" turned on.Well... Full window drag does not repaint the window at all! It takes a "snapshot" (a image) of the window and moves that around the screen. Therefore at the end of the drag everything looks "so fast" to you. Actualy only the windows behind the one you drag receive pain commands... You can simply test that... on the onpaint event of an object insert Sleep(1000); which will force a 1 s dely in the repaint process (disregarding that you move it or resize it) and test when you revive the paint commands... (of course you can still use breakpoints... but this will explicitly slow down the paint process). Lusu. Quote"Jim Roberts" <rober...@aruplab.com> wrote in message Quote> Does anyone have a clue how to resize forms with a lot of controls |
Jim Robert
![]() Delphi Developer |
Tue, 04 May 2004 14:49:44 GMT
Re:Form resize with "Show window content" turned on.Thanks Leontin. I will try this test. Something is going on because as the form resizes several of the controls flash dramatically. This is a resize not a move. It almost must be a repaint to my thinking because the orientation of the control is changing with respect to the sides. The form is dilating while the controls remain the same size and move with respect to their anchored sides. ..but then, I've been sure (and wrong) many times before. I clearly am not doing something that I could be. Jim Quote"Leontin Birsan" <l...@creon.ro> wrote in message news:3bf4b0e5_2@dnews... |
Renate Schaa
![]() Delphi Developer |
Fri, 07 May 2004 07:11:36 GMT
Re:Form resize with "Show window content" turned on.QuoteIn article <3bf4b70f_2@dnews>, Jim Roberts wrote: I'm not so sure this can be "fixed". The resizing, especially with procedure TForm1.FormResize(Sender: TObject); procedure TForm1.WMNCHitTest(var msg: TMessage); This basically undoes the user's setting, and might not be what (s)he If someone has a better idea, I'd be interested! Renate |