Enable Spinbutton ctrl
-
Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh
-
Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh
-
I don't know if I understand everything, but your seems a problem related to a bad initialization of that control. Enable it in the VS IDE or programmatically using CWnd::EnableWindow() or CWnd::ShowWindow(SW_SHOW) :confused:
Russell
Thanks for your response. In a property sheet contains 5 tabs. First tab is General, this tab has the spinbuttoncntrl. When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled. Note: The 2nd tab also contains 5 spinbuttoncontrols, there i made some changes like increase and decrease also it enabled all the times. How? Please assist me to resolve this issue.
-
Thanks for your response. In a property sheet contains 5 tabs. First tab is General, this tab has the spinbuttoncntrl. When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled. Note: The 2nd tab also contains 5 spinbuttoncontrols, there i made some changes like increase and decrease also it enabled all the times. How? Please assist me to resolve this issue.
rajaratk wrote:
When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled.
This makes no sense. Why should one "open" be different than any other "open?" What are you doing when the application is opened? When that tab is activated?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh
As David says, this makes no sense on its own. Are you confusing Close / Open with Minimise / Maximise? If not, then some action in your code is doing different things. Do you save values? Do a search in your code for the control ID of the spinbutton and see what you do with it. Unless someone (ie, YOU) disables the control, it will be at whatever state it is set to be in the dialog resource. You need to track down where you disable it, and see why that is different in the two scenarios. Iain.