[Done] Frame3d ... gadget name change

You need some new stunning features ? Tell us here.
luciano
Enthusiast
Enthusiast
Posts: 151
Joined: Wed Mar 09, 2011 8:25 pm

[Done] Frame3d ... gadget name change

Post by luciano »

Something simple, I hope, but which might cause some stress with older Form files:

Code: Select all

Enumeration #PB_Compiler_EnumerationValue
  #Window_0
EndEnumeration

Enumeration #PB_Compiler_EnumerationValue
  #Frame3D_0
EndEnumeration


Procedure OpenWindow_0(x = 0, y = 0, width = 600, height = 400)
  OpenWindow(#Window_0, x, y, width, height, "", #PB_Window_SystemMenu)
  Frame3DGadget(#Frame3D_0, 40, 30, 400, 260, "3D?", #PB_Frame3D_Single)
EndProcedure

Procedure Window_0_Events(event)
  Select event
    Case #PB_Event_CloseWindow
      ProcedureReturn #False

    Case #PB_Event_Menu
      Select EventMenu()
      EndSelect

    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure
Not a bug in Form Designer itself, but remember that Frame3d Gadget is changing its name and the relative constants, too ;-)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Frame3d ... gadget name change

Post by Polo »

Apparently constants haven't been changed on beta 7 so I just changed the gadget function name for now.
It will read the old pbf files with Frame3D so you shouldnt notice the difference!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: [Done] Frame3d ... gadget name change

Post by Polo »

Changed the constant for next beta. It won't be able to read the frame3D constants from old .pbf files though.
luciano
Enthusiast
Enthusiast
Posts: 151
Joined: Wed Mar 09, 2011 8:25 pm

Re: [Done] Frame3d ... gadget name change

Post by luciano »

thanks,
If it reads the old .pbf is good, it is easy for the user to simply re-apply the option in FD.
Post Reply