Pure ExplorerBar BETA

Developed or developing a new product in PureBasic? Tell the world about it.
wayne-c
Enthusiast
Enthusiast
Posts: 337
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

Post 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
As you walk on by, Will you call my name? Or will you walk away?
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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.
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

THx for sharing ;) Like u
Apart from that Mrs Lincoln, how was the show?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post 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)
Apart from that Mrs Lincoln, how was the show?
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post 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?
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post 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.

LuckyLuke
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post 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
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

The source can be found here

Regards,

LuckyLuke
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post 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...
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Works great on Vista too ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

thanks luckyluke

awesome

Kinglestat
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post 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
Post Reply