XCode 2.5
PB 4.51
The code below works under Windows, Linux & OSX Intel but I get [ERROR] The specified #Gadget is not initialized at the first SetGadgetState and all subsequent calls that depend on gadget initialization. Since my app has about a zillion gadgets, this is a problem. This is a new installation on a new G4 iMac (actually a used refurb that came with OSX 10.4.11 installed).
What is likely to be missing?
Code: Select all
top=47
Frame3DGadget(#PB_Any,5,top,415,49," Longitude | Latitude | Timezone |")
SpinGadget(#SPIN_LON1_CFG,8,top+19,65,25,-179,180,#PB_Spin_ReadOnly|#PB_Spin_Numeric)
SetGadgetState(#SPIN_LON1_CFG, Val(StringField(lon,1,".")))
SetGadgetText(#SPIN_LON1_CFG, StringField(lon,1,"."))
SpinGadget(#SPIN_LON2_CFG,70,top+19,50,25,0,99,#PB_Spin_ReadOnly|#PB_Spin_Numeric)
SetGadgetState(#SPIN_LON2_CFG, Val(StringField(lon,2,".")))
SetGadgetText(#SPIN_LON2_CFG, StringField(lon,2,".")) 

