The activation code looks like this:
- Code: Select all Expand view
ACTIVATE DIALOG oDlgMain CENTERED ;
ON PAINT ( DrawBitmap( oDlgmain:hDC, oBmp2, 0, 0, 0,0,SRCAND ),; // Draws a bitmap on dialog
SetBkMode( oDlgMain:hDC, 1 ),; // writting mode TRANSPARENT
SetTextColor( oDlgMain:hDC, CLR_RED),; // Color of written tect
TEXTOUT(oDlgMain:hDC,20,40,"YEAR 20"+WebYear,50) ) // The text
Before that I define the dialog like this:
- Code: Select all Expand view
DEFINE FONT oMainFont NAME "ARIAL" SIZE 0,30 BOLD //24 BOLD
DEFINE DIALOG oDlgMain FROM 0,0 TO 608,808 PIXEL STYLE WS_POPUP FONT oMainFont
What happens is that the function TEXTOUT() uses some font other than I want - oMainFont.
Is there a way I can force this function to use the desired font? I thought when I defined dialog with a font "oMainFont" everything on this dialog will be written in that font. All controls on this dialog uses the desired font, but the TEXTOUT() doesn't.
Is there I way to force the "oMainFont" to be used by TEXTOUT() function?