RRButton Redraw

Started by Mark Strickland, December 15, 2005, 11:32:26 PM

Previous topic - Next topic

Mark Strickland

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?

Mark Strickland

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>

TechSupport

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.

Mark Strickland

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.