mIRC Home    About    Download    Register    News    Help

Print Thread
#101819 28/10/04 09:25 PM
I
int
int
I
Code:
on *:start: {
  $dialog(test,test,0)
}

dialog -rov test{
  title "test"
  icon icon.ico
  size 0 0 250 100

  text "filler", 1, 5 5 150 15
  text "filler", 2, 5 25 150 15

  button " ", 3, 248 98 2 2
}


I am trying to use -rov to center it and bring it to front and keep it there, but it breaks if I add the -rov line. I'm stuck smirk

#101820 28/10/04 09:33 PM
R
Relinsquish
Relinsquish
R
I think you are a bit confused as to how you properly use dialogs. For the "dialog test {", you do not add the -rov in between. Instead, use -mdr switches for the /dialog command. Also, your on start remote does not make sense. You cannot have an identifier to be used as the command if the dialog isn't even open, and also you cannot use it in this way. Replace everything with this:
Code:
On *:START:*: { dialog -mdr test test }
dialog test {
  title "test"
  icon icon.ico
  size 0 0 250 100
  text "filler", 1, 5 5 150 15
  text "filler", 2, 5 25 150 15
  button " ", 3, 248 98 2 2
}

#101821 28/10/04 09:44 PM
I
int
int
I
Alright...I now have the same problem with different code. I still can't center it. It looks exactly like it did when I used $dialog() without any modes. smirk

#101822 29/10/04 01:31 AM
R
Relinsquish
Relinsquish
R
Don't use $Dialog... there is absolutely no use for it in this situation.

#101823 29/10/04 04:14 PM
I
int
int
I
I got that.

How do I make it center? The code you replaced my dialog with is not working. It makes a dialog window, but does not center it.

Last edited by int; 29/10/04 04:16 PM.
#101824 30/10/04 12:45 AM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
I dont think u have any switch to center it with, then only thing u can do is to change the numbers in: size 0 0 250 100


Link Copied to Clipboard