mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 24
R
RODF Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 24
I tried to make following the example of the user Online , but I did not obtain to make. The code of dialog is this:

dialog configuser {
title "Personal Commands"
size -1 -1 250 79
option dbu

box "Auth - X Commands", 1, 5 6 130 49
text "Username :" 2, 10 21 50 15
text "Pass:" 3, 14 38 50 15
edit "" 4, 40 19 70 11
edit "" 5, 40 36 70 11, pass
icon Face01.ico, 0
icon 6, 112 18 50 210, User profile.ico, 0, noborder
icon 7, 112 35 50 210, secureity.ico, 0, noborder
box "Identd" 8, 138 6 108 22
edit "" 9, 172 13 70 11
text "ID:" 10, 162 16 10 10
box "Away (F10)" 11, 138 33 108 22
edit "" 12, 172 40 70 11
text "NickAway:" 13, 143 42 25 15
button "Help" 14, 103 60 32 15
button "Details" 15, 139 60 32 15
button "OK" 16, 179 60 32 15, ok
button "Cancel" 17, 214 60 32 15, Cancel
check "Automatic" 18, 6 55 69 14
check "Not registered" 19, 6 64 69 14
}


Code user Online (example)

Put this code in the remote and type /dialog -m x x

dialog x {
size -1 -1 110 35
button "Show Details" 1, 5 5 100 25
edit "details here" 2, 5 40 100 55, read
}

On *:dialog:x:sclick:1:{
if $did(1) == Show details {
dialog -s x -1 -1 110 100
did -a x 1 Hide details
}
else {
dialog -s x -1 -1 110 35
did -a x 1 Show details
}
}

Help me.
Sorry my english

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It's very simple. Clicking the button "Details" will extend or contract the dialog, displaying or hiding the details. Example:
Code:
On *:dialog:configuser:sclick:15:{
  ;
  ; If the button's text is "Details"
  ; it means we want to show them
  ;
  if $did(15) == Details {
    ;
    ; the command /dialog -s is for resizing the dialog
    ; the -b switch denotes the size is in DBU
    ;
    dialog -sb $dname -1 -1 250 120
    did -a $dname 15 Hide
  }
  ;
  ; Otherwise, the details are already dispayed
  ; and now we will hide them
  ;
  else {
    dialog -sb $dname -1 -1 250 79
    did -a $dname 15 Details
  }
}

Joined: Dec 2002
Posts: 24
R
RODF Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 24
Thank you again smile


Link Copied to Clipboard