Method XbpToolBar():loadImageSet() Foundation
Loads a set of pre-defined standard images for usage with tool bar buttons.
:loadImageSet( <nImageSet> ) => lSuccess
:loadImageSet() returns a logical value. If the image set specified in <nImageSet> is loaded successfully, the value .T. (TRUE) is returned. In case of an error, method :loadImageSet() returns .F. (FALSE).
Using method :loadImageSet(), a set of pre-defined images representing standard application commands can be loaded into an XbpToolBar object. After an image set has been loaded, its images can be assigned to buttons that are added to the tool bar.
The image set to be loaded by :loadImageSet() must be specified using the <nImageSet> parameter. To do that, one of the following constants may be used:
Constant | Description |
---|---|
XBPTOOLBAR_STDIMAGES_SMALL | Std. images for commands such as Copy, Save or Find |
XBPTOOLBAR_STDIMAGES_LARGE | Std. images, large version |
XBPTOOLBAR_VIEWIMAGES_SMALL | Images for view commands such as View Details, View as List, Sort by Name |
XBPTOOLBAR_VIEWIMAGES_LARGE | View images, large version |
XBPTOOLBAR_EXPLORERIMAGES_SMALL | Images for browser commands such as Back, Forward |
XBPTOOLBAR_EXPLORERIMAGES_LARGE | Images for browser, large version |
To display one of the images in an image set in a tool bar button, an Xbase++ application assigns one of the following constants to the button object's:image instance variable. Also, the contants can be used with the <xImage> parameter to method :addItem().
Constant | Represents command or function |
---|---|
STD_IMAGE_COPY | Copy |
STD_IMAGE_CUT | Cut |
STD_IMAGE_DELETE | Delete |
STD_IMAGE_FILENEW | Create New File |
STD_IMAGE_FILEOPEN | Open File |
STD_IMAGE_FILESAVE | Save File |
STD_IMAGE_FIND | Find |
STD_IMAGE_HELP | Help |
STD_IMAGE_PASTE | Paste |
STD_IMAGE_PRINT | |
STD_IMAGE_PRINTPRE | Print Preview |
STD_IMAGE_PROPERTIES | Generic Properties |
STD_IMAGE_REDO | Redo |
STD_IMAGE_REPLACE | Replace |
STD_IMAGE_UNDO | Undo |
Constant | Represents command or function |
---|---|
VIEW_IMAGE_DETAILS | View Details |
VIEW_IMAGE_LARGEICONS | View as Large Icons |
VIEW_IMAGE_LIST | View as List |
VIEW_IMAGE_NETCONNECT | Connect to Network Resource |
VIEW_IMAGE_NETDISCONNECT | Disconnect from Network Resource |
VIEW_IMAGE_NEWFOLDER | New Folder |
VIEW_IMAGE_PARENTFOLDER | Change to Parent Folder |
VIEW_IMAGE_SMALLICONS | View as Small Icons |
VIEW_IMAGE_SORTDATE | Sort by Date |
VIEW_IMAGE_SORTNAME | Sort by Name |
VIEW_IMAGE_SORTSIZE | Sort by Size |
VIEW_IMAGE_SORTTYPE | Sort by Type |
Constant | Represents command or function |
---|---|
EXPLORER_IMAGE_ADDTOFAVORITES | Add to Favorits |
EXPLORER_IMAGE_BACK | Navigate Backwards |
EXPLORER_IMAGE_FAVORITES | Display Favorites |
EXPLORER_IMAGE_FORWARD | Navigate Forward |
EXPLORER_IMAGE_VIEWTREE | View History Tree |
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.