Source language: Translate to:

Position for popup menu in custom window

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Position for popup menu in custom window

Postby sombra » Wed Dec 29, 2010 12:23 pm

Is there a way for set the position of a 'menu' or 'menuex' when this command is called from a custom window?

The menu always is shown relative to the application instead of relative to the custom window.
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain

Postby Neosoft Support » Fri Dec 31, 2010 2:31 pm

You can use GetObjectInfo to get the Left and Top coordinates of the Container used to create the custom Window. Then display the menu based on those values.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby sombra » Mon Jan 03, 2011 5:15 am

Great! Thanks to your advice, I did the trick with a little workaround due to the border style of the window and according the theme configured in Windows.

Thanks. :D
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest