PureFORM 1.99 (yet another FORM designer)

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:Hi gnozal, my question is: is possible in pureform when i create Stringgadget to select max number of char? for example SendMessage_(GadgetID(#String_0), #EM_LIMITTEXT, 5, 0) i limit number of chars for string gadget, you add this option in pureform?
You could add this code using code infusion.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

Hi Gnozal thank's for previous response, i have started new project, at the moment i have 4 windows in the project, i have a problem, in one of this window i set background image with purecolor active, saved project and pureform apply background image to others windows, i have remoed background from other windows, saved project, reload and all ok, reclosed and reopen project bang background applied to other windows.
This is not the only project i have this problem, in MSN E-Fix pureform put background without permission to other windows, i manually all time remove background....
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:...i have a problem, in one of this window i set background image with purecolor active, saved project and pureform apply background image to others windows, i have remoed background from other windows, saved project, reload and all ok, reclosed and reopen project bang background applied to other windows.
I just tried, I can't reproduce the problem.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

If you want i send you pureform project with all files? Send me valid email an i send you....
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:If you want i send you pureform project with all files? Send me valid email an i send you....
That could help... please send to gnozal[AT]gmail[DOT]com
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

Ok i send project and graphic, i uploaded to youtube video for show the problem:
http://www.youtube.com/watch?v=4WcVj1h_ ... e=youtu.be
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:Ok i send project and graphic, i uploaded to youtube video for show the problem:
http://www.youtube.com/watch?v=4WcVj1h_ ... e=youtu.be
It seems you are misusing PureFORM : as stated in the help file, using background color and background image at the same time is not possible : they are using the same brush with SetClassLong_().
You may try to use a disabled ImageGadget for the background image.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

gnozal wrote:
le_magn wrote:Ok i send project and graphic, i uploaded to youtube video for show the problem:
http://www.youtube.com/watch?v=4WcVj1h_ ... e=youtu.be
It seems you are misusing PureFORM : as stated in the help file, using background color and background image at the same time is not possible : they are using the same brush with SetClassLong_().
You may try to use a disabled ImageGadget for the background image.
Gnozal sorry but i not misusing, i not enabled background image and color, pureform do this without my permission, and now in #Main window i'm not able to reload project without image, auto selected by pureform, every time i remove it, this is a bug not misusing... if i save project without image why pureform reload it with image selected(i never selected image background for this window)?
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:i not enabled background image and color, pureform do this without my permission, and now in #Main window i'm not able to reload project without image, auto selected by pureform, every time i remove it, this is a bug not misusing... if i save project without image why pureform reload it with image selected(i never selected image background for this window)?
Sorry, I thought it was intentionally.
If not, it's probably a bug in the form loader... .
[EDIT] Yes it is : I have uploaded a new build, it should fix this issue.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99: event procedures

Post by michel »

Hi Gnozal

Pureform creates a certain structure with procedure call in the gadget event mode as soon as the code infusion editor detects a character; so for example the insertion of ;-- gives:

Procedure Button_0_OnEvent(EventType.l)
;--
;:PureFORM:Gadget_0_1:End:
; Your code here ...

;
;:PureFORM:Gadget_0_2:Start:
EndProcedure

Case #PB_Event_Gadget
Select EventGadget()
Case #Button_0
Button_0_OnEvent(EventType())
EndSelect


Is it possible to generate the same structure for a menu_event and a toolbar_event
That means that with one pass the user can get in the standard editor a structure where he can complete his code without having a mixture of code coming from the standard editor and from the code infusion editor.

kind regards

michel
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hi Gnozal,

In a large project with many gadgets it happens that a gadget can move although this is accidently while reading or changing properties. Can you imagine a freeze/defreeze option for the gadgets, so that they can only be moved when the freeze option is not selected?

michel
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

michel wrote:Hi Gnozal,

In a large project with many gadgets it happens that a gadget can move although this is accidently while reading or changing properties. Can you imagine a freeze/defreeze option for the gadgets, so that they can only be moved when the freeze option is not selected?

michel
I agree, freeze/defreeze option is nice.
p.s. Gozal thank you for update, it fix bug of move image-background from window to another
Image
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by IdeasVacuum »

Freeze/Thaw option would be great 8)
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: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

IdeasVacuum wrote:Freeze/Thaw option would be great 8)
The 'Disable / Enable' button in 'Gadget properties' may be used for this.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

Update

Changes:
- code infusion : menu / toolbar / container toolbar events are now handled with procedures (like gadget events)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply