PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

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

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

I am a little bit confused; I use version 434 but I dont see the flag, there are only 3 flags to select. :shock:
Other point: could you give a short example about the pureforms.flags?

kind regards

Michel
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 »

michel wrote:I am a little bit confused; I use version 434 but I dont see the flag, there are only 3 flags to select. :shock:
Flags and code generation are 'context sensitive' in PureFORM.
The #PB_ComboBox_Image only appears if PureFORM detects a PB version >= 4.50 and 'Generate PB4 code' is checked in preferences. Check your PB x86 compiler path in preferences.
michel wrote:Other point: could you give a short example about the pureforms.flags?
An example :

Code: Select all

; ------------------------------------------
; Custom gadget flags definition file sample
; ------------------------------------------
; Original name : PureFORM.Flags
; ---------------------------------------
; Available gadget classes :
; ButtonGadget = 0
; ButtonImageGadget = 1
; CalendarGadget = 2
; CheckBoxGadget = 3
; ComboBoxGadget = 4
; ContainerGadget = 5
; DateGadget = 6
; EditorGadget = 7
; ExplorerComboGadget = 8
; ExplorerListGadget = 9
; ExplorerTreeGadget = 10
; Frame3DGadget = 11
; HyperLinkGadget = 12
; IPAddressGadget = 13
; ImageGadget = 14
; ListIconGadget = 15
; ListViewGadget = 16
; MDIGadget = 17
; OptionGadget = 18
; PanelGadget = 19
; ProgressBarGadget = 20
; ScrollAreaGadget = 21
; ScrollBarGadget = 22
; SpinGadget = 23
; SplitterGadget = 24
; StringGadget = 25
; TextGadget = 26
; TrackBarGadget = 27
; TreeGadget = 28
; WebGadget = 29
; ---------------------------------------
;
[Flag_0]
Text = #ES_AUTOVSCROLL
Value = $40
Class = 25

[Flag_1]
Text = #ES_AUTOHSCROLL
Value = $80
Class = 25

[Flag_2]
Text = #PB_ComboBox_Image
Value = 0 ; not supported by PB3.94 !
Class = 4
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 141
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

Thank you, the path was finally missing :oops:
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 :
 - added #PB_Window_NoActivate flag in code generation
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
rule
User
User
Posts: 14
Joined: Sat Sep 02, 2006 7:56 pm
Location: Oostzaan / Netherlands

Re: PureFORM 1.99 (yet another FORM designer)

Post by rule »

Hello Gnozal,
If I create a listboxgadget with several columns, let's say 5, and I want to remove 1 column, how can I do that?
TIA,
Roel.
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 »

rule wrote:If I create a listboxgadget with several columns, let's say 5, and I want to remove 1 column, how can I do that?
TIA,
Roel.
I assume you mean a listicongadget ?
Right-click on gadget, select 'Remove column'.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 141
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

With the new version of PureFORM my icons in the panelgadget are no longer shown, but the references still exist in the parameter window?!

Michel
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 »

michel wrote:With the new version of PureFORM my icons in the panelgadget are no longer shown, but the references still exist in the parameter window?!
You mean the tab icons ?
Strange, I didn't change anything besides the new flag.
And it works here (build 436/WinXP) !?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 141
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

I finally found the error:
I had checked the option PureColor in the Panelegadget, this is not compatible with icions in the tab bar. :)

I discovered another strange behaviour:
In the ListIconGadget the color mode disappears with the command "ClearGadgetItems(#ListIcon_109)" :shock:

Do you see a reason to that?

Michel
rule
User
User
Posts: 14
Joined: Sat Sep 02, 2006 7:56 pm
Location: Oostzaan / Netherlands

Re: PureFORM 1.99 (yet another FORM designer)

Post by rule »

gnozal wrote:I assume you mean a listicongadget ?
Right-click on gadget, select 'Remove column'.
Yes, stupid me...
Thanks 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 »

michel wrote:I discovered another strange behaviour:
In the ListIconGadget the color mode disappears with the command "ClearGadgetItems(#ListIcon_109)" :shock:
Do you see a reason to that?
Yes, it's a feature.
If PureCOLOR catches a #LVM_DELETEALLITEMS message, it calls PureCOLOR_ClearAllColorsForGadget().
No items = no colors.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 141
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

no items=no color

OK, but when I insert items after having cleared before the color does not reappear. :(

Michel
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 »

michel wrote:OK, but when I insert items after having cleared before the color does not reappear. :(
Yes, because PureCOLOR_ClearAllColorsForGadget() clears all color settings. You have to set the colors again.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 141
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by michel »

Hello Gnozal,

I finally understood what you meant,

after CleargadgetItems...
I added PureCOLOR_SetGadgetColorEx...

Now everything works perfectly :D

Micheö
jassing
Addict
Addict
Posts: 1745
Joined: Wed Feb 17, 2010 12:00 am

Setting a parent window other than the main window?

Post by jassing »

I have a pureform project with 1/2 dozen windows.
Window#1 is defined as main.

When I open up window#2 (not a child window); it can then open up window#3 -- I want this window to have window#2 as parent, not Window#1 -- is there a way to do it pureform so I don't have to change it in the source?
Post Reply