Announcement

Collapse
No announcement yet.

System font in MsgBox & DDT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • System font in MsgBox & DDT

    If the windows desktop is set to a large system font, the MsgBox
    and dialogs (made using DDT) no longer match. MsgBox grows
    its font (and button size), but in DDT only the Caption grows.

    I can change the fonts of indivdual controls within a dialog, by
    sending then a WM_SETFONT message during WM_INITDIALOG, but not
    the whole dialog at once. Nor can I find a way to change the
    font used in MsgBox.

    How do I get the two types of WIndow to match, regardless of
    which system font the user has chosen?

  • #2
    I may be wrong, but did you try some of the various styles for the Msgbox?

    Ie, Msgbox "Test", %MB_ICONSTOP,"STOP"


    Hadn't noticed this before, interesting..

    Scott


    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

    Comment


    • #3
      I didn't try any icon styles, but I did try to make the MsgBox
      modal, even though this is supposed to be the default.
      %MB_APPLMODAL and %MB_SYSTEMMODAL didn't work, but %MB_TASKMODAL
      did.

      I did also try styles in the DIALOG NEW statement to try
      to over-ride the default %DS_SETFONT.

      ------------------

      Comment

      Working...
      X