On Sep 12, 2006, at 3:25 PM, David Glass wrote:
| 5) is it possible to add another icon to the original (like the
| triangle for drop down list) so that I could put something to
| indicate the status of the button action
I'm not sure what you mean by "indicate the status" of the button
action.
You may set the button to "selected" by:
I think what he is asking for is a badge similar to the 'New Mail'
badge that appears on Apple Mail's icon in the Dock.
FYI, you can access the Dock icon by drawing directly to the
App.DockItem.Graphics object.
But that is not how I read it... he is asking for a Toolbar item with
a Selectable mode, such as the BevelButton has a Menu option (HasMenu
property plus all popup related methods). Just like you can with
BevelButton, the Toolbar item would have a small triangle added to
the icon (usually at bottom-right) to indicate that there are options
available with that item. Both OS X and Windows have tons of
examples of this type of control, and it is very easy to implement in
the newer versions of REALbasic which have the MenuItem.Popup()
feature (older versions are just out of luck unless you want to
resort to declares).
There is another possibility which I have recently needed in a
Toolbar... an actual OS themed PopupMenu instead of the more
traditional button with a flyout-menu. I have not been able to find
any toolbar solution which has this, so I have been working on
creating my own.
Another useful Toolbar Button type is one that is "Sticky", and can
be used like a mode switch control. Think of a tab, but integrated
into the toolbar. See this product for a early implementation of
this toolbar button type (the screenshot shows the view to be in
"Thumbnail" mode):
http://dreystone.com/stocklib.php
A true mode switch item would be nice to have, like the REALbasic 2005
+ Code/Window switcher, or the new views switcher in iTunes 7.0. The
problem with this control is that there is not a platform specific
control, and so it would have to be custom drawn for each platform or
would have to break away from any OS theme.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>