Page 4 of 4

Re: PureBasic 5.00 final is out !

Posted: Mon Nov 19, 2012 7:13 am
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.

Re: PureBasic 5.00 final is out !

Posted: Mon Nov 19, 2012 11:55 am
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

Re: PureBasic 5.00 final is out !

Posted: Tue Nov 20, 2012 1:28 am
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. :?:

Re: PureBasic 5.00 final is out !

Posted: Tue Nov 20, 2012 9:13 am
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.

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 12:26 pm
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.

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 1:21 pm
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.

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 1:32 pm
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?

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 1:45 pm
by GeoTrail
The possibility to run the code from the deisgner would be great :)

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 2:28 pm
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 :)

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 2:32 pm
by GeoTrail
Thanks, looking forward for future updates :)
* Check help section = check :)
* Don't ask stupid questions = uhm, try to tone that down ;) hehehe

Re: PureBasic 5.00 final is out !

Posted: Sat Dec 01, 2012 2:41 pm
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! ;)

Re: PureBasic 5.00 final is out !

Posted: Tue Dec 18, 2012 10:41 pm
by GeoTrail
Yes there are. Just you wait hehe:lol:

Re: PureBasic 5.00 final is out !

Posted: Mon Jan 28, 2013 1:24 pm
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?