. Syntax Summary

Category: Controls - .Basic Examples

Date: 02-16-2022

Return to Index


 
'Sometimes it's useful just to have them all in one place. In the case of the Control Add statement,
'the syntax is almost the same for every control.
'Exceptions:
'- ComboBox AND ListBox use arrays instead of a text argument
'- Image Buttons and Image controls require an image name from a resource file instead of a text argument
 
Button:         Control Add Button, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Check3State:    Control Add Check3State, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Checkbox:       Control Add Checkbox, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ComboBox:       Control Add ComboBox, hDlg, id&, [items$()], x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Frame:          Control Add Frame, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]]
Graphic:        Control Add Graphic, hDlg, id&, "", x&, y&, wide&, high&[, [style&] [, [exstyle&]]] [[,] Call CallBack]
Image:          Control Add Image, hDlg, id&, image$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ImageX:         Control Add ImageX, hDlg, id&, image$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ImgButton:      Control Add ImgButton, hDlg, id&, image$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ImgButtonX:     Control Add ImgButtonX, hDlg, id&, image$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Label:          Control Add Label, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Line:           Control Add Line, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ListBox:        Control Add ListBox, hDlg, id&, [items$()], x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ListView:       Control Add ListView, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Option:         Control Add Option, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ProgressBar:    Control Add ProgressBar, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
ScrollBar:      Control Add ScrollBar, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
StatusBar:      Control Add StatusBar, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Tab:            Control Add Tab, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
TextBox:        Control Add TextBox, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
Toolbar:        Control Add Toolbar, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
TreeView:       Control Add TreeView, hDlg, id&, txt$, x, y, xx, yy [, [style&] [, [exstyle&]]] [[,] Call CallBack]
 
'gbs_00083
'Date: 03-10-2012


created by gbSnippets
http://www.garybeene.com/sw/gbsnippets.htm