Eto Form Layout Rows

Hello Rhino Developers,

I am wondering how to make a constant Row Height, in the situation of invisible content.

for example :

        private Label HiddenMessage = new Label()
        {
            Text = "Can't Find Curve",
            Width = 100,
            Height = 20,
            Visible = false
        };

Then I add it to the layout like that. I keep a place for it, for when I need it to be visible.

            TableLayout tableLayout = new TableLayout()
            {
                Padding = new Padding(0),
                Spacing = new Size(5, 20),
                Rows = {
                    new TableRow(SearchBoxTxt),
                    new TableRow(HiddenMessage),

                },

the layout “moves” when it is visible or not. how can I keep a constant row height even when it is an invisible row?

thanks in advance,
Hanan

Not sure as I haven’t worked with these table layouts yet, but did you try to make the hidden message == ""

yes, I tried using empty text = “” and still it keeps poping up.

I think when it is invisible, it doesn’t count the row, but I am not sure how to solve it.

Sorry, I meant a space rather than completely empty, did you try that as well?

I tried both, " " , ""

Here it works, but I think what you need to avoid is to make the label invisible. Keep it visible, just erase the text

1 Like

I will try it, thanks.