Page 2 of 3

Posted: Thu Jul 27, 2006 1:58 pm
by wayne-c
Yesterday, (while I was waiting for the source code of LuckyLuke's very nice demo :wink:), I was trying to code something similar, as it would really fit into my current project. See the result here. Not as neat as LuckyLuke's but...

Source code included :).

Bye,
Wanye-C

Posted: Sat Aug 05, 2006 5:15 pm
by LuckyLuke
Here I am again :)

I tried to cleanup the code ... . The result can be downloaded here

Feel free to modify and improve this component, (The delete functionality is causing some problems) ... but please share it with the great purebasic community.

I would like to start a project to create more of these gadgets (e.g. outlook calendar, ...). Or Fred can add them in a new version ? :roll:
Who wants to join this project ?

Enjoy.

Posted: Sat Aug 05, 2006 6:06 pm
by Konne
THx for sharing ;) Like u

Posted: Sat Aug 05, 2006 6:06 pm
by ts-soft
Very nice code. Works fine by me.

> Who wants to join this project ?
In the moment to many problems with tailbite (Unicode, ThreadSafe, opt.
Parameters), so i will not add any new UserLibs written in PB, sry.

But at a later time ...

Regards
Thomas

Posted: Sat Aug 05, 2006 6:08 pm
by Konne
It would be great to work on a Gadget with the ToolBars alla Office 2003.
http://www.winsupersite.com/images/revi ... ta2_04.gif
(the Blue top ones)

Posted: Sat Aug 05, 2006 9:37 pm
by LuckyLuke
A new version supporting the delete functionality of an item has been uploaded now.

@ts-soft: we can use include files :)

@wayne-c : nice ExplorerBarGadget :) . Maybe we should join our efforts to create more of these gadgets ? :D

Posted: Sat Aug 05, 2006 9:44 pm
by ts-soft
LuckyLuke wrote: @ts-soft: we can use include files :)
Okay, i will add it next update to here: http://www.purebasic.fr/english/viewtopic.php?t=22437 :wink:

Posted: Thu Sep 28, 2006 5:13 pm
by dell_jockey
LuckyLuke:

This is real real nice, thank you for sharing it!

one question:

I noticed that Procedure int_DrawBackGround(hWnd.l, hDC.l) does not check whether a statusbar is used in the parent window. This causes the background to be always repainted down to the very bottom of the window's client area.

Do you suggest that I simply change:

"pRect\bottom = *ExBar\Height" to:

pRect\bottom = *ExBar\Height - StatusBarHeigth()
Would this be a good solution, or is there a more generic way to handle it?

Posted: Fri Sep 29, 2006 1:46 pm
by LuckyLuke
Thanks dell_jockey.

You should code this in the #PB_Event_SizeWindow event.
Using SmartWindowRefresh might reduce the flickering...

Code: Select all

 Case #PB_Event_SizeWindow 
      SmartWindowRefresh(0, 1) 
      exbar_Resize(a,WindowHeight(0) - StatusBarHeigth(x) )
      SmartWindowRefresh(0, 0) 

Hope this helps.

Posted: Thu Nov 30, 2006 12:27 pm
by kinglestat
I was trying to download the code but link is unavailable
Does this project still exist ? In library or source format ?

cheers

KingLestat

Posted: Thu Nov 30, 2006 1:33 pm
by LuckyLuke
The source can be found here

Regards,

Posted: Thu Nov 30, 2006 3:28 pm
by Dummy
LuckyLuke wrote:Thanks.

A few questions :
@gnozal :
I'm using FillRect_(hDC, pRect, #White) to draw the background ...
And SetCursor_(LoadCursor_(0, #IDC_HAND) to draw the cursor ...
Can you send me a screenshot ?
@Flype :
The #WM_MOUSEWHEEL should be handled in the window events I think ?
I'm using an ImageGadget and ScrollBarGadget for the control.

LuckyLuke
FillRect_(hDC, pRect, #White) - Maybe your rect is bigger than it should be and NT can't handle that...
SetCursor_(LoadCursor_(0, #IDC_HAND) - Maybe this is called more than once or NT doesn't have the IDC_HAND Icon...

Posted: Thu Nov 30, 2006 5:21 pm
by GeoTrail
Works great on Vista too ;)

Posted: Fri Dec 01, 2006 12:47 pm
by kinglestat
thanks luckyluke

awesome

Kinglestat

Posted: Sun Dec 10, 2006 6:29 am
by kawasaki
How would i go about applying a theme part to an image gadget?

I would like to be able to draw the background of the explorerbar on whatever theme name to an image, ive exprimented over quite a few cups of coffee, and a lot of cigarettes, but its getting to expensive to experiment anymore... So perhaps you could demonstrate?


Thanks

Mike