Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are on form not refreshing properly
Message
From
07/08/2020 17:39:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01675612
Message ID:
01675618
Views:
66
Well, figured out a bit more. I had already been setting the control to visible after instantiating. When I looked via the debug window, all controls inside the container were .visible = .T. (so it seems that only the container is instantiated with .Visible = .F.).

But then I noticed that one of the inner controls (a label) did start off as visible - it was on the visible part of the form whereas the other controls were off screen - it is a scrollable form so they can add as many blocks as they like.

So it would seem that there must be some method that needs firing to refresh the controls below the bottom edge that are not currently on the screen.

I will keep looking...

>>Hi all,
>>
>>Have started to build a new form adding controls at run time as needed (follow on of previous discussion). Each set of controls needed is inside of a container - for ease of adding a new "block" of controls.
>>
>>Upon form startup, no problem. The user is presented with one container full of controls. They then have a button to add additional blocks of controls.
>>
>>When I do this, the controls are there (i.e. via debugger) but they are not displayed. I have tried a) refreshing the page b) refreshing all the controls in the container and c) refreshing the container itself either before or after I refresh all the controls inside the container.
>>
>>If I click into where the container should be or even just hover over the area, the controls start to become visible.
>>
>>Is there a certain order I need to refresh things or ??
>>
>>Thanks,
>>Albert
>
>
>Try setting the control to be visible upon instantiation and you also can use SetAll to set all inner controls to be visible too (may be in container's init method). In other words, you need to make the container visible explicitly as all objects are created invisible as far as I recall.
Previous
Reply
Map
View

Click here to load this message in the networking platform