Page 99 of 103
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Tue Oct 23, 2012 7:38 pm
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.
Other point: could you give a short example about the pureforms.flags?
kind regards
Michel
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Wed Oct 24, 2012 8:48 am
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.
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
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Sat Oct 27, 2012 6:59 am
by michel
Hello Gnozal,
Thank you, the path was finally missing

Re: PureFORM 1.99 (yet another FORM designer)
Posted: Sat Nov 10, 2012 10:52 am
by gnozal
Update
Changes :
- added #PB_Window_NoActivate flag in code generation
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Sat Nov 10, 2012 11:43 pm
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.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 12, 2012 8:54 am
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'.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 12, 2012 12:56 pm
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
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 12, 2012 1:02 pm
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) !?
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 12, 2012 7:45 pm
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)"
Do you see a reason to that?
Michel
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 12, 2012 11:37 pm
by rule
gnozal wrote:I assume you mean a listicongadget ?
Right-click on gadget, select 'Remove column'.
Yes, stupid me...
Thanks Gnozal.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Tue Nov 13, 2012 12:44 pm
by gnozal
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.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Tue Nov 13, 2012 12:56 pm
by michel
Hello Gnozal,
no items=no color
OK, but when I insert items after having cleared before the color does not reappear.
Michel
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Tue Nov 13, 2012 1:49 pm
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.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Tue Nov 13, 2012 7:29 pm
by michel
Hello Gnozal,
I finally understood what you meant,
after CleargadgetItems...
I added PureCOLOR_SetGadgetColorEx...
Now everything works perfectly
Micheö
Setting a parent window other than the main window?
Posted: Fri Nov 16, 2012 5:01 am
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?