Posted by Brian Levantine on December 27, 2006 at 20:26:03:
In Reply to: Windows Dialog Programming posted by Mike Saunders on December 21, 2006 at 07:23:51:
Hello Mike. As you've discovered, there is no way to change the font of a dialog control from visual studio. To change the font of a control from an IBS program, you must first create the font using the library functions GDI.CreateFont or GDI.CreatePointFont which return a handle to the font in the variable cosHFont. Once you've acquired the font handle, you must the send it to the control(s) you want to modify. This is done using COS.SendMessage or COS.SendDlgItemMessage. You can find an example of this technique in the program ColorDlg.ibs which resides in the WinDev DLG folder.