It is currently Sun Oct 22, 2017 6:04 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Sun Feb 14, 2016 1:23 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13108
Location: France
This 'create event loop" flag will be removed in the next PB version as it's not useful but very confusing. It should be always uncheked to use the form designer properly.


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Sun Feb 14, 2016 4:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 3:47 am
Posts: 1948
newtheogott wrote:
...i have to disable the "create Event Loop" in the Form Designer and do that manually in an include file, then i can write my Form-initialization just in front of that.

Yes. The preferred approach would be to disable the Generate event loop option altogether; just as Fred has said in the preceding post.

The form file would then contain purely form code, while all executable code would reside in external code files, including the main event processing loop.

_________________
Texas Instruments 99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Sun Feb 14, 2016 7:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Apr 26, 2003 2:52 pm
Posts: 120
Location: Germany, Karlsruhe
I would really like a system, where the Form Designer generates all the code.
Including all the Event-Procedures. This is normally the Standard.

Thats only possible, if all the Form-Data is stored in a separate file (such files are known from VB).
Then the Form Designer can always "regenerate" the code from this file.
No matter what changes the user did in the code.

As a help, the Form-Designer could use comments in the code-file to find each item-line.
For example:

Code:
;###FD:Gadget 021 Begin
... (Code that was generated)
;###FD:Gadget 021 End

And between these blocks the user could do what he wants.


Otherwise "Newbies" like me will not be able to make a usable form without first studying the manual.
And - in case of many buttons - have a lot of typing work that could easily be automated by somebody who really knows how to use the underlying system.

_________________
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Tue Mar 14, 2017 10:06 pm 
Offline
New User
New User

Joined: Sat Mar 04, 2017 5:17 pm
Posts: 1
As a new user to PB, I have a question to a previous post

Quote:
* make sure that all form and code files are saved in the same folder - otherwise make sure that the path to the form file is included in the IncludeFile() statements.



If I do not use the IncludeFile statement, where in the directory structure do I place that folder, and if I do use the Includefile statement do I need to fully qualify that directory?

thanks for your help


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Tue Mar 14, 2017 10:54 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Sep 21, 2011 9:11 am
Posts: 574
Location: France
Fred wrote:
This 'create event loop" flag will be removed in the next PB version as it's not useful but very confusing. It should be always uncheked to use the form designer properly.
100% agree.

_________________

➽ Windows 10 - PB 5.45 LTS & PB 5.60

http://falsam.com & EasySprite.js
http://purebasic.chat - Code PureBasic
Image Pure Basic Francophone Community

Sorry for my bad english and the Dunning–Kruger effect.


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Wed Mar 15, 2017 11:03 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 297
Location: France
cpat wrote:
If I do not use the IncludeFile statement, ...
... then you can't use form designer :)

Look here (at bottom) « Using the form designer in real world projects »
https://www.purebasic.com/documentation/reference/ide_form.html

PS. A very good option of the form designer is the Image manager
Check Catch Image and Relative path and the FD write all the complicated code for including images 8)

:wink:

('create event loop' flag (checkbock) is removed since 5.50)

_________________
(English is not my native language, I used an online translator)
Windows 10 x64 - CPU intel i3 - RAM 16Go - Video NVidia GT 620 - 1920x1080
Linux Debian 8 / xfce (VM & Raspberry)


Top
 Profile  
Reply with quote  
 Post subject: Re: Tutorial: events handling with the Form Designer
PostPosted: Wed Mar 15, 2017 11:22 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Sep 10, 2012 10:41 am
Posts: 101
Location: Savoie
Marc56us wrote:
Check Catch Image and Relative path and the FD write all the complicated code for including images 8)

100% agree 8)

_________________
MacBook Pro 13" Retina - 16 Gb - OSX 10.12 - Iphone 7 - iPad at home
...and unfortunately... Windows at work...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye