Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container & Separator classes - Examples
Message
From
24/11/1998 12:47:19
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160961
Message ID:
00161002
Views:
26
Michel,

I've never used the SEPARATOR, but I find the CONTAINER handy for three uses. First, it can be used to group a number of objects together that are placed "inside" the container. The objects can then be moved and positioned as a group. Secondly, CONTAINERs allow special visual effects for objects by selecting "raised" or "sunken" as the layout SpecialEffect. Some objects like radio buttons are designed by FoxPro to be in containers of their own because radio buttons are always logically associated with each other. Thirdly, I've used containers to put little pictures on a form that can change when data or conditions change. This is done by changing the container's "picture" property. For example, a locked or unlocked padlock picture to indicate the locked status of a record. The container makes a nice little frame around the picture. You change the picture programmatically by:

thisform.container1.picture="whatever"

Remember, when using containers you must include the container name to identify the objects inside, for example:

thisform.container1.command1.enabled=.f.


HTH!
Allen

>I am not sure as to what sort of applications the CONTAINER and
>SEPARATOR classes could be used for.
>
>I would be interested in hearing about how others have used
>those two classes to good effect.
>
>Michel.
Previous
Reply
Map
View

Click here to load this message in the networking platform