PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Mark Strickland on December 15, 2005, 11:32:26 PM

Title: RRButton Redraw
Post by: Mark Strickland on December 15, 2005, 11:32:26 PM
I am using an RRButton and I am having a problem with it "disappearing".

I have a POPUP form that covers the button and when the POPUP closes the RRButton does not repaint.  After the form closes I have tried to do a FF_REDRAW and the RRButton send message to repaint but nothing works.

Any suggestions?
Title: I fixed it -- but I don't understand
Post by: Mark Strickland on December 16, 2005, 10:12:21 AM
I fixed the problem by putting a redraw of the RRButtons in the FORM Paint Event to do a FF_REDRAW.

Not sure what is up because I created some test projects and could not duplicate the problem.  All the RRButtons repaint as expected when things POPUP over them and then close.

<sorry>
I have said it before and I will say it again ---

Windows --- I Love It --- I Hate It.

</sorry>
Title: RRButton Redraw
Post by: TechSupport on December 16, 2005, 11:49:34 AM
I assume that your RRButtons were on tab control child forms, right? If so, then I think I know why the problem occurs. By default the WS_CHIPCHILDREN style is not set for tab control child forms. I believe that the code generator bypasses any user set styles and uses its own styles when the code is generated. I will fix for the next update.
Title: You are correct - On Tabs
Post by: Mark Strickland on December 16, 2005, 12:08:36 PM
Thanks for the reply and knowing I am not BASIC-ly challenged.

In this application just about everything is on tabs -- much of it two levels deep.

The work-around to force a redraw of all RRButtons in the paint of the form seems to work OK.

I tried to set WS_CLIPCHILDREN on the child form where the RRButton is located but it has no effect.  If I understand your comment the code generator ignores that anyway for child forms of tab controls.

Thanks.