This is my first attempt to make a GUI component for PureBasic. It should support Themes ... I'll make a userlib (soon) if requested.
Some features to be added in the future :
* Special Header Item
* Background Images
* Detail Item
Icons are used from the shell32.dll. A sample executable can be downloaded here
this works like a charm on XP.
well done. and yes a userlib (or an include file if possible) would be nice.
just a wish :
Can you implement a #WM_MOUSEWHEEL support for the vertical (up/down) scrolling ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Tested on WinNT4 :
- the mouse cursor disappears (sometimes flickers) when over the gadget
- the gadget backcolor is black (and no text visible [black on black ?])
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
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 wrote:@gnozal :
I'm using FillRect_(hDC, pRect, #White) to draw the background ...
And SetCursor_(LoadCursor_(0, #IDC_HAND) to draw the cursor ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
how 'depth' is your desktop screen, gnozal ?
8bit, 16bit, 32bit ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer