Visual Designer Demo Problems
Posted: Fri Jul 02, 2004 7:57 pm
I am using the demo version of PureBASIC with the Visual designer. The visual designer has generated the following code that works within Visual designer but if i use it outside of that like the main ide, the debug window appears then disappears and nothing happens. For some strange reason it works within VS but not in the main IDE. Can someone explain why? heres the generated code:
Code: Select all
; PureBasic Visual Designer v3.90 build 1360
;- Window Constants
;
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
;
Enumeration
#Text_0
#Text_1
#Button_0
#Sales
#Commission
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 322, 189, 227, 142, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_SizeGadget | #PB_Window_TitleBar , "Commission Manager")
If CreateGadgetList(WindowID())
TextGadget(#Text_0, 10, 30, 40, 20, "Sales:$")
TextGadget(#Text_1, 10, 60, 70, 20, "Commission:$")
ButtonGadget(#Button_0, 100, 100, 50, 20, "Calculate")
StringGadget(#Sales, 90, 30, 80, 20, "0", #PB_String_Numeric)
GadgetToolTip(#Sales, "Enter Sales Amount Here")
StringGadget(#Commission, 90, 60, 80, 20, "0", #PB_String_ReadOnly | #PB_String_Numeric)
GadgetToolTip(#Commission, "Your Commission Appears Here")
EndIf
EndIf
EndProcedure