by slider i mean the red slider at 1000
Search found 40 matches
- Fri Jul 12, 2019 10:44 pm
- Forum: C++ Development
- Topic: Window Sizing
- Replies: 8
- Views: 1067
- Fri Jul 12, 2019 7:16 pm
- Forum: C++ Development
- Topic: Window Sizing
- Replies: 8
- Views: 1067
Re: Window Sizing
im using .GetLogicalPosition(dc) in order to get the value of a slider on a certain point on the bar, I dont think the slider will move if I were to make these changes
- Fri Jul 12, 2019 5:14 pm
- Forum: C++ Development
- Topic: Window Sizing
- Replies: 8
- Views: 1067
Window Sizing
Hi Im creating a double slider using wxwidgets Im almost done but the main issue im having now is that the slider is not resizing with the window. My idea was to use a scaling function but that does not work. The slider is drawn using dc paint and the code is in https://github.com/fahadbandali/updat...
- Fri Jul 12, 2019 2:35 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
Re: User Input
thanks!
- Thu Jul 11, 2019 6:32 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
Re: User Input
https://github.com/fahadbandali/mediaslider
the main files that I am using are myDoubleSlider, and play
its a little messy ive been working all over the play these last couple of weeks
the main files that I am using are myDoubleSlider, and play
its a little messy ive been working all over the play these last couple of weeks
- Thu Jul 11, 2019 6:13 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
Re: User Input
SpinCtrl1 is a local variable, so you can't access it from other methods. Turn it into a member variable. ahh I see thanks, I got the spinctrl defined but when I use it, the scroll bars do not work im guessing that its an issue with my function that I have made void myDoubleSlider::OnSpinCtrl1Chang...
- Thu Jul 11, 2019 5:10 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
Re: User Input
Thanks for the tips, I decided to use SpinCtrl. I constructed a function which takes the value in the SpinCtrl and sets it as the step size. For some odd reason im getting an error saying that SpinCtrl1 is undefined on VS2017 but in code blocks the code runs fine. Any tips? this is a snippet of my c...
- Wed Jul 10, 2019 7:40 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
Re: User Input
Hey I got it working but now I need to take the input and use it to change the step size. void myDoubleSlider::OnWheel(wxMouseEvent& event) { int m, w, h; wxClientDC dc(this); dc.GetSize(&w, &h); wxPoint pos = event.GetLogicalPosition(dc); pos.x = pos.x - SLIDER_MARGIN; pos.y = h - SLIDE...
- Wed Jul 10, 2019 6:00 pm
- Forum: C++ Development
- Topic: User Input
- Replies: 11
- Views: 4079
User Input
Hi, I want to add a text box where a user can input a number. The input would change the step size in my slider. When I add wxTextCtrl *TextCtrl2 = new wxTextCtrl(panel, wxID_ANY, _("1"), wxPoint(1180, 180), wxSize(200, 40), 0, wxDefaultValidator, _T("ID_TEXTCTRL1")); in the slid...
- Fri Jul 05, 2019 7:00 pm
- Forum: C++ Development
- Topic: sizing issue
- Replies: 1
- Views: 293
sizing issue
Hey I am building a double sizer using wxwidgets. I got the slider working using the wxDC library and so the code draws the media bar and the sliders. The issue I am having is that I am trying to make the sliders larger. here is my code that draws out the left slider: dc.SetPen(wxColour("#447ae...