mIRC Home    About    Download    Register    News    Help

Print Thread
#148397 04/05/06 11:26 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i didnt find anything in help file...
is it possible to make dialog have disabled X (close) button on
titlebar of frame/dialog ?


IceCapped
#148398 05/05/06 12:11 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You can't do it. But maybe with a DLL like MDX or something, but I'm not too sure.

-Andy

#148399 05/05/06 04:33 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
damn laugh


IceCapped
#148400 05/05/06 08:28 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
while its true you cant disable the [X], you can work around it with this sample
Code:
alias tc dialog -m testclose testclose
dialog -l testclose {
  title ""
  size -1 -1 100 50
  option dbu
  edit "" , 1 , 20 20 60 10
  button "Click Me", 900, 20 40 60 15
  button "hidden", 999, 0 0 0 0, cancel
}
on *:dialog:testclose:sclick:999:{ .timer-tc -m 1 1 dialog -m testclose testclose }
on *:dialog:testclose:sclick:900:{ echo $active $did(testclose,1).text }

#148401 05/05/06 10:03 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
hehe nice coding
but unfortunately i wont use it smirk
(dont be angry)

nice job =)


IceCapped
#148402 05/05/06 10:06 PM
Joined: Nov 2005
Posts: 24
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Nov 2005
Posts: 24
it should really be possible to do this with com objects. However, I don't know how to do this, but some com-experts on here may help you smile
Although, imho, it's easier to use DCX for this.

#148403 06/05/06 01:38 PM
Joined: May 2006
Posts: 17
S
Pikka bird
Offline
Pikka bird
S
Joined: May 2006
Posts: 17
I must concur that is an ingenious script
good job

#148404 06/05/06 02:25 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
There are no COM objects that could do that afaik.


Gone.

Link Copied to Clipboard