Setting the height for check boxes cells in a table
Setting the height for check boxes cells in a table
Hallo Support,
I have c# code which creates a StiTable and a mixture of text cells and checkbox cells. For the text cells, the WordWrap, CanGrow, and GrowToHeight properties are set to true. The table uses styles for odd and even rows. When a text does not fit in one text cell it automatically breaks over 2 or more lines. The height of the cell then grows. The other text cells in the row also grow accordingly - no problem. Now the difficult part: the height of the check box cells should also grow but the size of the checkbox itself (in my case either a tick or a circle) should remain the same. I can't get this to work. If I set GrowToHeight=true for a checkbox then all the heights match in the row and the even/odd styling is correct but the size of the checkbox itself is now larger, which is not what I want. The checkbox should remain the same size and the spacing above and below it should increase. How can I do this? I tried also CanGrow, but this made no difference.
I'd send you a screenshot but I haven't found out how to do it.
Best regards,
John Kitching
I have c# code which creates a StiTable and a mixture of text cells and checkbox cells. For the text cells, the WordWrap, CanGrow, and GrowToHeight properties are set to true. The table uses styles for odd and even rows. When a text does not fit in one text cell it automatically breaks over 2 or more lines. The height of the cell then grows. The other text cells in the row also grow accordingly - no problem. Now the difficult part: the height of the check box cells should also grow but the size of the checkbox itself (in my case either a tick or a circle) should remain the same. I can't get this to work. If I set GrowToHeight=true for a checkbox then all the heights match in the row and the even/odd styling is correct but the size of the checkbox itself is now larger, which is not what I want. The checkbox should remain the same size and the spacing above and below it should increase. How can I do this? I tried also CanGrow, but this made no difference.
I'd send you a screenshot but I haven't found out how to do it.
Best regards,
John Kitching
- Attachments
-
- 964.CheckboxProblem.jpg (17.73 KiB) Viewed 3967 times
Setting the height for check boxes cells in a table
Hello,
Thank you for the question.
To attach a screenshot, please login and see the screenshot which button you must click to attach an image.
Waiting for your screenshot! :biggrin:
Thank you.
Thank you for the question.
To attach a screenshot, please login and see the screenshot which button you must click to attach an image.
Waiting for your screenshot! :biggrin:
Thank you.
- Attachments
-
- 962.02.png (46.38 KiB) Viewed 3970 times
Setting the height for check boxes cells in a table
Hallo Andrew,
thanks for the info. I've added the screenshot now. I hope it's clear what I mean.
Regards,
John Kitching
thanks for the info. I've added the screenshot now. I hope it's clear what I mean.
Regards,
John Kitching
Setting the height for check boxes cells in a table
Hello,
Please see the sample report in attachment.
Thank you.
Please see the sample report in attachment.
Thank you.
- Attachments
-
- 975.SampleReport.mrt
- (32.72 KiB) Downloaded 388 times
Setting the height for check boxes cells in a table
Hi,
thanks for the download example. I've had a good look at it and can see that it is what I require. What I don't understand is how you managed to split what looks like a normal column into 3 columns: spacers left and right, and the checkbox in the middle. The separating marks between the columns are different from normal - normally there is a clear black dividing line. In this case there is a dashed line.
Can you please explain how these cells were created.
Many thanks,
John Kitching
thanks for the download example. I've had a good look at it and can see that it is what I require. What I don't understand is how you managed to split what looks like a normal column into 3 columns: spacers left and right, and the checkbox in the middle. The separating marks between the columns are different from normal - normally there is a clear black dividing line. In this case there is a dashed line.
Can you please explain how these cells were created.
Many thanks,
John Kitching
- Attachments
-
- 977.CheckboxProblem2.jpg (25.24 KiB) Viewed 3949 times
Setting the height for check boxes cells in a table
Hello,
You can add by columns to the left and to the right and then set the borders.
Thank you.
You can add by columns to the left and to the right and then set the borders.
Thank you.
- Attachments
-
- 980.Screen01.png (39.84 KiB) Viewed 3943 times
Setting the height for check boxes cells in a table
Great,
I've finally understood it now!
Thanks very much.
Regards,
John K.
I've finally understood it now!
Thanks very much.
Regards,
John K.
Setting the height for check boxes cells in a table
Hello!
Perfect! :biggrin:
Perfect! :biggrin: