PureBasic 5.00 final is out !

Developed or developing a new product in PureBasic? Tell the world about it.
UUICEO
User
User
Posts: 57
Joined: Tue Mar 10, 2009 9:09 pm
Location: Shakopee, Minnesota. USA

Re: PureBasic 5.00 final is out !

Post by UUICEO »

Thanks guys. I really appreciate the hard work you all do to keep improving PB. Keep up the great work. I'll be sending in a donation for your efforts.
Windows 7 Ultimate x64 / PureBasic 5.21 LTS / ProGUI Platinum / PureVision / http://www.linkedin.com/groups/PureBasi ... =&trk=tyah
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: PureBasic 5.00 final is out !

Post by Baldrick »

Awsome update, thanks so much Fred & team!
Havent done much coding in a while now, pretty much tired of doing stuff for other people for '0' appreciation of the time that goes into writing applications, let alone the money they don't pay for having it done for them. Just downloaded this version & run a few of my projects & find that compile time is now right back up to where it used to be before the MSE AV thing slowed everything down on me big time.
Thanks again... :D
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: PureBasic 5.00 final is out !

Post by electrochrisso »

Sorry to reply to Baldrick here Fred, but I just had to ask about the MicroGateways, DoorLogix programming interface and Rainguage charting software, looks like they were programmed in PureBasic. :?:
PureBasic! Purely the best 8)
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: PureBasic 5.00 final is out !

Post by Baldrick »

electrochrisso wrote:Sorry to reply to Baldrick here Fred, but I just had to ask about the MicroGateways, DoorLogix programming interface and Rainguage charting software, looks like they were programmed in PureBasic. :?:
Answer to that is yes. Totally PB. The Doorlogix Controller it'self I did all in 'C'
The Rainguage 1 was done a long time ago pre-win7 & pre-native Sqlite3 even.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 5.00 final is out !

Post by GeoTrail »

I might be really dumb here, but I can't wrap my head around the new visual designer. I can't get it to generate code or action for objects. With the old one, I just clicked generate code, or something, and saved the .pb file which I could open in PB and edit.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.00 final is out !

Post by Polo »

GeoTrail wrote:I might be really dumb here, but I can't wrap my head around the new visual designer. I can't get it to generate code or action for objects. With the old one, I just clicked generate code, or something, and saved the .pb file which I could open in PB and edit.
Save your form as a .pbf file then include it in your project.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 5.00 final is out !

Post by GeoTrail »

Yes I know that, but should the VD create events in the code? The old one did. Look at this example that I just made with the new designer:

Code: Select all

Global Window_0

Global Button_0

Procedure InitWindow_0()
  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
  Button_0 = ButtonGadget(#PB_Any, 100, 60, 110, 50, "A button", #PB_Button_Left)
EndProcedure

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

    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure
There's no event for the button.

Here I have written the event for the button manually:

Code: Select all

Global Window_0

Global Button_0

Procedure InitWindow_0()
  Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
  Button_0 = ButtonGadget(#PB_Any, 100, 60, 110, 50, "A button", #PB_Button_Left)
EndProcedure

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

    Case #PB_Event_Gadget
      Select EventGadget()
        Case Button_0
          MessageRequester("Hello", "This is a button")
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure

InitWindow_0()

Repeat
  event = WaitWindowEvent()
Until Window_0_Events(event) = #False
Shouldn't the designer create the events automatically? Or am I missing something?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 5.00 final is out !

Post by GeoTrail »

The possibility to run the code from the deisgner would be great :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.00 final is out !

Post by Polo »

GeoTrail wrote:The possibility to run the code from the deisgner would be great :)
You'll be able to do that in next version.

For handling events you should look at the help topic I've made in the Form Designer section of this forum :)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 5.00 final is out !

Post by GeoTrail »

Thanks, looking forward for future updates :)
* Check help section = check :)
* Don't ask stupid questions = uhm, try to tone that down ;) hehehe
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: PureBasic 5.00 final is out !

Post by Polo »

GeoTrail wrote:Thanks, looking forward for future updates :)
* Check help section = check :)
* Don't ask stupid questions = uhm, try to tone that down ;) hehehe
There's no such thing as stupid questions! ;)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic 5.00 final is out !

Post by GeoTrail »

Yes there are. Just you wait hehe:lol:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 5.00 final is out !

Post by Lebostein »

SetModulePosition() is now in milliseconds, no more in pattern
Is this a joke? SetModulePosition() in milliseconds and GetModulePosition() in patterns? How does it work together?
Post Reply