PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: rrioja on September 01, 2009, 02:47:00 PM

Title: Disappearing frames
Post by: rrioja on September 01, 2009, 02:47:00 PM
I found a bug in FireFly 2.99 that is very easy to recreate.

New project, new form, add a frame, and a text box.  It does not matter if the text box is in the frame or not.  Then go to the window styles properties of the text box and check ES_NUMBER.  Now run the program and enter a non-number into the text box.  A pop-up will appear telling you that you entered an incorrect number.  Now click on the pop-up's X to get rid of it, and the frame will disappear !!!  If you have several frames in the form, they will all disappear.  You can bring them back by resizing the form.

Does anyone have a solution?
Title: Re: Disappearing frames
Post by: TechSupport on September 02, 2009, 03:44:55 PM
Thanks Robert - I'll check into it to see if I can recreate it and fix it.

Title: Re: Disappearing frames
Post by: Roger Garstang on September 04, 2009, 02:19:17 PM
This has been around for a while.  Same issue happens with password boxes and you have the caps lock on...these are both new features of XP Themes.  I think the solution for me was turning off themes or turning off the vert/horz redraw check boxes in the class styles.  I mentioned the redraw of frames, listviews, and statusbars in general flickering on resizing the window in another location as something to look at...perhaps when he figures out how to stop that this will fall into place too.
Title: Re: Disappearing frames
Post by: Roger Garstang on September 04, 2009, 02:42:10 PM
Looks like these threads all relate to the issue:

http://planetsquires.com/support/index.php?topic=975.0

http://planetsquires.com/support/index.php?topic=2203.0

http://planetsquires.com/support/index.php?topic=1932.0

And, it appears my fix was clip styles not redraw.  There was another thread I saw in searching for this about an issue redrawing frames and labels with transparent backgrounds that was fixed and could need looked at further or maybe even be the cause?  Either way, the XP Tooltip is a little odd in how it forces a redraw the way it does.  None of my tooltips do this.