mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2007
Posts: 17
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Aug 2007
Posts: 17
Hi all.
I want know if possible to move a control of the dialog in a position chosed by me. For example with /dialog -s NAME x y w h you can to change ever the size/pos of a dialog. But with the controls as button, check, radio ect. ? Is it possible make it ? On help file I don't find this..

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You cannot move controls once they are placed when the dialog was created. You *could* hide it from one position and unhide it from another if it was placed it two different positions when it was created, but that's probably not what you're trying to do.


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2003
Posts: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi.

Yes you can move a dialog from one place to another. But the thing is that you must close it before.

Use this code to test

Code:
dialog test {
  title "This is a test"
  size %x %y 50 50
}

alias test {
  if ( $dialog( test) != $null ) {
    dialog -x test
  }
  set %x $rand( 1, 200)
  set %y $rand( 1, 200)
  dialog -m test test
}



when you write the command test it will set the x em y possition to a random ones.
If dialog is open it will close it and them open it again.

Good luck

Last edited by Miguel_A; 27/02/08 01:16 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
He knows you can move the dialog itself (and you can actually move it while it's open). He wants to move a control on the dialog (for example, an edit box or button).


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2003
Posts: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
ahhh sorry my bad...

I have not understud correctly the question. Sorry.
Bad english...

Joined: Aug 2007
Posts: 17
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Aug 2007
Posts: 17
ah Ok ..thanks you..


Link Copied to Clipboard