[squeak-dev] Initial screen position of world menu?

Dimitry Golubovsky golubovsky at gmail.com
Thu Mar 3 17:08:24 UTC 2011


Hi,

I am working on adjusting the Squeak visual theme for use on a tablet
touch screen. It seems like the image used originally with the Android
port was derived from Squeak 3.9, and many packages were removed to
reduce size, so modern theme builders are likely not included on the
image (nor do I want to load them into the image anyway), so I have to
go directly into theme methods and change code there.

One thing I need to do is to change the initial placement of
click-induced menus (e. g. world menu) relative to the screen position
where mouse click (tap on screen) was made.

It is currently so that the menu's title bar spans to the right of the
mouse click position (and the whole menu is right-downwards), and it
may be only span to the left if the click was made too close to the
right edge of the screen.

As a consequence, if I tap the screen with my right hand's finger, the
menu opens to the right, and is partly obscured by the finger. The
menu acts more reliably if I keep sliding the finger vertically until
the item I need is highlighted, and then lift the finger from the
screen. All this time I can barely see the menu as the finger obscures
the view.

How can I make any menu resluting from mouse click to open to the left
of the click location? (that is, where is the code responsible for
that so I could include it in the theme).

OTOH someone might use their left hand, so the right side placement of
the menu is OK for them. So I'd like to add this as a theme
preference.

Thanks for any ideas.

-- 
Dimitry Golubovsky

Anywhere on the Web



More information about the Squeak-dev mailing list