-
July 27th, 2011, 12:59 AM
#1
Load Value From Config File and Automatically Tick the Checkbox
Hi,
I have a dialog form that contains 4 tabs, of which on the 4th tab, i have implemented a check box. When that checkbox is checked, a value of "1" should be stored in the configuration file which i am using for the system.
When I am loading my application, it should accordingly load the corresponding settings from the configurations file and it should automatically check that checkbox.
The problem here is,
I am able to store the settings in my configuration file and I am also able to read that particular value while loading the application.
But I am not able to automatically tick the checkbox according to the value("1").
How can I achieve this?
Regards,
p_zshk
-
July 27th, 2011, 01:17 AM
#2
Re: Load Value From Config File and Automatically Tick the Checkbox
Create a control member variable for that checkbox (say, c_myCheck), then use
Code:
c_myCheck(TRUE): // to check the box
c_myCheck(FALSE): // to uncheck the box
or if you have an integer var iCheck (0 or 1)
Victor Nijegorodov
-
July 27th, 2011, 02:12 AM
#3
Re: Load Value From Config File and Automatically Tick the Checkbox
is there any other way to achieve this?
-
July 27th, 2011, 02:35 AM
#4
Re: Load Value From Config File and Automatically Tick the Checkbox
Originally Posted by p_zshk
is there any other way to achieve this?
What is wrong for you with SetCheck?
Victor Nijegorodov
-
July 27th, 2011, 03:54 AM
#5
Re: Load Value From Config File and Automatically Tick the Checkbox
there is no issue with SetCheck....i have used it before too..and it works fine..
but the application on which i am operating already have some checkboxes implemented and they have been implemented in a different way...thats why i want to know whether there is an alternative available for this...
-
July 27th, 2011, 03:59 AM
#6
Re: Load Value From Config File and Automatically Tick the Checkbox
What do you mean under "different way"?
What type of application are you "operating" with?
Victor Nijegorodov
-
July 27th, 2011, 04:18 AM
#7
Re: Load Value From Config File and Automatically Tick the Checkbox
its like..the check box is checked and unchecked without the use of SetCheck...thats why i want ot know about the same...
-
July 27th, 2011, 04:20 AM
#8
Re: Load Value From Config File and Automatically Tick the Checkbox
How is it "checked and unchecked without the use of SetCheck"?
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|