Re: Windows Dialog Programming


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]