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:
Update
Changes :
- new 'Remove splitter' function (different from 'Delete') : the splitter is removed and the splitter elements remain (same coordinates as before splitter creation)
- you can now change the splitter flags after the splitter is created ; works also for container gadgets with child gadgets.
The gadgets are destroyed and recreated dynamically.
Changes :
- new 'Remove splitter' function (different from 'Delete') : the splitter is removed and the splitter elements remain (same coordinates as before splitter creation)
- you can now change the splitter flags after the splitter is created ; works also for container gadgets with child gadgets.
The gadgets are destroyed and recreated dynamically.
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:
Sorry, I don't see the images, but if I add a scrollbar to an empty form and the delete it, I have no problem.Molchyn wrote:gnozal
if add on empty form scrollbar and delete scrollbar it's crash pureform
take a look on a pics:
Does this form crash for you ?FORM with a scrollbar, delete scrollbar, no error wrote:;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶PureFORM_Clipboard2
;Window¶1¶#Window_0¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_0¶450¶200¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;ScrollBarGadget¶1¶#ScrollBarGadget_0¶1¶-1¶-1¶0¶0¶22¶0¶0¶¶Gadget_0¶¶-1¶0¶0¶100¶0¶100¶0¶0¶0¶32¶157¶356¶40¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PureFORM_Project_End
;}
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
A rather esoteric bug. If you uncheck all the window property flags, you end up with code like this (no flags, so raises a compile error):
Code: Select all
If OpenWindow(#Window_0, 450, 200, 408, 434, "#Window_0", )
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Good onemskuma wrote:A rather esoteric bug. If you uncheck all the window property flags, you end up with code like this (no flags, so raises a compile error):Code: Select all
If OpenWindow(#Window_0, 450, 200, 408, 434, "#Window_0", )

Should be fixed
Last edited by gnozal on Sat Oct 28, 2006 8:20 am, edited 1 time in total.
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:
I tested both techniques (DEL key and context menu), several times, on two different machines (NT4 / 98SE) : no crashMolchyn wrote:gnozal
Does this form crash for you ?
Yes it is.
Probably difference is in delete technic, if you use rightclick on mouse and choose delete it's open same menu second time and after that you can delete scrollbar, but if you select scrollbar and use keyboard delete - it can happened (crash)

Could you try the debug build to help locate the error line ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip
PS : does this only happen for the ScrollbarGadget ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
[Debugger] *** NEW WINDOW #Window_0
[Debugger] FORM_SelectionRectangle_Window 13
[Debugger] [Callback] SELECTION rectangle
[Debugger] [Callback] SELECTION rectangle : ParentGadget = -1
[Debugger] ////////////// NEW GADGET 267 [ScrollBarGadget]
[Debugger] ////////////// IN WINDOW 13
[Debugger] /// at (90,101) ///
[Debugger] Number 267
[Debugger] Handle 1051484
[Debugger] ParentHandle 2427774
[Debugger] Enumeration #ScrollBarGadget_0
[Debugger] Class <ScrollBar>
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
-//-///-//-//-//-//-//-///-//-//-//-
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] CAPTURE Gadget 267 for MOVING
[Debugger] !!! Delete Gadget 267
[Debugger Error] The linked list doesn't have a current element.
[Debugger Error] File: C:\PureBasic394\Program\PureFORM.pb (Line: 5926)
Fatal error. Do you with to open the Debugger console? (Yes, No)
DEBUGGER:: linkedlists
[Debugger LinkedList List]
Structure GadgetList.GadgetInfo() - empty list
Structure WindowList.WindowInfo() - elements: 1 current: 0
Long TempContainerList() - empty list
Structure TempContainerList2.Container2() - empty list
Structure FilesHistory.FileHistory() - empty list
Structure ImportParent.ParentGadget() - empty list
Structure GadgetGroups.GadgetGroup() - empty list
Structure GroupSelection.GroupSelection() - empty list
String ProjectNames() - empty list
String Arguments() - empty list
Structure ImportGadget.GadgetInfo() - empty list
Structure ImportWindow.WindowInfo() - empty list
String ExtractionPurebasic() - not initialized yet
I check it on 2 computers P4 and AMD with same result
[Debugger] FORM_SelectionRectangle_Window 13
[Debugger] [Callback] SELECTION rectangle
[Debugger] [Callback] SELECTION rectangle : ParentGadget = -1
[Debugger] ////////////// NEW GADGET 267 [ScrollBarGadget]
[Debugger] ////////////// IN WINDOW 13
[Debugger] /// at (90,101) ///
[Debugger] Number 267
[Debugger] Handle 1051484
[Debugger] ParentHandle 2427774
[Debugger] Enumeration #ScrollBarGadget_0
[Debugger] Class <ScrollBar>
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] SetCursorShape : MouseOverGadgetRect 267
[Debugger] FAKE EVENT for gadget 267 [84]
-//-///-//-//-//-//-//-///-//-//-//-
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] CAPTURE Gadget 267 for MOVING
[Debugger] !!! Delete Gadget 267
[Debugger Error] The linked list doesn't have a current element.
[Debugger Error] File: C:\PureBasic394\Program\PureFORM.pb (Line: 5926)
Fatal error. Do you with to open the Debugger console? (Yes, No)
DEBUGGER:: linkedlists
[Debugger LinkedList List]
Structure GadgetList.GadgetInfo() - empty list
Structure WindowList.WindowInfo() - elements: 1 current: 0
Long TempContainerList() - empty list
Structure TempContainerList2.Container2() - empty list
Structure FilesHistory.FileHistory() - empty list
Structure ImportParent.ParentGadget() - empty list
Structure GadgetGroups.GadgetGroup() - empty list
Structure GroupSelection.GroupSelection() - empty list
String ProjectNames() - empty list
String Arguments() - empty list
Structure ImportGadget.GadgetInfo() - empty list
Structure ImportWindow.WindowInfo() - empty list
String ExtractionPurebasic() - not initialized yet
I check it on 2 computers P4 and AMD with same result
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
@Molchyn :
Thanks
Could you try this new debug build ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip
Thanks
Could you try this new debug build ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
[Debugger] *** NEW WINDOW #Window_0
[Debugger] FORM_SelectionRectangle_Window 13
[Debugger] [Callback] SELECTION rectangle
[Debugger] [Callback] SELECTION rectangle : ParentGadget = -1
[Debugger] ////////////// NEW GADGET 267 [ScrollBarGadget]
[Debugger] ////////////// IN WINDOW 13
[Debugger] /// at (98,69) ///
[Debugger] Number 267
[Debugger] Handle 16058700
[Debugger] ParentHandle 30083156
[Debugger] Enumeration #ScrollBarGadget_0
[Debugger] Class <ScrollBar>
[Debugger] FAKE EVENT for gadget 267 [84]
-//-//-//-//-//-///-//-//-//-
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] CAPTURE Gadget 267 for MOVING
[Debugger] !!! Delete Gadget 267
[Debugger Error] The linked list doesn't have a current element.
[Debugger Error] File: C:\PureBasic394\Program\PureFORM.pb (Line: 6104)
Fatal error. Do you with to open the Debugger console? (Yes, No)
[Debugger] FORM_SelectionRectangle_Window 13
[Debugger] [Callback] SELECTION rectangle
[Debugger] [Callback] SELECTION rectangle : ParentGadget = -1
[Debugger] ////////////// NEW GADGET 267 [ScrollBarGadget]
[Debugger] ////////////// IN WINDOW 13
[Debugger] /// at (98,69) ///
[Debugger] Number 267
[Debugger] Handle 16058700
[Debugger] ParentHandle 30083156
[Debugger] Enumeration #ScrollBarGadget_0
[Debugger] Class <ScrollBar>
[Debugger] FAKE EVENT for gadget 267 [84]
-//-//-//-//-//-///-//-//-//-
[Debugger] FAKE EVENT for gadget 267 [84]
[Debugger] CAPTURE Gadget 267 for MOVING
[Debugger] !!! Delete Gadget 267
[Debugger Error] The linked list doesn't have a current element.
[Debugger Error] File: C:\PureBasic394\Program\PureFORM.pb (Line: 6104)
Fatal error. Do you with to open the Debugger console? (Yes, No)
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
@Molchyn :
Thanks again. It's a bit difficult to fix a bug I can't reproduce.
Could you try this new debug build ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip
Thanks again. It's a bit difficult to fix a bug I can't reproduce.
Could you try this new debug build ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip
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:
I don't understand why you get the 'CAPTURE Gadget XXX for MOVING' event ; anyway, I have added ClipCursor_(0) in the DeleteGadget function.Molchyn wrote:gnozal
Error disappear, but after deleting you can move mouse just only inside form (only after moving the form mouse unlocked)
Could you try again : http://people.freenet.de/gnozal/PureFORM_Debug.zip
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).