Search found 40 matches

by bandali99
Fri Jul 12, 2019 10:44 pm
Forum: C++ Development
Topic: Window Sizing
Replies: 8
Views: 1067

Re: Window Sizing

ONEEYEMAN wrote: Fri Jul 12, 2019 7:17 pm Hi,
Are you asking about slider or a thumbnail?

Thank you.
by slider i mean the red slider at 1000
by bandali99
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
by bandali99
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...
by bandali99
Fri Jul 12, 2019 2:35 pm
Forum: C++ Development
Topic: User Input
Replies: 11
Views: 4079

Re: User Input

thanks!
by bandali99
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
by bandali99
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...
by bandali99
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...
by bandali99
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...
by bandali99
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...
by bandali99
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...