Creates an Ocx Frame control in the current active form, window, or dialog.
Ocx Frame name [= text$] [, id], x, y, b, h [, style%]
text$:control text
id%:control identifier
x, y, b, h:iexp
style%:the control styles
A Frame control provides an identifiable grouping for controls. You can also use a Frame to subdivide a form functionally-for example, to separate groups of Option controls.
To group controls, first draw the Frame control, and then draw the controls inside the Frame. In case of Option buttons make sure they belong to the frame; right click on the Option control and check 'Ocx on Frame'. By default, the controls are owned by the form and all Option controls on the form belong to the same group, event the controls outside the Frame control.
BackColor | BorderStyle | Caption | Enabled | Font | FontBold | FontItalic | FontStrikethru | FontUnderline | FontName | FontSize | ForeColor | Height | HelpContextID | hWnd | Index | Left | MouseCursor | MouseIcon | MousePointer | Name | Parent | TabStop | TabStripIndex | Tag | Text | Top | ToolTiptext | Transparent | Visible | WhatsThisHelpID | Width
Move | Refresh | SetFont | TextHeight | TextWidth | ZOrder
Click | DblClick | MouseDown | MouseUp | MouseMove
The mouse events occur when no other Ocx is positioned under mouse cursor. When Transparent = True a mouse event is only executed when the mouse is on a character pixel.
Form frm = "Frame", , , 300, 300
'.BackColor = colBtnFace
Ocx Frame fr = "abc", 10, 10, 200, 200
.Transparent = False ' default is True
.BackColor = RGB(128, 0, 0)
Ocx Option opt(0) = "Option 1", 20, 30, 140, 24
Ocx Option opt(1) = "Option 2", 20, 60, 140, 24
Ocx Option opt(2) = "Option 3", 20, 90, 140, 24
Do
Sleep
Loop Until Me Is Nothing
A Frame is useful as a parent Ocx (OcxOcx) control. Other Ocx controls that can be used a parents are Form, Image, TabStrip, Toolbar.
Animation, CheckBox, ComboBox, Command, CommDlg, Form, Image, ImageList, Label, ListBox, ListView, MonthView, Option, ProgressBar, RichEdit, Scroll, Slider, StatusBar, TabStrip, TextBox, Timer, TrayIcon, TreeView, UpDown
{Created by Sjouke Hamstra; Last updated: 07/10/2017 by James Gaite}