[Help] Bitmap-based scrollbar?

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jun 07, 2006 8:55 am

[Help] Bitmap-based scrollbar?

Post by dchiaramello » Wed Jun 07, 2006 9:01 am

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,

I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Sun Jan 30, 2005 2:50 pm
Location: Heidelberg, Germany

Post by Vexator » Wed Jun 07, 2006 1:14 pm

if you want to create skinned applications, then wx is probably the wrong choice.. you could have a look at wxuniversal, though.
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3

Earned some good credits
Earned some good credits
Posts: 122
Joined: Fri Apr 14, 2006 9:49 pm
Location: Beaverton, OR

Post by Xangis » Thu Jun 15, 2006 1:20 pm

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.

Post Reply