Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Chris
|
Dec 10, 2002 - 10:32 AM
|
From the screenshots page, in the description for "Prof-UIS Controls": "Illustrates the primary controls including toolbar and menu bar in dialog window, user-defined toolbar buttons and labels, pop-up menu..."
What is meant by "user-defined toolbar buttons"? I built and ran the prof-uis controls sample project, and I couldn’t find anyway to define a button at run-time.. so what does this mean?
Ideally, I would like to be able to do this? Are there any provisions for adding and removing buttons at runtime - and allowing the user to choose the bitmap (or an icon) to use on the button?
Also, is there a way to use large buttons with large bitmaps?
Please note, I am evaluating this product for possible commercial use by my company.
|
|
Sergiy Lavrynenko
|
Dec 10, 2002 - 1:42 PM
|
Dear Cris,
The Prof-UIS toolbar (CExtToolControlBar class) is a container for its buttons. Each button is the instance of the CExtBarButton class or a class derived from it. These buttons are inserted into any Prof-UIS toolbar or menu bar. The “Prof-UIS Controls” sample demonstrates how it can be done. In the CMainDlg class you can find these nested class declarations: CBitmapLabelInMenuBar and CThinColorButtonInToolBar. Both these classes are derived from CExtBarButton. The first one implements functionality of the bitmap label in the menu bar. The second one is used as a color selection button in the left-docked toolbar.
Implementation of the large buttons with large bitmaps is demonstrated in the “FunnyToolbarLovers” sample: http://www.fossware.com/download/Prof-UIS/Examples/FunnyToolbarLovers.zip
Best regards, Sergiy Lavrynenko.
|
|