The currently visible embedded form.

Usage

Set_Property(OLECtrlEntID, "OLE.ActiveForm", Name)

Values

Name can be any string.

Default: ""

Remarks

The ActiveForm property sets the currently visible form that was embedded using AddNamedForm.

This property must be called after using AddNamedForm, since AddNamedForm will not set the active form.

Example

// Add two windows to the form, then show the second one
NewWindow = Start_Window("MY_FIRST_WINDOW")
Handle = Get_Property(NewWindow, "HANDLE")
Send_Message(@Window:".OLE_PANEL", "OLE.AddNameForm", Handle, "FORM_A", 1, 0)
NewWindow = Start_Window("MY_SECOND_WINDOW")
Handle = Get_Property(NewWindow, "HANDLE")
Send_Message(@Window:".OLE_PANEL", "OLE.AddNameForm", Handle, "FORM_B", 1, 0)
Set_Property(@Window:".OLE_PANEL", "OLE.ActiveForm", "FORM_B")

See Also

AddNamedForm, RemoveAllNamedForms, RemoveNamedForm

  • No labels