Hi ,
I want to use Slider Control in Client Area to set some parameters.
How to do this ? I have used it in Dialog Box Only.
Thanking you ..
New_2012
Printable View
Hi ,
I want to use Slider Control in Client Area to set some parameters.
How to do this ? I have used it in Dialog Box Only.
Thanking you ..
New_2012
Just set the size of the control equal the client size of the dialog.
Thank you VictorN Sir ..
I need to use Slider Control in my main program in client area.
I have used it in dialog only using resource editor.
Now I dont know whether I can use it in main program without dialog.
I need to set temperature of furnace. I have implemented UP DOWN Arrow Keys
But wish to give Edit Control or Slider Control .
How to do this ?
What do you mean by "main program"?
And what is the type of your application: dialog based, SDI, MDI, something else?
Are you using MFC?
Thank you VictorN sir ..
My application is MFC APP Wizard SDI application. It is not dialog based.
I have divided screen in two parts .
In one part I display Temp Controller Status.
In other area I need to set Temp . I am doing that with Up Dn Arrow keys.
But just I thought of having Slider Bar Control to set the temp.
I have used it only in dialogs.
so how to do it ?
Any control is just a window. Any window can be made be a child of another window under condition you do it right. For example, a dialog can be embedded into another dialog or overlapped window. So answering your question: You can. And now you know it.
CreateWindow or CreateWindowEx.
P.S. The best way, imho, to avoid asking trivial questions on the forums is purchasing a decent reading on Programming Windows.
As Victor already said, if you have a form view (which is based on a dialog resource), you can easily put a slider as well as any other type of controls in its client area.
Otherwise, put it in a dialog bar (also based on a dialog resource), which can be docked in the view's parent frame.
Here is attached a demo project that uses slider controls for resizing thumbnail images and shadows in a view: http://codexpert.ro/blog/2015/07/03/...wing-with-mfc/
It's an SDI application but it's easy to put dialog bars also in MDI clild frames, in the same way.
.
http://bit.ly/1SFp7F7
Thank you Igor vartanov sir , VictorN Sir and ovidiucucu sir.
I will do it .. will go through the project and books.