Hi all.
I am a big newbie with the wxWidgets framework, and I am confronted to a problem...
The application I have to develop is entirely bitmap-based. I managed to handle all the "classic" controls, but I am now confronted to lists, and custom scrollbar appearance (specific bitmap for up/down arrows, background and slider)...
I don't really know where to start from. I did not find a way to customize scrollbar appearance, and handling it completely from scratch is frightening me...
Could you please point me to the right direction to handle such scrollbar (or, even better, ListCtrl)?
Thanks for your attention,
Daniel
[Help] Bitmap-based scrollbar?
-
- In need of some credit
- Posts: 1
- Joined: Wed Jun 07, 2006 8:55 am
-
- Earned some good credits
- Posts: 122
- Joined: Fri Apr 14, 2006 9:49 pm
- Location: Beaverton, OR
- Contact:
You say you've "handled" the classic controls. Does that mean you've managed to get them to draw how you want, or just that you've figured out how to use them?
The trick with wxWidgets is overriding the OnPaint method. If you've gotten the classic controls to look how you want then you already know all about it, and I'm telling you something you already know...
Check out the wxKnob example for a simple but effective example. You can also drop in bitmaps and such (I'm using a modified implementation of wxKnob that lets you use either the default drawing routines, or pass in a bitmap to be drawn for the control.
http://forums.wxwidgets.org/viewtopic.p ... ght=wxknob
I don't know whether you have the freedom to override the drawing of a scrollbar since I haven't done it [there may be limitations], but it seems like you ought to be able to.
Good luck, bitmap-based GUI work is tough stuff.
The trick with wxWidgets is overriding the OnPaint method. If you've gotten the classic controls to look how you want then you already know all about it, and I'm telling you something you already know...
Check out the wxKnob example for a simple but effective example. You can also drop in bitmaps and such (I'm using a modified implementation of wxKnob that lets you use either the default drawing routines, or pass in a bitmap to be drawn for the control.
http://forums.wxwidgets.org/viewtopic.p ... ght=wxknob
I don't know whether you have the freedom to override the drawing of a scrollbar since I haven't done it [there may be limitations], but it seems like you ought to be able to.
Good luck, bitmap-based GUI work is tough stuff.