function Test()
local oDlg, oBtn, oBold, oFont
local nRow, nCol, n
DEFINE FONT oBold NAME "TAHOMA" SIZE 0,-14 BOLD
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-12
DEFINE DIALOG oDlg SIZE 700,400 PIXEL TRUEPIXEL FONT oFont
nRow := 20
nCol := 20
for n := 1 to 3
@ nRow,nCol BTNBMP oBtn ;
PROMPT If( n == 3, " ", "" ) + "Bold" + CRLF + "Text" + If( n == 1, " ", "" ) ;
FILE "c:\fwh\bitmaps\metro\users.bmp" ;
SIZE 96,128 PIXEL OF oDlg FLAT TOP COLOR CLR_WHITE,CLR_GREEN ;
NOBORDER
oBtn:oFontBold := oBold // <-- NOTE
nCol += 110
next
for n := 1 to 3
@ nRow,nCol BTNBMP oBtn ;
PROMPT If( n == 3, " ", "" ) + "Bold" + CRLF + "Text" + If( n == 1, " ", "" ) ;
FILE "c:\fwh\bitmaps\metro\users.bmp" ;
SIZE 96,128 PIXEL OF oDlg FLAT BOTTOM COLOR CLR_WHITE,CLR_GREEN ;
NOBORDER
oBtn:oFontBold := oBold // <-- NOTE
nCol += 110
next
nRow := 160
nCol := 20
for n := 1 to 3
@ nRow,nCol BTNBMP oBtn ;
PROMPT If( n > 1, " ", "" ) + "Bold" + CRLF + "Text" + If( n < 3, " ", "" ) ;
FILE "c:\fwh\bitmaps\metro\users.bmp" ;
SIZE 144,80 PIXEL OF oDlg FLAT LEFT COLOR CLR_WHITE,CLR_GREEN ;
NOBORDER
oBtn:oFontBold := oBold // <-- NOTE
nCol += 160
next
nRow := 260
nCol := 20
for n := 1 to 3
@ nRow,nCol BTNBMP oBtn ;
PROMPT If( n > 1, " ", "" ) + "Bold" + CRLF + "Text" + If( n < 3, " ", "" ) ;
FILE "c:\fwh\bitmaps\metro\users.bmp" ;
SIZE 144,80 PIXEL OF oDlg FLAT RIGHT COLOR CLR_WHITE,CLR_GREEN ;
NOBORDER
oBtn:oFontBold := oBold // <-- NOTE
nCol += 160
next
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont, oBold
return nil