mIRC Home    About    Download    Register    News    Help

Print Thread
#84461 29/05/04 05:34 AM
Joined: Mar 2004
Posts: 108
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
Is there a way to disable the "x" close in dialogs, so users are forced to use the "ok" or "cancel" buttons? (without a .dll)

#84462 29/05/04 10:57 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
No, not that I am aware of.

#84463 29/05/04 12:19 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
I think mdx.dll can do it.
A (sort of) workaround:

on *:dialog:dname:close:*:{ .timer 1 0 dialog -m $dname $dname }

#84464 29/05/04 02:45 PM
Joined: Mar 2004
Posts: 108
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
Thank you, maybe something to add to a future version.. although not a big deal so I wont bother with a new thread wink

-cheers

#84465 29/05/04 06:44 PM
Joined: Mar 2004
Posts: 150
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 150
The hstylus.dll can disable the "X" on desired windows and/or dialogs. Once you've downloaded the DLL drop it to your desired DLL folder then as follows:

Code:
  
dialog example {
  title "Example"
  size -1 -1 70 36
  option dbu
  text "This Is An Example Dialog", 1, 3 14 64 8, center
  button "Close", 2, 38 25 31 10
}
on *:dialog:example:init:*:{
  //dll system\dlls\hstylus.dll x_desabilitar $dialog(example).hwnd
}


The DLL is aviable at MircScripts.org and comes with a "How To" text file.

#84466 30/05/04 12:51 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
He wanted to know if it could be done WITHOUT a DLL.....

#84467 30/05/04 02:13 AM
Joined: Mar 2004
Posts: 150
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 150
Welp it can't so this is as close as he get's. It's not like it's a load and unload DLL file. Right ???


Link Copied to Clipboard