You could add this code using code infusion.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?
PureFORM 1.99 (yet another FORM designer)
Moderator: gnozal
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: PureFORM 1.99 (yet another FORM designer)
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....
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....

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
I just tried, I can't reproduce the problem.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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: PureFORM 1.99 (yet another FORM designer)
If you want i send you pureform project with all files? Send me valid email an i send you....

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
That could help... please send to gnozal[AT]gmail[DOT]comle_magn wrote:If you want i send you pureform project with all files? Send me valid email an i send you....
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: PureFORM 1.99 (yet another FORM designer)
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
http://www.youtube.com/watch?v=4WcVj1h_ ... e=youtu.be

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
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_().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
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).
Re: PureFORM 1.99 (yet another FORM designer)
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)?gnozal wrote: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_().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
You may try to use a disabled ImageGadget for the background image.

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
Sorry, I thought it was intentionally.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)?
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).
Re: PureFORM 1.99: event procedures
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
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
Re: PureFORM 1.99 (yet another FORM designer)
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
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
Re: PureFORM 1.99 (yet another FORM designer)
I agree, freeze/defreeze option is nice.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
p.s. Gozal thank you for update, it fix bug of move image-background from window to another

-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
Freeze/Thaw option would be great 

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
The 'Disable / Enable' button in 'Gadget properties' may be used for this.IdeasVacuum wrote:Freeze/Thaw option would be great
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PureFORM 1.99 (yet another FORM designer)
Update
Changes:
- code infusion : menu / toolbar / container toolbar events are now handled with procedures (like gadget events)
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).