Yesterday, (while I was waiting for the source code of LuckyLuke's very nice demo ), 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?
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 ?
> 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.
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.
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?
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...
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?