Windows RB2006r1 - Developing at this time on Windows for both Win and
Mac deployment.
I'm working on building a pop-up list with icons that is opened by the
click of a PopupArrow on a button located on a placard. The placard acts
as a toolbar area for several toggled tool buttons. Each button can act
as the selector for several tools. (Think Photoshop, where (at least in
Windows) clicking the popup arrow on the bottom right of some tool
buttons lets the user choose the tool that button represents; or Safari,
clicking on the Back button displays a popup menu of pages to return to.)
The list must show icons and text, not just text. What comes to mind is
a ListBox with pictures set in its rows. Click the PopupArrow, the
listbox is set to visible. Click an item on the listbox, the proper icon
is popped over to the tool button and the listbox visibility is set to
false. Functionally, and on a blank form with simple controls, this
works beautifully. Also, easy to implement.
The problem I am having with this strategy is that when the listbox is
set to visible, the top part of its text and picture cell area is
immediately obscured by the placard underneath its top part, and the
listbox's bottom part is immediately obscured by the container control
on my form located below the placard. Like the Cheshire Cat, the only
part of the listbox left displayed is the vertical scrollbar. If, while
the listbox is displayed, another form is dragged in front of the
listbox then away, even the scrollbar vanishes.
If I shrink the listbox to fit entirely within the placard, the
visibility problem goes away, but the placard's height is way too short,
being just taller than a button -- I've got way too many icons to list
for this to be a practical solution. Anyway, the idea is for this
solution to look more like a combo popdown list, with the list
temporarily obscuring the controls lower down on the form.
I'd use a combobox, which seems to not have this z-order issue, or a
popupmenu which is perhaps the most appropriate, but I don't see how to
get icons into either of their list- or textboxes.
TIA for any suggestions here!
-Tom
_______________________________________________
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>