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 bug with inverted mouse buttons

Post by gnozal »

somic wrote:
Should be fixed in new release
Can you tell us when (approx.)?
Now !
See http://www.purebasic.fr/english/viewtop ... start=1000
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: PureFORM bug with inverted mouse buttons

Post by Fangbeast »

Now !

LOL! Gnozal, the human coding machine :D
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

Re: PureFORM bug with inverted mouse buttons

Post by somic »

Many thanks,
I will test asap.

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

Post by gnozal »

Update (build 336)

Changes :
- fixed a code infusion explorer issue
- projects should load faster
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Molchyn
User
User
Posts: 42
Joined: Thu Jan 29, 2004 12:54 am

Post by Molchyn »

Hi gnozal
ImageButton have a 2nd Image for pressed-state
#PB_Button_PressedImage: Set the image displayed when the button is pressed.
Can you implement it?
example here http://www.purebasic.fr/english/viewtop ... 579#245579
BR
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update (build 338)

Changes :

- ButtonImageGadget : added support for 2nd image (pressed state image [PB4.20+ only]).
Note : the 2nd image is supported in the generated code but is not shown in the form. Use 'Compile/Run' for preview.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Post by Bisonte »

Hi. This tool is very good. But If I download a "new" update , i install it, and if i start the tool, there's a new Update ;) very great, but... can u make an automatic Update possible ?

__________
sorry about my english ;)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Bisonte wrote:Hi. This tool is very good. But If I download a "new" update , i install it, and if i start the tool, there's a new Update ;) very great, but... can u make an automatic Update possible ?
At the moment, automatic downloads are only available through my tools updater.
But maybe one day ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Post by Bisonte »

Ah ok i've forgotten your lib updater ;)

But its a tool not a lib ;) Ok thanks for info
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Post by ozzie »

I'm trying to get my first form designed using PureFORM and I'm getting a compliation error. The form is quite simple with two image gadgets and a few text gadgets - it's just a splash screen for my application.

In PureFORM's Code View I click on 'Complete Code' and then click on 'Copy to Clipboard'. I then switch to jaPBe and open a new tab and paste the code. When I click the Compile icon in jaPBe, a new tab is opened for CustomButton.pbi and the complier throws an error on line 70 with a message about structure already declared: TrackMouseEvent.

What am I doing wrong?

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

Post by gnozal »

ozzie wrote:... When I click the Compile icon in jaPBe, a new tab is opened for CustomButton.pbi and the complier throws an error on line 70 with a message about structure already declared: TrackMouseEvent.
This is not a PureFORM issue. The TrackMouseEvent structure is not used in the PureFORM generated code.
It's a general PB issue : you can't declare the same structure twice.

Did you enable this include in jaPBe by mistake ? If you are not using this include, uncheck it in jaPBe in project options and preferences (include tab).
Note that some of the jaPBe includes were not translated to PB4.xx.

Generally speaking, when you get a message about a structure already declared, simply comment the structure out, like this :
before
CustomButton.pbi wrote:Structure TrackMouseEvent
cbSize.l
dwFlags.l
hwndTrack.l
dwHoverTime.l
EndStructure
after
CustomButton.pbi wrote:;Structure TrackMouseEvent
; cbSize.l
; dwFlags.l
; hwndTrack.l
; dwHoverTime.l
;EndStructure
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

The best is to use compilerdirectives:

Code: Select all

CompilerIf Defined(TrackMouseEvent, #PB_Structure) = #False
Structure TrackMouseEvent
  cbSize.l
  dwFlags.l
  hwndTrack.l
  dwHoverTime.l
EndStructure
CompilerEndIf
greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:The best is to use compilerdirectives
I agree, if ozzie is using PB 4.xx (PureFORM generates code for PB3.9x and PB4.xx).

NB : I will translate the include to PB4.xx for the next jaPBe release.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Post by ozzie »

I'm using PB 4.20 and, yes, I did have 'Custom Buttons' selected in the jaPBe Include list. I've de-selected that now and get past that point but have some other issues. But I'll see if I can sort them out before asking for help!

Thanks,
Mike
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Post by ozzie »

Another PureFORM problem that I can't find the answer to: I have a Window with several gadgets, and have changed the Enum properties of the gadgets to constants that carry some meaning in the program. That's fine until I add another Window to the project. When I add another Window the Enum properties of all the existing gadgets are re-generated to the constants set according to the 'gadget enumeration' preference.

How can I lock in my own Enum property for each gadget, which will persist even when another Window is added to the project?

Mike
Post Reply