[futurebasic] [FB3-7.0] [Carbon] _KThemeActiveDialogBackgroundBrush

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2002 : Group Archive : Group : All Groups

From: BHEIBERT810@...
Date: Sat, 21 Sep 2002 00:08:47 EDT
When I use the PRINT statement 
LOCATE 2,1:PRINT "           Are you sure you want to Shutdown?"
In my program below I am using the
DEF SETWINDOWBACKGROUND(¬
_kThemeActiveDialogBackgroundBrush, _zTrue)
The text in the window from the print statement appears with a white 
background where the text is
but the rest of the screen uses the _KThemeActiveDialogBackgroundBrush
I want to use the _KThemeActiveDialogBackgroundBrush even for where the text 
is printed
is this possible?

-Brian



dim err
setrect(r,121,119,513,219)
LOCAL FN buildWindowClass1
APPEARANCE WINDOW _windowClass1,"• XDown •",@r,¬
_kDocumentWindowClass,_kwindowCloseBoxAttribute
'_docNoGrow,"XDown", (121,119)-(513,219)
DEF SETWINDOWBACKGROUND(¬
_kThemeActiveDialogBackgroundBrush, _zTrue)
'WINDOW _windowClass1,"XDown", (121,119)-(513,219)
   BUTTON _btn1WClass1,_enable,"Restart",(   32,   64)-( 128,   84), 1
   BUTTON _btn2WClass1,_enable,"Shutdown",( 144,   64)-( 240,   84), 1
   BUTTON _btn3WClass1,_enable,"Cancel",( 256,   64)-( 368,   84), 4
END FN
APPLE MENU "About XDown..."

LOCAL FN updateWindowClass1
   ' If you're not using PG, add...
   DIM gObjT,gObjL,gObjB,gObjR
END FN

FN buildWindowClass1
FN updateWindowClass1
AUTOCLIP=0
LOCAL FN drawTextProc
TEXT _sysfont,15,1
AUTOCLIP=0
LOCATE 2,1:PRINT "           Are you sure you want to Shutdown?"
END FN

FN drawTextProc