Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alt Keycode on a dialog button
#1
Hi Gintaras,
Couldn't find an answer for this one in the forum. How do you put an alt key code onto a button text in a dialog.
For example ▼ alt+31.
When I type that into dialog editor, it shows up as just a rectangle when the dialog actually launches.
Thanks,
Stuart
#2
Dialog font does not support the character. Use font that supports.
#3
Thanks for the super rapid reply:
I added this to WM_INITDIALOG

Code:
Copy      Help
,__Font-- f
,f.Create("Georgia" 8 1)
,f.SetDialogFont(hDlg "8")
,f.SetDialogFontColor(hDlg 0xff0000 "11")

It doesn't work in this font either. Do you suggest a specific font that it will work in? (something standard that everybody uses?). Is the default one used by the QM dialog coming from the Windows Theme?
Also how would I get every element in the dialog to use the same font?
Thanks!
S
#4
QM uses standard Windows dialog font.
Default dialog font on XP is Tahoma, and it does not have triangles. You can change Windows default dialog font through registry, google for MS Shell Dlg.
To discover what fonts support triangles, use QM Options/Editor. Select various fonts, Apply and see how displayed in code. I would use Arial.
SetDialogFont changes font for all controls if controls not specified.
#5
works great. You're the best as always!
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)