>On Saturday, Sept 25 1999, Scott Rossi wrote:
>
>> Is there any way to specify the location where the menu drops down from a
>> pulldown menu button?
>
>The only thing you can do is make it a popup, in which case the menu will
>appear under the cursor. Unfortunately you can't specify where it will
>appear on a pulldown. I seem to recall having wanted to do this too...
One other way around this is to use a field, set to listBehavior, instead
of a menu to simulate a menu. You could then set the location of the field
& show it when a button was clicked or whatever. If you produce the menu
on a mouseUp event (instead of having to keep the mouse button pressed),
you can also simulate the hiliting of menu items as the mouse moves. I've
used the following script to do this for a field with line height 16:
on mouseMove tMX, tMY
put tMY - (the top of me) into tYOffset
get trunc(tYOffset/17)
if (it = 1) or (it = 6) or (it = 9) then set the hilitedLines of me to 0
else set the hilitedLines of me to (it + 1)
end mouseMove
The reason that some lines have hiliting set to 0 is that these lines
contain dividers (a series of dashes in my case to simulate menu dividers),
and of course I don't want these lines hilited.
This allows me to pop up the menu where I want to, which is handy in the
case of 2.2.5 which doesn't support scrolling menus; I can make sure that
the menu is popped up so that it doesn't go below the bottom of the screen.
Dave Tremmel
>Regards,
>
>Kevin
>
>> Thanks,
>>
>>
>>
>> __________________________________________________________________
>> Scott Rossi Tactile Media - Multimedia & Design
>> Email: [EMAIL PROTECTED]
>> Web: www.tactilemedia.com
>
>Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
>Cross Worlds Computing, MetaCard Distributors, Custom Development.
>Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.