I've got a dialog with 3 frame controls on it. Each frame has a grid control located inside it's borders.
I would like for the frame corresponding to the grid control that has focus to display it's label in bold font. I tried creating a bold font (createfontindirect from system menu font) and using selectobject on an hDC for the frame control, but it didn't appear to work.
I'll be happy to use PB's FONT NEW, CONTROL SET FONT, FONT END statements, but I'm a little unclear on how to specify the correct font for FONT NEW. It's also not clear to me what happens with the fonts when using CONTROL SET FONT. Is there no need to retain a handle to the original font when selecting a new font into a control (like you need to do with SelectObject)?
I would like for the frame corresponding to the grid control that has focus to display it's label in bold font. I tried creating a bold font (createfontindirect from system menu font) and using selectobject on an hDC for the frame control, but it didn't appear to work.
I'll be happy to use PB's FONT NEW, CONTROL SET FONT, FONT END statements, but I'm a little unclear on how to specify the correct font for FONT NEW. It's also not clear to me what happens with the fonts when using CONTROL SET FONT. Is there no need to retain a handle to the original font when selecting a new font into a control (like you need to do with SelectObject)?
Comment