mIRC Homepage
Posted By: David123456789 Double Window - 01/07/19 05:17 AM
THanks for your time.

I would like to create two windows that are horizontal. Only one needs input.
Can a listbox be horizontal?
Can two windows be positioned using a percent of the screen rather than pixels?
Could some lines of text be reserved at the top of a window for certain input?

I would like to avoid dialog boxes.

Thanks again
Posted By: David123456789 Re: Double Window - 02/07/19 05:13 AM

How do I:
change the font in a dialog?
Word wrap a list box?

Thank You
Posted By: Erasimus Re: Double Window - 08/07/19 11:19 PM
Originally Posted by David123456789
How do I:
change the font in a dialog?

I'd be interested in that too, along with how can you apply Bold or Underline within text fields, or colour.

There just doesn't seem to be much scope in what you can do for emphasis in dialogs.
Posted By: rafa555 Re: Double Window - 08/08/19 03:13 PM
Originally Posted by Erasimus
Originally Posted by David123456789
How do I:
change the font in a dialog?

I'd be interested in that too, along with how can you apply Bold or Underline within text fields, or colour.

There just doesn't seem to be much scope in what you can do for emphasis in dialogs.


You can do it with dcx.dll or mdx.dll

With MDX is the easier way, i'll post an exemple code here

Preview

Code
alias dlgt dialog -m dlgtest dlgtest
dialog dlgtest {
  title "Dialog1"
  size -1 -1 403 236
  box "Yellow Box", 1, 8 7 136 68
  text "Font 13 tickness 614", 2, 9 93 155 45
  text "Green 13", 3, 9 149 155 45
  text "Red Font 20 tickness 200", 4, 185 149 190 45
  text "Blue Font 20 tickness 900", 5, 185 93 210 45
  button "Button 614", 6, 189 17 75 25
}

on *:dialog:dlgtest:init:*:{
  mark | mdxfont 2,6
  mdx SetColor $dname 1 text $rgb(255,255,00)
  mdx SetColor $dname 3 text $rgb(00,100,00)
  mdx SetColor $dname 4 text $rgb(100,00,00)
  mdx SetColor $dname 5 text $rgb(00,00,100)
  mdxfont 4 +a 20 200 Tahoma
  mdxfont 5 +a 20 900 Tahoma

}

alias mdx { dll dlls\mdx.dll $1- }
alias mark mdx MarkDialog $dname | mdx SetMircVersion $version
alias mdxfont { if ($3) { mdx SetFont $dname $1- } | else { mdx SetFont $dname $1- 13 614 Tahoma } 
© mIRC Discussion Forums