Sign in to follow this  
Followers 0
JGA

Display dialog box on the right site of the screen

8 posts in this topic

Hi,

Can someone tell me if there is a way to display a dialog box on the right site of the screen using GUICreate ?

Thanks

Best regards

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'd suggest using @DesktopWidth when creating:

#include <GUIConstants.au3>

$iWidth=400
$iHeight=150
GUICreate("Right-edge GUI",$iWidth,$iHeight,(@DesktopWidth-$iWidth))
GUISetState (@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

Useful when creating "sidebar" launchers, so I find myself using it often.

- Mo

Edited by Monamo

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I'd suggest using @DesktopWidth when creating:

#include <GUIConstants.au3>

$iWidth=400
$iHeight=150
GUICreate("Right-edge GUI",$iWidth,$iHeight,(@DesktopWidth-$iWidth))
GUISetState (@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

Useful when creating "sidebar" launchers, so I find myself using it often.

- Mo

Thanks for your reply Monamo

This is my script

can it work with in this script ?

thanks

gui.au3

Edited by JGA

Share this post


Link to post
Share on other sites

Thanks for your reply Monamo

This is my script

can it work with in this script ?

thanks

Thanks for your help Monamo,

I need to set the GUI Right top of the screen !

thanks

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

can it work with in this script?

Yes,

Since you're not always going to know what screen resolution the target machine will be set to, you'd wanna set the "Left" position to:

@DesktopWidth - [your gui width]

Edited by Monamo

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Share this post


Link to post
Share on other sites

Yes,

Since you're not always going to know what screen resolution the target machine will be set to, you'd wanna set the "Left" position to:

@DesktopWidth - [your gui width]

HI Mon,

Still problem with this can you please take a look to the script I posted and do the modification for me ?

Thanks

Share this post


Link to post
Share on other sites

HI Mon,

Still problem with this can you please take a look to the script I posted and do the modification for me ?

Thanks

I'll avoid being snarky (today) and referring you back to the help file. Just change your GUICreate line to:

GUICreate("Choose Application", 85, 450,@DesktopWidth - 85,1, $WS_popup,$WS_EX_TOPMOST)

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Share this post


Link to post
Share on other sites

I'll avoid being snarky (today) and referring you back to the help file. Just change your GUICreate line to:

GUICreate("Choose Application", 85, 450,@DesktopWidth - 85,1, $WS_popup,$WS_EX_TOPMOST)

Hi Mon,

Thanks a lot for your help.

It works fine now.

Best regards

JGA

Share this post


Link to post
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
Sign in to follow this  
Followers 0