ShortCut bar gadget - (see updated post!)

Developed or developing a new product in PureBasic? Tell the world about it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

ShortCut bar gadget - (see updated post!)

Post by srod »

REMOVED.

Upgraded version coming!
Last edited by srod on Sat Jul 01, 2006 9:23 pm, edited 5 times in total.
I may look like a mule, but I'm not a complete ass.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Very nice!

- np
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

/me bows to master srod!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Thanks man looks great ;)
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

Looks cool ! Thanks. :)
Will test this evening.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Thanks, srod
Dare2 cut down to size
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Examples 1+2 tested with Win98 SE (Athlon XP1800 and ATI Radeon card).
Good news :
- no crash.
Bad news :
- the drawing is kinda slow when minimizing/maximazing the panels [arrow buttons] : I can see the frames.
- the window titlebars are strange : no more text and white background color (it even contaminates the others opened windows).
- there is some GDI? memory leak : I can't make a screen capture ('not enough memory error' when pressing PrintScreen button)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Thanks everyone.

Gnozal, that is weird. I experience no such problems on XP, although on a slower machine I would think that some of the panel erasing/painting might be a little slow. I can think of no reasons for any gdi type memory leaks, but I'll certainly have a look. The only gdi commands used are LineTo_() and MoveToEx_(). All pens and brushes are deleted.

One thing might be the use of ResizeGadget() on Win 98; again I'll have a look, but without a Win 98 box, it's going to be difficult to get to grips with this one.

Thanks again.
I may look like a mule, but I'm not a complete ass.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Wow - very nice.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Gnozal, I can find no evidence of any kind of memory leak; gdi or other. There is a slight leak when dragging the shortcutbar, but this is evident in any program using the #WM_NCLBUTTONDOWN message.

The only slight problem I can identify is with the underlying scroll area gadget which could well interfere with some of the subclassing under win 98. I have streamlined the code somewhat though.

Any chance you might try this new version on your win 98 box? Use the original download link above.

Thanks again.

Actually, if a couple of others are able to test this code on win 98 I'd be grateful. Just to see if the problems persist on all such setups?

Regards.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

@srod : I have tested again : same problems (and no capture possible).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

FIXED!

Please download the updated version which fixes the massive memory leak on Win 98.
I may look like a mule, but I'm not a complete ass.
Post Reply