Visible

[method icon] Visible(iSet)

Makes the controls in the group visible/invisible

iSet Integer Whether to make visible or invisible controls in the group

Applies to: Group


[property icon] Visible

Makes the control visible/invisible

This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Generic


[property icon] Visible

Makes a menu item visible/invisible

Boolean property

Applies to: MenuItem , TabbedItem


>

Visible

If set to True the control is visible and can therefore be used. Controls can be made invisible by setting the this property to FALSE. This can be useful if you want to temporarily hide a control from the user. For example to temporarily remove a list box from view you could use the following:

.listControl1.Visible=FALSE

And to find out if the list box is currently visible the following could be used:

ListBoxState = .listControl1.Visible

The Enabled property can be set to FALSE to leave a control visible but inactive. It will generally be greyed out to indicate the disabled status.

Though this is a style and so would not normally be available at run time, there is special support at runtime for setting and inspecting Enabled and Visible.

It can be used with groups as a method to make all controls within the group invisible and visible. Specifying a value of TRUE means that the controls in the group will be made visible while a value of FALSE hides the controls. Groups are set up and named at design time within the Form Designer. For example the following would hide all the controls in the group grpControl1:

.grpControl1.Visible(FALSE)

If a control with focus is made invisible the focus will pass to the next control in sequence. If the target tab page is the current page when the property is set to FALSE then the next visible, enabled page in left to right order becomes the new current page.

See also

Generic methods, properties and events. Group methods, properties and events. MenuItem methods, properties and events. TabbedItem methods, properties and events.