Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe within a Pageframe - issues?
Message
From
14/11/1999 19:50:28
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00289929
Message ID:
00291143
Views:
37
I found the problem - kinda interesting, it may be a bug:

I tried to use Shape controls (BackStyle - Transparent; SpecialEffect - 3D, ZOrder - sent to back) to outline sets of objects in presentation containers. The containers' UIEnable invokes a custom method, SetObjects, which sets properties, performs requeries, and then This.Parent.Refresh().

After repeated firing of UIEnable, the BackColor of the Shape control will bleed through the BackColor of TextBox controls, Spinners, Grid Headers, and probably other controls I haven't tested. This occurs when the controls recieve and / or lose focus.

I took out the Shape controls and all is well. Nice way to spend half-a-Saturday. :>)


>Can you move the Requery() code to the controls that are causing the view parameters to change? This is typically where I do it. I've never tried doing anything more than a this.parent.Refresh() inside UIEnable.
>
>Is the container Transparent or Opaque? You might try altering the colors and the pages, form and container to see which color is really bleeding through. You might also make the container Opaque and have it grab the correct BackColor to use at runtime from this.parent.BackColor
>
>>My PageFrame class is essentially the same - it instantiates a cPgfManager hook object which, in turn, adds the page instances. Yes, the event tracking verifies the firing sequence for the UIEnable Event.
>>
>>Here's the current problem: Each pages contains a presentation object (container class containing other controls) some of which require the REQUERY() of a parameterized view in the UIEnable Event of the presentation container.
>>
>>Everything seems to work fine until a few pages are activated, after which the background color of a textbox or editbox changes (from white to grey) when the control recieves or loses focus. I can still edit the controls and all my TableUpdate(), TableRevert(), and Transaction code works flawlessly. It's just the damned background color.
>>
>>There is no GotFocus / LostFocus Event code in any of these controls. I'm stumped.
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform