[futurebasic] Moving between Appearance and Standard

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2004 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Mon, 29 Mar 2004 17:25:54 -0500
As I migrate to Appearance for my application, I find that I want to be 
able to move back and forth between Appearance and Standard, because I 
must continue development of the application while I migrate to 
Appearance (I know this probably isn't optimal, but it's worth it for 
me because I am in a very dynamic situation right now with the 
application).

So two questions come up:

1. Is there a global or other way for my program to tell at compile 
time which runtime I am using? I am thinking to something similar to 
the one that I know exists for Carbon vs. PPC. Currently, I am using a 
constant of my own (_appearance) to do something like this:

compile long if _appearance
   appearance button _INHARDBOARDBOX, _activeBtn,,,, "Hdbd.", @myRect, 
_kControlCheckBox _useWFont
compile xelse
   BUTTON _INHARDBOARDBOX, _activeBtn, "Hdbd.", @myRect, 
_checkbox_useWFont
compile end if

2. Is there a way to easily swap which runtime gets used? Currently, I 
have to drag the correct runtime into my project window, which can be a 
pain. I am hoping to specify which .incl to use in my source code using 
the INCLUDE statement. I have tried to do this, but it seems like the 
Appearance or Standard runtime have to be in place too early for this 
to work.

Thanks,

Paul