mIRC Home    About    Download    Register    News    Help

Print Thread
#265674 01/07/19 05:17 AM
Joined: Jul 2019
Posts: 2
D
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jul 2019
Posts: 2
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

Joined: Jul 2019
Posts: 2
D
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jul 2019
Posts: 2

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

Thank You

Joined: Apr 2018
Posts: 83
E
Babel fish
Offline
Babel fish
E
Joined: Apr 2018
Posts: 83
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.

Last edited by Erasimus; 09/07/19 02:30 AM.
Erasimus #265873 08/08/19 03:13 PM
Joined: Mar 2019
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2019
Posts: 8
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 } 


Link Copied to Clipboard