Libs : dashed splitterbar (PB4.20b1)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

can you post an example
It wasn't your library's fault. It was the toolbar lib in PBOSL that was causing the problem. :)

Any news on a threadsafe version?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I've just tested the gadget on WindowsMe and it appears not to work properly. You can move the splitter, but when you let go, it flies to one side or the other. It doesn't stay in the place you leave it at.

This happens with the code that you posted in the first message in this thread. I've tried 2 WinMe machines and VirtualPC running windows Me.

Can anyone else verify this?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I uploaded a threadsafe version
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Are you sure you included a threadsafe version? When threadsafe is enabled you get a polink error on compile...

Only 1 library file is in the download zip.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Is there some kind of hardcoded gadget limit of "50"? If I exceed about 50 gadgets while using the library I get very strange memory errors.

Any ideas?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I noticed a crash if the gadgetID already existed or if gadgetId equals #pb_any...

I'll take a look.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

The gadget doesn't work on 95 and may have problems on pre-xp machines because of bugs in "GetAncestor" that were fixed in XP and above.

The code below shold be an example of how to fix the problem if all you wanted to do with GetAncestor is find the root.

Code: Select all

; instead of:    anchWnd = GetAncestor_(hwnd, 2)

; use:

anchWnd=hwnd
tempAnchWnd=GetParent_(hwnd)
While Not tempAnchWnd
	anchWnd=tempAnchWnd
	tempAnchWnd = GetParent_(tempAnchWnd)
Wend
Hope this helps :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

download last version

- add fix for win95 (@DoubleDutch)
- included two versions : for THREADSAFE mode and NORMAL mode ( I don't know how to switch between lib) :wink:
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks :)

But I think this error still exists:
Is there some kind of hardcoded gadget limit of "50"? If I exceed about 50 gadgets while using the library I get very strange memory errors.

Any ideas?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I found a bug in threadsafe mode
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

The error that happens at the 50 gadget point was on the non-thread safe version.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

It works for me.

Did you use #pb_any ?
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I don't use PB_Any, but I do use EasyVent.

It doesn't seem to go wrong when I don't use EasyVent, but when I do I get memory exception errors.

I'll try get a small example "not working" for you. ;)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply