Event handling

You need some new stunning features ? Tell us here.
DoctorLove
User
User
Posts: 85
Joined: Sat Mar 06, 2010 2:55 pm

Event handling

Post by DoctorLove »

Hi Polo,

You need to do something about the event handling stuff. Too much manual typing needs to be done.
I make a lot of errors with this system.

Why dont you create automatic the event file which belongs to the PBF file? So both are always linked to each other.

-> New project (with Form), Main.pb created.
-> New Form, Input pop-up, Name the Form(class), create 2 files, 1x PBF and 1x PB (link to eachother), add to project
-> New Class/Module/include, input pop-up, namethe file, add to the project, add include in main.pb

Also, On the event procedure, make a select box of the event types supported by the manual.
When somebody clicks on the event, the procedure will pop-up in de source code (Form1.pb).
Then you will have something close to how Delphi/Visual Basic works.

That way you have a cleaner system.
If you need help on programming this, i want to help you.

Like;
- Main.pb
- Form1.pbf
- Form1.pb
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Event handling

Post by Polo »

Some optimisations like the one you suggested could be interesting, we'll focus on getting a stable release for 5.10 then we'll work on new features like this and custom gadgets ;)
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Event handling

Post by VB6_to_PBx »

just allow the Form's Code Window to be edited,
then i could add or write in my own Event procedure code right then and there
without any need for an Event file (if i didn't want to use one= would be great Option !!! )
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Event handling

Post by Polo »

VB6_to_PBx wrote:just allow the Form's Code Window to be edited
What should be allowed to be edited?
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Event handling

Post by VB6_to_PBx »

Polo wrote:
VB6_to_PBx wrote:just allow the Form's Code Window to be edited
What should be allowed to be edited?
i would like to have ability to edit or add Code to Form's Code Window
like in the Picture below (the added Code highlighted in yellow),
then ability to Save it to File and also to Run it just as i edited in the IDE

Add Event code and run it on the fly in the IDE , would be great option !


Image
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Event handling

Post by Polo »

I see, might be possible to let some parts of the code editable, I'll see what I can do!
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 627
Joined: Mon May 09, 2011 9:36 am

Re: Event handling

Post by VB6_to_PBx »

Polo wrote:I see, might be possible to let some parts of the code editable, I'll see what I can do!
thank you , Polo
and have a Merry Christmas !
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Event handling

Post by Polo »

VB6_to_PBx wrote:and have a Merry Christmas !
And you :)
luciano
Enthusiast
Enthusiast
Posts: 151
Joined: Wed Mar 09, 2011 8:25 pm

Re: Event handling

Post by luciano »

In case it might be useful we could use some delimiter before and after added code, to help Form Designer recognize the added lines:

Code: Select all

; FD_UserCode_Start
  SetProgressCircleState(#ProgressCircle,10,Data_Sel+2,Circle_Color,$F1F1F1) ; user code example, not parsed by FD
; FD_UserCode_End
and btw:
Gaetan, Merry Christmas!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Event handling

Post by Polo »

Thanks Luciano, merry Christmas to you too!
Post Reply