Page 1 of 1

ShortCut bar gadget - (see updated post!)

Posted: Mon Jun 26, 2006 12:18 am
by srod
REMOVED.

Upgraded version coming!

Posted: Mon Jun 26, 2006 6:54 am
by NoahPhense
Very nice!

- np

Posted: Mon Jun 26, 2006 8:12 am
by Fangbeast
/me bows to master srod!

Posted: Mon Jun 26, 2006 9:05 am
by Pantcho!!
Thanks man looks great ;)

Posted: Mon Jun 26, 2006 9:26 am
by LuckyLuke
Looks cool ! Thanks. :)
Will test this evening.

Posted: Mon Jun 26, 2006 12:48 pm
by Dare
Thanks, srod

Posted: Mon Jun 26, 2006 4:06 pm
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)

Posted: Mon Jun 26, 2006 5:18 pm
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.

Posted: Mon Jun 26, 2006 6:40 pm
by rsts
Wow - very nice.

Posted: Mon Jun 26, 2006 9:30 pm
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.

Posted: Tue Jun 27, 2006 9:39 am
by gnozal
@srod : I have tested again : same problems (and no capture possible).

Posted: Tue Jun 27, 2006 11:52 am
by srod
FIXED!

Please download the updated version which fixes the massive memory leak on Win 98.