Page 1 of 1

[Done] Frame3d ... gadget name change

Posted: Fri Jul 26, 2013 9:29 am
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 ;-)

Re: Frame3d ... gadget name change

Posted: Fri Jul 26, 2013 9:48 am
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!

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

Posted: Fri Jul 26, 2013 2:04 pm
by Polo
Changed the constant for next beta. It won't be able to read the frame3D constants from old .pbf files though.

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

Posted: Fri Jul 26, 2013 5:04 pm
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.