All PureFORM, JaPBe, Libs and useful code maintained by gnozal
Moderator: gnozal
michel
Enthusiast
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Tue Oct 23, 2012 7:38 pm
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.
Other point: could you give a short example about the pureforms.flags?
kind regards
Michel
gnozal
PureBasic Expert
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Wed Oct 24, 2012 8:48 am
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.
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
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Sat Oct 27, 2012 6:59 am
Hello Gnozal,
Thank you, the path was finally missing
gnozal
PureBasic Expert
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Sat Nov 10, 2012 10:52 am
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
Posts: 14 Joined: Sat Sep 02, 2006 7:56 pm
Location: Oostzaan / Netherlands
Post
by rule » Sat Nov 10, 2012 11:43 pm
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
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Mon Nov 12, 2012 8:54 am
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
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Mon Nov 12, 2012 12:56 pm
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
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Mon Nov 12, 2012 1:02 pm
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
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Mon Nov 12, 2012 7:45 pm
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)"
Do you see a reason to that?
Michel
rule
User
Posts: 14 Joined: Sat Sep 02, 2006 7:56 pm
Location: Oostzaan / Netherlands
Post
by rule » Mon Nov 12, 2012 11:37 pm
gnozal wrote: I assume you mean a listicongadget ?
Right-click on gadget, select 'Remove column'.
Yes, stupid me...
Thanks Gnozal.
gnozal
PureBasic Expert
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Tue Nov 13, 2012 12:44 pm
michel wrote: I discovered another strange behaviour:
In the ListIconGadget the color mode disappears with the command "ClearGadgetItems(#ListIcon_109)"
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
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Tue Nov 13, 2012 12:56 pm
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
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Tue Nov 13, 2012 1:49 pm
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
Posts: 142 Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg
Post
by michel » Tue Nov 13, 2012 7:29 pm
Hello Gnozal,
I finally understood what you meant,
after CleargadgetItems...
I added PureCOLOR_SetGadgetColorEx...
Now everything works perfectly
Micheö
jassing
Addict
Posts: 1885 Joined: Wed Feb 17, 2010 12:00 am
Post
by jassing » Fri Nov 16, 2012 5:01 am
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?