Page 14 of 103

Posted: Thu Oct 26, 2006 10:52 am
by gnozal
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.

Posted: Thu Oct 26, 2006 7:28 pm
by Molchyn
gnozal
if add on empty form scrollbar and delete scrollbar it's crash pureform
take a look on a pics:
Image
Image
Image

Posted: Fri Oct 27, 2006 7:47 am
by gnozal
Molchyn wrote:gnozal
if add on empty form scrollbar and delete scrollbar it's crash pureform
take a look on a pics:
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.
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
;}
Does this form crash for you ?

Posted: Fri Oct 27, 2006 4:43 pm
by Molchyn
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)

Posted: Sat Oct 28, 2006 1:50 am
by mskuma
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", )

Posted: Sat Oct 28, 2006 8:01 am
by gnozal
mskuma 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", )
Good one :lol:
Should be fixed

Posted: Sat Oct 28, 2006 8:20 am
by gnozal
Molchyn 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)
I tested both techniques (DEL key and context menu), several times, on two different machines (NT4 / 98SE) : no crash :shock:

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 ?

Posted: Sat Oct 28, 2006 8:25 pm
by Molchyn
[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

Posted: Mon Oct 30, 2006 3:46 pm
by gnozal
@Molchyn :
Thanks
Could you try this new debug build ?
Debug build : http://people.freenet.de/gnozal/PureFORM_Debug.zip

Posted: Mon Oct 30, 2006 8:56 pm
by Molchyn
[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)

Posted: Tue Oct 31, 2006 11:02 am
by gnozal
@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

Posted: Tue Oct 31, 2006 6:58 pm
by Molchyn
gnozal
Error disappear, but after deleting you can move mouse just only inside form (only after moving the form mouse unlocked)

Posted: Wed Nov 01, 2006 12:38 pm
by gnozal
Molchyn wrote:gnozal
Error disappear, but after deleting you can move mouse just only inside form (only after moving the form mouse unlocked)
I don't understand why you get the 'CAPTURE Gadget XXX for MOVING' event ; anyway, I have added ClipCursor_(0) in the DeleteGadget function.
Could you try again : http://people.freenet.de/gnozal/PureFORM_Debug.zip

Posted: Wed Nov 01, 2006 3:46 pm
by Molchyn
gnozal
Last one work fine.
About 'CAPTURE Gadget XXX for MOVING' sometime then you select scrollbargadget it's happened.

Posted: Wed Nov 01, 2006 5:50 pm
by gnozal
Update

Bug fix release