[futurebasic] Re: Calculator coding conundrum

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

From: Ken Shmidheiser <k.shmidheiser@...>
Date: Sun, 3 Jun 2001 01:09:11 -0600
Robert P., on demonstrating use of resources with FB^3 ON DIALOG handler:

>  >>Your buttons are "hard-coded". How about putting them in a DITL
>  >>resource, to make it easier to change the layout and names of the
>  >>buttons?
>  >
>  >If I use resources, don't I have to give up FB^3's ON DIALOG handler
>  >and build my own in ON EVENT?
>
>You can make plain FB buttons from information in a DITL resource. 
>This lets you do the design in ResEdit and allows easy localisation, 
>but you can keep your existing event handling. Be sure to make the 
>DLOG resource for an initially invisible dialog, otherwise you'll 
>see an ugly flash as it's drawn and then disappears.
>
>Robert P.
>
>'----complete FB^3 program, but needs resource file-----


Robert,

Great demo and explanation. I noticed I could easily change the 
button style from vanilla FB^3 to Appearance style by appending info 
to the end of iType - 3 (FB^3 button style), i.e., iType - 3+46.

Can you safely mix FB^3 EDIT FIELDS in this environment?

Ken