Jump to content

Get width context menu before displaying [SOLVED]


nend
 Share

Recommended Posts

Is it possible to get the width of a context menu before showing it.
I need it to aligned right widht the end of the window.
The text in the menu is multi language and there for not possible to set the width in the code.

The first image is how I get it and the second is how I want it to have it.
I think It is possible but I can't find a way to do it, I've search more than 40 min on google but no luck
1.png.030a76cd839841c9b1941c5d03f977ed.png2.png.60480fd8b5081d09c103d5eb22148f2e.png

I hoop some one has a good idea.

Edited by nend
Link to comment
Share on other sites

Create it outside the monitor ( say, -100,-100 ) and measure it. Then, any time you call it, since is going to be the same size, and the size is already known, position it accordingly.
( just an idea but w/o coding it I would not know. Just an idea ) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...