Buttons and Knobs Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Micha
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Aug 02, 2005 7:07 pm

Buttons and Knobs

Post by Micha »

Hello,

Perhaps someone of you has an answer for me.
I want to build up my own On/Off Buttons and rotate Knobs.
Did anybody do the same in the past?
Could you please give me a hint where to start or read?


Thanx,
Micha.
phlox81
wxWorld Domination!
wxWorld Domination!
Posts: 1387
Joined: Thu Aug 18, 2005 7:49 pm
Location: Germany
Contact:

Post by phlox81 »

For On/Off, you might use wxToggleButton.
For rotate Knobs, hm, can't exactly think of what you exactly mean.
May be look at wxcode on sourceforge, they might have
something, or search the forum ;)
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

I think he means the volume control buttons of analog players.

You have to make some custom buttons for the same, I don't think there are some ready made, but its not too hard to make the same. You have to trap the mouse left button and CaptureMouse, and when the mouse goes to the right increase the volume and when it goes left decrease the volume, also change the bitmap of the button when the mouse is moving and the button HasCapture. On the button up event ReleaseMouse.
Micha
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Aug 02, 2005 7:07 pm

Post by Micha »

Thanx, phlox81 and priyank_bolia.
I build up my own...


See you,
Micha.


EDIT : Sorry, priyank_bolia. I thought I can click to "accept" to you and phlox81. I started with phlox81 - After I clicked to it - the feature was gone for you... :-(
Post Reply