X11-Mode FORM Objects - PROPERTIES Updated: Aug 27, 2008 PROPERTIES Comments (RW numeric or string values): ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Caption Set/get object text; same as .Text Checked Set/get checked state [BUTTON CHECKBOX RADIOBUTTON] Class Class name string. MyClass = MyObject.Class Color Set/get background color by RGB value 0 - &HFFFFFF Cursor Sets cursor. MyObject.Cursor = handle_cursor. handle_cursor may Enabled Enables user input with mouse or keyboard to object ExStyle Set/get Extended Style. MyExStyle = MyObject.ExStyle Font Set font for object text. MyObject.Font = MyFont Height Set/get object height. If set for IMAGE, IMAGE may be resized. ItemIndex Set/get selected item [COMBOBOX EDIT FILELISTBOX GRID LISTBOX LISTVIEW RICHEDIT RICHEDIT2 TREEVIEW UPDOWN] Left Set/get object left position Parent Set/get handle of .Parent to object. MyObject.Parent = MyObject Position Set/get position [GAUGE SCROLLBAR TRACKBAR]. Default = 0 Style Set/get Style. For FORM, default = &HCF0000 Tag Set/get arbitrary value associated with object. MyEdit.Tag = 12 Text Set/get object text; same as .Caption. TextColor Set/get RGB color of text. Top Set/get object top position Visible Displays or hides object (default = 1) Width Set/get object width. If set for IMAGE, IMAGE may be resized. PROPERTIES (Read Only String): ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ Item Item text; for all objects with text buffer [COMBOBOX EDIT FILELISTBOX GRID LISTBOX LISTVIEW RICHEDIT RICHEDIT2 TREEVIEW UPDOWN] PROPERTIES (Read Only Numeric): ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ClientHeight Same as .Height; client area height. cHeight = MyForm.ClientHeight ClientWidth Same as .Width; client area width. cWidth = MyForm.ClientWidth Handle Object handle ID Object ID assigned internally at object creation IndexOf Index of MyString [COMBOBOX FILELISTBOX LISTBOX] ItemCount Item count Length Length of object text (if referenced without an index) LineCount Same as .ItemCount MouseX Mouse x position in object rectangle; MyLong = MyForm.MouseX MouseY Mouse y position in object rectangle; MyLong = MyForm.MouseY Selected True (not zero) if item selected TextHeight Height in pixels of text string argument. MyHeight = MyForm.TextHeight(MyString$) TextWidth Width in pixels of text string argument. MyWidth = MyForm.TextWidth(MyString$) Copyright 2007-2008 James J Keene PhD Original Publication: Nov 12, 2007