Page 1 of 1
[Bug alpha# Windows] deprecated function...
Posted: Mon Aug 06, 2012 6:13 pm
by Primoz128
Code: Select all
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)
IncludeFile "GeneratedIncludeFile.pb"
THAT FILE:
Code: Select all
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)
;- Window Constants
;
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
;
Enumeration
#Button_0
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 228, 0, 600, 300, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered )
If CreateGadgetList(WindowID(#Window_0))
ButtonGadget(#Button_0, 220, 80, 160, 110, "")
EndIf
EndIf
EndProcedure
Heres the screenshot of the error:
http://www.2shared.com/photo/G0HJFHyx/Zajeta_slika.html
Re: [Bug alpha# Windows] deprecated function...
Posted: Mon Aug 06, 2012 7:11 pm
by c4s
Unlike earlier versions of PureBasic, OpenWindow() now automatically creates a gadget list. So simply remove the "CreateGadgetList(WindowID(#Window_0))" part and you're done.
Re: [Bug alpha# Windows] deprecated function...
Posted: Tue Aug 07, 2012 2:27 pm
by IdeasVacuum
Try PureForm - it actually has that issue too, but overall it is a much better designer.
Re: [Bug alpha# Windows] deprecated function...
Posted: Mon Aug 13, 2012 10:18 am
by gnozal
IdeasVacuum wrote:Try PureForm - it actually has that issue too
It should not, provided that the compiler path to x86 pbcompiler.exe is correct in preferences (code generation adapts itself to PB version).
Re: [Bug alpha# Windows] deprecated function...
Posted: Mon Aug 13, 2012 11:01 am
by IdeasVacuum
It should not, provided that the compiler path to x86 pbcompiler.exe is correct in preferences (code generation adapts itself to PB version)
Ah, I didn't pay attention to that setting!

For everyone else, you'll find it in Setup/Configuration/Code[1]/Compiler Path
Works perfectly, thanks gnozal.