mIRC Homepage
Posted By: SoundreameR dialog in custom window - 03/03/06 10:04 AM
How can I embed a dialog to the top side of a custom window. Is there such dll? And if yes - which is it? crazy
Posted By: tso29 Re: dialog in custom window - 03/03/06 11:20 AM
I holp i undestend you right ! (becuse my english is not so good)



Code:
  
on 1:ACTIVE:*:{
  if ($dialog(d)) {
  if ($active != @Test) dialog -sb d 0 0 0 0
  else { dialog -sb d 1 100 80 80 }
 }
}
on *:CLOSE:@Test:if ($dialog(d)) { dialog -x d }
alias -l t {
  if ($window(@test)) && (!$dialog(d)) { dialog -ma d d }
}
alias tw { window @test | t }
dialog -l d {
  option dbu 
  size 1 100 80 80
  Text "Example",1,10 30 40 10
}

Usage:/tw
Posted By: SoundreameR Re: dialog in custom window - 03/03/06 12:25 PM
What in the name of my uvula is this!? shocked confused
Posted By: tso29 Re: dialog in custom window - 03/03/06 12:41 PM
Quote:

The topic of your post is:
dialog in custom window


AND WHAT I POST IS A DIALOG IN A CUSTOM WINDOW ALT+R LOAD IT!
INTO REMOTE AND TYPE /TW
...........Beyonce is the girl..............
Posted By: SoundreameR Re: dialog in custom window - 03/03/06 12:50 PM
The script you've posted opens a dialog when a custom window opens and close it when it closes. What I need is a method to DOCK the dialog IN the custom window. There are dlls which let you dock window to a dialog control, but I don't know if there is such to dock dialog in a window. smile
Posted By: tso29 Re: dialog in custom window - 03/03/06 12:56 PM
Actuali ti semse like you dont now thet a dialog is a window fineli. using draw controls i give you an easy sulution the code i post 'docks' the dialog with the custom window but there is another way if you want so ! /help /draw and good luck! Beyonce is the girl don't forget it!
Posted By: SoundreameR Re: dialog in custom window - 03/03/06 01:21 PM
Phaa... pf... bla... as you say... I have no time to argue, check out WindowFx.dll @ mircscripts.org, this is what I needed all the time... smirk
Peace brother! smile
Posted By: tso29 Re: dialog in custom window - 03/03/06 01:25 PM
like you say WindowFx not DialogFX and it fineli draws controls into windows. it is not using dialogs smile if you want a dialog button in a window, you need to draw or to use a pic
but dock a dialog in a custom window is wat i did. peace and Beyonce is still the girl...
© mIRC Discussion Forums