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:
I tried it : New form, add a string gadget, change the gadget background color in gadget properties, add another string gadget.srod wrote:Gnozal the steps are exactly those I outlined above.
No problem here !?
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:
Generated code (using PureCOLOR)srod wrote:Hmm, am I misuing PureForm? If I colour a string gadget (without PureColor) and then run the project, the string gadget does not get coloured!
Code: Select all
Procedure OpenWindow_Window_0()
If OpenWindow(#Window_0, 202, 62, 400, 400, "Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
If CreateGadgetList(WindowID(#Window_0))
StringGadget(#Window_0_String_0, 76, 46, 225, 46, "Gadget_0")
; Gadget Colors
PureCOLOR_SetGadgetColor(#Window_0_String_0, #PureCOLOR_SystemColor, $400040)
EndIf
EndIf
EndProcedure
Code: Select all
Procedure OpenWindow_Window_0()
If OpenWindow(#Window_0, 202, 62, 400, 400, "Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
If CreateGadgetList(WindowID(#Window_0))
StringGadget(#Window_0_String_0, 76, 46, 225, 46, "Gadget_0")
; Gadget Colors
SetGadgetColor(#Window_0_String_0, #PB_Gadget_BackColor, $400040)
EndIf
EndIf
EndProcedure
Did you add 'StringGadget' to the list in Preferences -> Color functions and checked 'Activate PureCOLOR / PB4 function switch' ?
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:
Hum, you did check 'Enable (PureCOLOR)' in the gadget properties 'extra' tab (you have to check it even if you enable the PureCOLOR / PB4 function switch) ?srod wrote:Yes, still refuses to colour the string gadget
Weird ...srod wrote:and crashes on adding a second!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
I can reproduce the error srod described:
I'm using the latest build (downloaded today)---------------------------
[ERROR]
---------------------------
PureFORM has crashed [Error = C0000005]
'An attemped read or write to/from an address to which that process isn't allowed'
Module : C:\PureBasic394\Program\PureFORM_New.pb ; Line : 8573
The current project will be saved as C:\Dokumente und Einstellungen\Admin\Desktop\PureFORM\CRASH[20070928-201346].pbf
---------------------------
OK
---------------------------
Windows 7 & PureBasic 4.4
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Still can't reproducesrod wrote:In fact it crashes when instead of coloring the gadget you select any option from the Extra tab of the Gadgep properties window.
E.g.
Add string gadget, enable and select a font and the add a second string gadget. Crash.

1. When it crashes, is the gadget properties active tab 'Extra' ?
2. Does it also crash if you : add stringgadget, select tab 'Extra', change font, select tab 'General', add 2nd stringgadget ?
3. Does it also crash if you : add stringgadget, select tab 'Extra', change font, close gadget properties window, add 2nd stringgadget ?
Last edited by gnozal on Sat Sep 29, 2007 4:38 pm, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Yes.gnozal wrote:When it crashes, is the gadget properties active tab 'Extra' ?
No it doesn't crash in this case. But if you switch back to the extra tab and add another string gadget.... crash!Does it also crash if you : add stringgadget, select tab 'Extra', change font, select tab 'General', add 2nd stringgadget ?

I may look like a mule, but I'm not a complete ass.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Thanks, then I think I got a temporary fix : switch automatically to 1st tab when drawing a new gadget. I will add it soon.srod wrote:No it doesn't crash in this case. But if you switch back to the extra tab and add another string gadget.... crash!
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:
Update
Changes :
- new option [Preferences -> Code [2]] : don't add any comments to generated code
- temporary fix for the weird crash reported by srod
Changes :
- new option [Preferences -> Code [2]] : don't add any comments to generated code
- temporary fix for the weird crash reported by srod
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).