Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing controls from a form
Message
From
12/03/2021 07:39:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01678811
Message ID:
01678930
Views:
88
>Hi,
>
>I am wondering how others deal with the following situation. Here is how I do:
>
>I have a form where some customers need to see a row of controls (three labels and three textboxs). Other customer do not need to see or use them.
>I place these controls on the form and set the Visible of all to .T.
>At run time, when the form is initialized - based on some setting that calls for these controls not be be used - the code sets the property Visible of all controls to .F. Then, there is a LOOP through all controls and the TOP value is decreased by 26 (the space for these controls).
>This works. But I wonder how others would do it.
>
>TIA

Hi!
In Our APP nearly every Form is customiseable. If you look at the form in the Designer there are no textboxes, comboboxes etc.
At Runtime (first opening of the form) we genrerate alle input fields, Pages of Pageframe,... by newobject() Command based on a Table in the Customers Database. So every Cusomer can customize his Program. In a little Form we can "configure" these Objects.
Jörg Schneider
Joerg.Schneider@SMARTCRM.de
SMARTCRM CRM powered by MS Visual FoxPro
SMARTCRM GmbH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform