Hi,
I'm building a custom pop-up menu using a canvas. I build the menu
something like this (I know it can be consdensed, but this is
clearer):
dim base as menuItem = new menuItem
dim hitItem as menuItem
hitItem = new menuItem("One")
base.append hitItem
hitItem = new menuItem("Two")
base.append hitItem
hitItem = new menuItem("Three")
base.append hitItem
hitItem = base.PopUp
I'd like to be able to set the default that the menu "centers" around
when it pops up, just like you might see with a regular pop-up
control (where you can set the listIndex property). So, for example,
"Two" might be selected when the menu pops up.
I don't see a way to set this using the technique above (setting the
x,y value might work for small lists, but is too hard to calculate if
the list is large, and might extend up or down). Am I missing
something? Or is there another way to create a custom pop-up menu
with a canvas (I tried a BevelButton, but I couldn't get the look I
wanted)?
Thanks,
Jon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>