TreeView
|
![]() ![]() ![]() |
Define and Properties |
CREATE TREEVIEW cName | (cVarName) | &(cExpression) | ||||||
[ ; OF cWindow | (cVarName) | &(cExpression) ] | ![]() | A reference to the Parent Window | ||||
[ ROW nRow ] | ![]() | Row position on container window in pixels coordinates | ||||
[ COL nCol ] | ![]() | Col position on container window in pixels coordinates | ||||
[ WIDTH nWidth ] | ![]() | The desired width size of the Control in pixels | ||||
[ HEIGHT nHeight ] | ![]() | The desired height size of the Control in pixels | ||||
[ ROWBOTTOM nRow ] | ![]() | Bottom Row position on container window in pixels coordinates. This property adjust the HEIGHT property according the ROW property. | ||||
[ COLRIGHT nCol ] | ![]() | Right Col position on container window in pixels coordinates. This property adjust the WIDTH property according the COL property. | ||||
[ AUTOSIZE .T. | .F. ] | ![]() | Auto adjust control size to text | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ FONTNAME "cFontName" ] | ![]() | Font family for control text | ||||
[ FONTSIZE nPoints ] | ![]() | Font size for control text | ||||
[ FONTBOLD .T. | .F. ] | ![]() | Set Bold attribute to control text | ||||
[ FONTITALIC .T. | .F. ] | ![]() | Set Italic attribute to control text | ||||
[ FONTUNDERLINE .T. | .F. ] | ![]() | Set Underline attribute to control text | ||||
[ FONTSTRIKEOUT .T. | .F. ] | ![]() | Set Strikeout attribute to control text | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ MULTISELECT .T. | .F. ] | ![]() | It allow user to select one or more items | ||||
[ VALUE nValue ] | ![]() | Item to display. If MULTISELECT clause is used VALUE must be a numeric array, containing the index position of selected items. | ||||
[ ITEM nItemPos [ , cText ] ] | ![]() | Value text of item nItemPos (ONLY available for mg_Get() and mg_Set() functions) | ||||
[ ITEMCOUNT ] | ![]() | Only for mg_Get() function. It returns the total amount of items in control | ||||
[ ITEMICON nItemPos | cItemName , cIconName ] | ![]() | Icon name for item nItemPos | cItemName. The item must already exist. (ONLY available for mg_Get() and mg_Set() functions) | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable control | ||||
[ NOTABSTOP .T. | .F. ] | ![]() | This property force that TAB key doesn't stop in this control | ||||
[ FORCEACTION .T. | .F. ] | ![]() | It force the execution of the actions defined by methods like ACTION, ONENTER, ONCLICK, ONDBLCLICK, etc. when NOTABSTOP property was set '.T.'. This property is useful when application focus is over a control when a VALID clause and it doesn't permit lostfocus. | ||||
[ PARENT cParentName ] | ![]() | Parent window for this widget | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ ONDBLCLICK cOnDblClick | {BOnDblClick} ] | ![]() | An action to be performed when user press double mouse click | ||||
[ ONENTER cOnEnter | {BOnEnter} ] | ![]() | An action to be performed when user press ENTER or RETURN keys. You can interrupt the ENTER key propagate to the control returning the __MG_KEY_NO_PROPAGATE constant, e.g. to disable ENTERTAB behavior. | ||||
[ ONCHANGE cOnChange | {BOnChange} ] | ![]() | An action to be performed when control value is changed | ||||
[ ONGOTFOCUS cOnGotFocus | {BOnGotFocus} ] | ![]() | An action to be performed when control is focused | ||||
[ ONLOSTFOCUS cOnLostFocus | {BOnLostFocus} ] | ![]() | An action to be performed when control is lost focused | ||||
[ HASFOCUS ] | ![]() | Only for mg_Get() function. This property returns .T. if control has the application focus | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the control. Go to to learn more about it. | ||||
[ CONTEXTMENUSUPRESSED .T. | .F. ] | ![]() | Disable the display of the Context Menu of control. | ||||
[ CREATE TREEITEM cName ] | ![]() | Name of Item | ||||
[ PICTURE cImageName ] | ![]() | Image for display in Popup Name | ||||
[ ITEMNAME cName ] | ![]() | Item name for mg_Set()/mg_Get() properties or mg_Do() Methods | ||||
[ FONTNAME "cFontName" ] | ![]() | Font family for control text | ||||
[ FONTSIZE nPoints ] | ![]() | Font size for control text | ||||
[ FONTBOLD .T. | .F. ] | ![]() | Set Bold attribute to control text | ||||
[ FONTITALIC .T. | .F. ] | ![]() | Set Italic attribute to control text | ||||
[ FONTUNDERLINE .T. | .F. ] | ![]() | Set Underline attribute to control text | ||||
[ FONTSTRIKEOUT .T. | .F. ] | ![]() | Set Strikeout attribute to control text | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable popup | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the control. Go to to learn more about it. | ||||
[ PARENT cParentName ] | ![]() | Parent item (not parent window) for this item | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE TREEITEM ] | ![]() | |||||
......... | ![]() | |||||
......... | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END TREEITEM ] | ![]() | |||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END TREEVIEW |
Jump to Context Menu topic |
Methods for TreeView |
COLLAPSEITEM nItem | ![]() | This method is used to collapse only an item of control | ||||
COLLAPSEALL | ![]() | This method is used to collapse all brands of control | ||||
EXPANDITEM nItem | ![]() | This method is used to expand only an item of control | ||||
EXPANDALL | ![]() | This method is used to expand all brands of control | ||||
FIND cText [ , nMode ] [ , nCaseSensitive ] | ![]() | This method is used to find all items of control that is name match with 'cText' parameter. This method returns a numeric array containing the position of items that match the find. In addition, you can use 'cMode' parameter [optional] to specify the mode of search: 0=Exactly (Default) 1=Contain 2=Starts with 3=Ends width The third parameter is also optional and is used to specify the case sensitive behavior: 0=Case sensitive (Default) 1=Case in-sensitive | ||||
RELEASE | ![]() | This method is used to destroy the control. | ||||
SETFOCUS | ![]() | This method put the program focus into control | ||||
ADDITEM cText [ , nItemPosParent ] [ , cAssignNewItemName ] | ![]() | Add a new item to control from nItemPosParent (default is root, item will be added after last item). You can assign a name to item with optional parameter cAssignNewItemName. When the item was added, you can add ICON to item by ITEMICON property with cAssignNewItemName name (mg_Set() function). This method return the position of new item. | ||||
INSERTITEM cText [ , nItemPos ] [ , cAssignNewItemName ] | ![]() | Add a new item to control at nItemPos position (default is ITEMCOUNT + 1, item will be added after last item). You can assign a name to item with optional parameter cAssignNewItemName. When the item was added, you can add ICON to item by ITEMICON property with cAssignNewItemName name (mg_Set() function). This method return the position of new item. | ||||
GETITEMNAME nItemPos | ![]() | Return the Item Name of nItemPos position. | ||||
DELETEITEM nItemPos | ![]() | Delete item number nItemPos from control | ||||
DELETEALLITEMS | ![]() | Delete ALL items from control | ||||
HIDE | ![]() | This method HIDE the control | ||||
SHOW | ![]() | This method SHOW the control | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the control to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
GETCHILDREN | ![]() | This method return an array containing a list of controls that have this control as parent | ||||
ONDBLCLICK | ![]() | Execute ONDBLCLICK block coded in CREATE or seted by mg_Set | ||||
ONENTER | ![]() | Execute ONENTER block coded in CREATE or seted by mg_Set | ||||
ONCHANGE | ![]() | Execute ONCHANGE block coded in CREATE or seted by mg_Set | ||||
ONGOTFOCUS | ![]() | Execute ONGOTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONLOSTFOCUS | ![]() | Execute ONLOSTFOCUS block coded in CREATE or seted by mg_Set |
Methods for TreeItem |
GETCHILDREN | ![]() | This method return an array containing a list of controls that have this control as parent | ||||
GETITEMPOS | ![]() | Return the Item Position of Item (control). | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the window to default (Qt_ArrowCursor). Go to to learn more about it. |
Marinas-GUI Version 03.06 and Marinas-IDE Version 05.06 and LEX Files Version 02.06 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- last update: April 27 2017 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ![]() A Harbour/QT framework to make multiplatform programs (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes) CarozoDeQuilmes@gmail.com 2009-2017 Beta tester and full English translator: Bruno Luciani Bruno.Luciani@gmail.com 2014-2015 Final English corrector: David Worboys DavidWorboys@hotmail.com --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- www.marinas-gui.org |
|
![]() ![]() ![]() |