mIRC Home    About    Download    Register    News    Help

Print Thread
#40940 10/08/03 03:44 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
Code:
$dialog() also supports these properties:

x,y,w,h	returns the size and position of the dialog


how do i get the dialog size? im not sure how i put the two together

#40941 10/08/03 03:57 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
the position of the dialog is x,y the size is w,h
use:
alias dsize {
$1 $+ 's size is: $dialog($1).w $dialog($1).h
}
//echo -a $dsize(dialog)


new username: tidy_trax
#40942 10/08/03 04:01 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You missed the return command.

#40943 10/08/03 04:55 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
this is the real size (pixels)
size %si.hor %si.vert 475 84
but that returns 481 anyone know why?

#40944 10/08/03 05:01 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The border and titlebar make a difference, you can use $dialog($1).cw and $dialog($1).ch to return the size without them.

#40945 10/08/03 05:34 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
i got it working, ty


Link Copied to Clipboard