This shows you the differences between two versions of the page.
— |
koda:en:documentation:control_form [2014/07/10 10:47] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Form ====== | ||
+ | {{page> | ||
+ | {|class=" | ||
+ | |- | ||
+ | |class=" | ||
+ | |class=" | ||
+ | |} | ||
+ | A form is created by doing File -> New and selecting a template from the [[dialog_templates_gallery]] dialog or by clicking on the **New form** toolbar button. | ||
+ | \\ | ||
+ | # | ||
+ | |||
+ | |**Caption**|Text that appears in the title bar. Can contain [[koda: | ||
+ | |**ClientHeight**|{{KODA> | ||
+ | |**ClientWidth**|{{KODA> | ||
+ | |**Color**|Background color| | ||
+ | |**ContextMenu**|Specifies [[control_contextmenu|context menu]] to attach to form. [[koda: | ||
+ | |**Cursor**|Cursor shape to display when mouse is not over a control that has a shape specified | | ||
+ | |**Description**|{{KODA> | ||
+ | |**Enabled**|False generates <color blue> | ||
+ | |**Font**|{{KODA> | ||
+ | |**Left, | ||
+ | |**Width, | ||
+ | |**Hint**|Text that appears when mouse hovers over form. Overridden by Hints for controls | | ||
+ | |**Icon**|{{KODA> | ||
+ | |**Menu**|{{KODA> | ||
+ | |**Name**|Name of form and of the variable that is assigned its window handle in generated code. If not specified, no variable is generated | | ||
+ | |**OnClose**\\ **OnMaximize**\\ **OnMinimize**\\ **OnRestore**|For each of these events Koda generates (in Message Loop mode) a <color blue> | ||
+ | |**ParentForm**|{{KODA> | ||
+ | |**Position**|{{KODA> | ||
+ | |**Resizing**|{{KODA> | ||
+ | |**TrayMenu**|{{KODA> | ||
+ | |**Visible**|False hides the form | | ||
+ | |||
+ | # | ||
+ | |||
+ | ^ Constant ^ Description ^ Comments ^ | ||
+ | |WS_MAXIMIZEBOX|Form has a maximize box | | | ||
+ | |WS_MINIMIZEBOX|Form has a minimize box | | | ||
+ | |WS_SIZEBOX|Form has a re-sizing border |Same as | ||
+ | |WS_SYSMENU|Form has system menu on title bar|Requires WS_CAPTION| | ||
+ | |WS_DLGFRAME|Form has double border but no titlebar| | | ||
+ | |WS_CAPTION|Form has title bar |Includes WS_BORDER| | ||
+ | |WS_OVERLAPPEDWINDOW|Form is window with WS_OVERLAPPED, | ||
+ | |WS_MAXIMIZE|Form is initially maximized| | | ||
+ | |WS_CLIPCHILDREN|Excludes area occupied by child windows when drawing occurs within the parent window |Used when creating | ||
+ | |WS_MINIMIZE|Form is initially minimized | | | ||
+ | |WS_CHILD|Form is a child window|cannot have menu bar. Cannot be used with WS_POPUP | ||
+ | |WS_POPUP|Creates a pop-up window |Cannot be used with WS_CHILD| | ||
+ | |WS_POPUPWINDOW|Form is window with WS_BORDER, WS_POPUP, | ||
+ | |$WS_OVERLAPPED|Form has title bar and border |Same as WS_TILED | | ||
+ | |WS_HSCROLL|Form has horizontal scroll | ||
+ | |WS_VSCROLL|Form has vertical scroll bar| | | ||
+ | |WS_BORDER|Form has a thin-line border | | | ||
+ | |WS_CLIPSIBLINGS|If form overlaps another, this form shows fully | | | ||
+ | |DS_MODALFRAME|Form is dialog box with modal frame |Check WS_CAPTION for title bar, WS_SYSMENU for system menu | | ||
+ | |||
+ | # | ||
+ | |||
+ | |WS_EX_ACCEPTFILES|Form accepts file names into Edit and Input controls via drag-and-drop ((WS_EX_ACCEPTFILES: | ||
+ | |WS_EX_MDICHILD|Form is one of several that can be worked on simultaneously -- like MDI | | ||
+ | |WS_EX_APPWINDOW|When the Form is visible, force it onto taskbar | | ||
+ | |WS_EX_CONTEXTHELP|Puts **?** in title bar. Cannot use with WS_MAXIMIZEBOX and WS_MINIMIZEBOX. Same as WS_CONTEXTHELP | | ||
+ | |WS_LEFTSCROLLBAR|For right-to-left languages, moves vertical scroll bar (if any) to the left | | ||
+ | |WS_EX_OVERLAPPEDWINDOW| Form has raised edges and sunken client area | | ||
+ | |WS_EX_RIGHT|For right-to-left languages, text in Form and controls flows right to left | | ||
+ | |WS_EX_TOOLWINDOW|Form is a toolbar, intended to be floating ((WS_EX_TOOLWINDOW: | ||
+ | |WS_EX_TOPMOST|Form is always on top | | ||
+ | |WS_EX_TRANSPARENT|Form appears to be transparent because underlying sibling windows are painted before this Form | | ||
+ | |WS_EX_WINDOWEDGE|Form has raised edges | | ||
+ | |WS_EX_LAYERED|Form is layered window. Cannot be used for child windows | | ||
+ | |WS_EX_COMPOSITED|Form is painted using double buffering, reducing flicker | | ||
+ | |||
+ | # | ||
+ | None | ||
+ | # | ||
+ | |||
+ | None |