[Bug alpha# Windows] deprecated function...

You need some new stunning features ? Tell us here.
User avatar
Primoz128
Enthusiast
Enthusiast
Posts: 212
Joined: Sat Sep 10, 2011 8:25 pm
Location: Slovenia

[Bug alpha# Windows] deprecated function...

Post 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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: [Bug alpha# Windows] deprecated function...

Post 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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: [Bug alpha# Windows] deprecated function...

Post by IdeasVacuum »

Try PureForm - it actually has that issue too, but overall it is a much better designer.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: [Bug alpha# Windows] deprecated function...

Post 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).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: [Bug alpha# Windows] deprecated function...

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply