Applies to

MDI windows.

Description

Returns the name of the MDI frame for an MDI child window, or null if the specified window is not an MDI frame or child. Use with Get_Property() only.

Usage

mdiframe = Get_Property (windowID"MDIFRAME")

Example: Getting a Reference to an MDI Frame

Suppose you write code for the Click event of a button and you need a reference to a window's MDI Frame, if it exists. The code below will get that reference. If the MDI frame does not exist, the variable Parent will return @window instead of the MDI frame reference.

Parent = @window
Frame = Get_Property(Parent, "MDIFRAME")
if len(Frame) then
  Parent = Frame
end
  • No labels