[futurebasic] Text from resources

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: David Cottrell <David.Cottrell@...>
Date: Wed, 31 Oct 2001 19:11:11 +1000
Can someone tell me how to get text from a resource and put the styled 
text into a appearance compliant control?

eg I get the text handle with:

resHndl = FN GETRESOURCE(_"pG3t",gObjResID)

and set the controls with:

btnH = fn NewControl(windowPtr,gObjT,"", _zTrue, 0, 0, 0, 
_kControlStaticTextProc, 0 )
err = fn SetControlData(btnH, 0, _kControlStaticTextTextTag, ????, ????)

but what goes in where the ???? are?

Also what about style data? Do I need to use:

_kControlStaticTextStyleTag ?

Am I having fun yet?

David

PS - looks like we lost our other stats programmer - darn...