OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: khann on October 07, 2013, 01:16:26 AM

Title: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 07, 2013, 01:16:26 AM
Hi,
I'm trying to edit the label text of "Checkbox" style in grid.
I could not get the proper solution.
Is it possible?
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: owenwengerd on October 07, 2013, 07:06:07 AM
What exactly did you try, and how did it fail?
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 07, 2013, 11:13:12 PM
Hi, Owen.
As you know, this is MasterDemo's grid sample.
I want to know how to change the text "Check Boxes" itself of "CheckBox Style" in grid at runtime.
Thanks. :)


Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: owenwengerd on October 08, 2013, 08:39:17 AM
You can use Grid_SetCellText (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Grid/SetCellText.htm).
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 08, 2013, 09:52:06 PM
Thanks, Owen for your reply.
But it's not what I thought.
I need "CheckBox" style to get the user checked the cell or not
and need to edit the label text of the cell as "String" or "Integer" style.
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: owenwengerd on October 08, 2013, 10:03:10 PM
Sorry, I don't understand the problem. What exactly is the issue with Grid_SetCellText with a Checkbox cell style?
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 08, 2013, 11:54:28 PM
It's okey.
Yes, I want the "CheckBox" style can edit label text when clicked the cell just like "String" style.
:-[
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: owenwengerd on October 09, 2013, 07:01:48 AM
Ah, I see now. For that, perhaps you can leave the checkbox and accompanying text in two separate columns.
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 09, 2013, 06:17:24 PM
Thanks, Owen.
That may be one solution.
not to use two columns, I consider the combination of changing between "Checkbox" and "String" style with MouseUp or BeginLabelEdit Event.
But I'm not sure it works as I wish.  ::)
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: Fred Tomke on October 11, 2013, 12:25:39 AM
Hi, khann, I would like to encourage you to have a try. Just keep in mind that a cell can only have a single style: either text input or checkbox; either text input or button and so on. That's why I also used multiple colums for different input types of each row.

Regards, Fred
Title: Re: Can I edit the label text of "Checkbox" style in grid ?
Post by: khann on October 12, 2013, 07:04:39 PM
Thank you very much. Fred.
:)
Still I'm trying, not only this and there rises some other ideas to get my goal.
I think post the sample, if succeed.
Your reply is my great energizer. ;)