ToolBar
|
![]() ![]() ![]() |
Define and Properties |
CREATE TOOLBAR cName | (cVarName) | &(cExpression) | ||||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ FIXED .T. | .F. ] | ![]() | Set ToolBar not movable | ||||
[ 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 | ||||
[ HEIGHT ] | ![]() | Only for mg_Get() function. The desired height size of the Control in pixels | ||||
[ ITEMCOUNT ] | ![]() | Only for mg_Get() function. It returns the total amount of items in control (ToolButtons, Widgets, etc.) | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ BUTTONHEIGHT nButtonHeight ] | ![]() | Set ToolButtons Heights. By default, ToolButtton size is managed by application style. If you add an ICON with height less than ButtonHeight, the ICON will not be enlarged, but, if the ICON height is greater than ButtonHeight, the ICON will be reduced. | ||||
[ BUTTONWIDTH nButtonWidth ] | ![]() | Set ToolButtons Widths. By default, ToolButtton size is managed by application style. If you add an ICON with width less than ButtonWidth, the ICON will not be enlarged, but, if the ICON width is greater than ButtonWidth, the ICON will be reduced. | ||||
[ BUTTONSTYLE nButtonStyle ] | ![]() | Button Style. Accepted values are: Qt_ToolButtonIconOnly = Only display the icon. Qt_ToolButtonTextOnly = Only display the text. Qt_ToolButtonTextBesideIcon = The text appears beside the icon. Qt_ToolButtonTextUnderIcon = The text appears under the icon. | ||||
[ 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. | ||||
[ NOTABSTOP .T. | .F. ] | ![]() | This property force that TAB key doesn't stop in this control | ||||
[ CONTEXTMENUSUPRESSED .T. | .F. ] | ![]() | Disable the display of the Context Menu of control. | ||||
[ CREATE TOOLBUTTON cName ] | ![]() | Name of ToolButton | ||||
[ CAPTION cCaption ] | ![]() | A text expressions for the popup subject | ||||
[ PICTURE cImageName ] | ![]() | Image for display in Popup Name | ||||
[ CHECKABLE .T. | .F. ] | ![]() | Allow user to check button | ||||
[ CHECKED .T. | .F. ] | ![]() | Check button (if button is CHECKEABLE) | ||||
[ 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 | ||||
[ BUTTONHEIGHT nButtonHeight ] | ![]() | This property overrides ToolBar BUTTONHEIGHT for this button only. By default, ToolButtton size is managed by application style. If you add an ICON with height less than ButtonHeight, the ICON will not be enlarged, but, if the ICON height is greater than ButtonHeight, the ICON will be reduced. | ||||
[ BUTTONWIDTH nButtonWidth ] | ![]() | This property overrides ToolBar BUTTONWIDTH for this button only. By default, ToolButtton size is managed by application style. If you add an ICON with width less than ButtonWidth, the ICON will not be enlarged, but, if the ICON width is greater than ButtonWidth, the ICON will be reduced. | ||||
[ BUTTONSTYLE nButtonStyle ] | ![]() | This property overrides ToolBar BUTTONSTYLE for this button only. Accepted values are: Qt_ToolButtonIconOnly = Only display the icon. Qt_ToolButtonTextOnly = Only display the text. Qt_ToolButtonTextBesideIcon = The text appears beside the icon. Qt_ToolButtonTextUnderIcon = The text appears under the icon. | ||||
[ RIGHTTEXT .T. | .F. ] | ![]() | OBSOLET. This property has been replaced by BUTTONSTYLE | ||||
[ 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. | ||||
[ 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. | ||||
[ ONCLICK cOnClick | {BOnClick} ] | ![]() | An action to be performed when control is clicking | ||||
[ CREATE DROPDOWN MENU BUTTON cButtonName [ cName ] ] | ![]() | DROPDOWN MENU for Button cButtonName | ||||
[ 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 | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the control. Go to to learn more about it. | ||||
[ CREATE ITEM cName ] | ![]() | You can see description for this menu in MAIN MENU control. | ||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END ITEM ] | ![]() | |||||
[ CREATE ITEM ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END ITEM ] | ![]() | |||||
[ CREATE POPUP ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ CREATE ITEM ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END ITEM ] | ![]() | |||||
[ CREATE ITEM ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END ITEM ] | ![]() | |||||
[ END POPUP ] | ![]() | |||||
[ END MENU ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ ......... ] | ![]() | |||||
[ END TOOLBUTTON ] | ![]() | |||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END TOOLBAR |
Jump to Main Menu Topic Jump to Context Menu topic |
Methods for ToolBar |
HIDE | ![]() | This method HIDE the control | ||||
SHOW | ![]() | This method SHOW the control | ||||
RELEASE | ![]() | This method is used to destroy the control. | ||||
GETCHILDREN | ![]() | This method return an array containing a list of controls that have this control as parent | ||||
GETCONTROLS | ![]() | This method return an array containing a list of controls that have this control as parent, except those that are not shown on screen (e.g. TIMER or CONTEXTMENU) | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the control to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
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 ToolButton |
SETFOCUS | ![]() | This method put the program focus into control | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the control to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
ONCLICK | ![]() | Execute ONCLICK block coded in CREATE or seted by mg_Set |
Methods for DropDownMenu |
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 |
Jump to Main Menu Topic |
Methods for DropDownMenu Items |
......... | ![]() | You can see methods for ITEMs in MAIN MENU Control |
Jump to Main Menu Topic |
Methods for DropDownMenu Popups |
......... | ![]() | You can see methods for POPUPs in MAIN MENU Control |
Jump to Main Menu Topic |
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 |
|
![]() ![]() ![]() |