mIRC Home    About    Download    Register    News    Help

Print Thread
#101819 28/10/04 09:25 PM
Joined: Oct 2004
Posts: 8
I
int Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Oct 2004
Posts: 8
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
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
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
}


- Relinsquish
#101821 28/10/04 09:44 PM
Joined: Oct 2004
Posts: 8
I
int Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Oct 2004
Posts: 8
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
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Don't use $Dialog... there is absolutely no use for it in this situation.


- Relinsquish
#101823 29/10/04 04:14 PM
Joined: Oct 2004
Posts: 8
I
int Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Oct 2004
Posts: 8
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,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard