I have a Table with a column of textboxes. The column is defined as
#COM_OWNER.Set_Table Name(Provs) Col_N(4) Col_Name(Notes) Col_Width(Fill) Layout_Height(fit)
The table row is added as
#x += 1
#TableRow := 'Provs.Row%' + #x.AsString
#COM_OWNER.Set_Textbox Name(#TableRow + '.Notes') Value(#SPRCMT.RightTrim) Border_Thickness(1) Multiline(true)
If click on an empty cell and start to type the inut caret immediatly shoots up a line and I can only see the bottom couple of pixels of each letter I type and the blinking caret. When I exit the box I can see part of the red squiggle (that indicates a spelling error?).
This also happens if the cell contains a small amount of data, eg 'Fred' - touch the cell and the caret sits next to the 'd', hit the keyboard and the text shoots up and mostly out of site.
If the cell is preloaded (from another function) with sufficient text to force it to display more than one line then it behaves when inserting but slides up a line when adding text at the end (although you still see it because of the extra lines.
Is there some settin or combination I have missed. It is very close o doing what I want.
RDMLX Multiline Textbox in Table
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: RDMLX Multiline Textbox in Table
Controlling the width of the 4th column
Your fourth column is not wide enough. There are 2 options here:
1) Specify absolute width for the column ...
Example:
#COM_OWNER.Set_Table Name(Provs) Col_N(4) Col_Name(Notes) Col_Width(200)
Generally, elements such as labels and images as sized automatically according to their content, however textbox is an exception as you can't predict if they would contain texts, or how long the texts would be.
2) ... Or, make the table to fill the whole width of the form and leave the Col_Width of 4th-column as Fill
To set the table to fill whole width of the form (assuming it's positioned on G-Column 1):
#Com_Owner.Set_Form Grid_Col_N(1) Grid_Col_Width(FILL)
Have a look at this part of the documentation for more info about how the grid layout in LongRange works.
http://www.longrangemobile.com/docs/lan ... anging.htm
Controlling the height of the table's rows
If you want to have more lines in the textboxes, you can also adjust the height of the table rows.
For example, to set the height of the first row to 100px:
#Com_Owner.Set_Table Name(Provs) Row_N(1) Row_N_Height(100)
Layout_Height(FIT) can be removed...
In your code below:
#COM_OWNER.Set_Table Name(Provs) Col_N(4) Col_Name(Notes) Col_Width(Fill) Layout_Height(fit)
... the Layout_Height(FIT) can be removed as it's the default value.
Your fourth column is not wide enough. There are 2 options here:
1) Specify absolute width for the column ...
Example:
#COM_OWNER.Set_Table Name(Provs) Col_N(4) Col_Name(Notes) Col_Width(200)
Generally, elements such as labels and images as sized automatically according to their content, however textbox is an exception as you can't predict if they would contain texts, or how long the texts would be.
2) ... Or, make the table to fill the whole width of the form and leave the Col_Width of 4th-column as Fill
To set the table to fill whole width of the form (assuming it's positioned on G-Column 1):
#Com_Owner.Set_Form Grid_Col_N(1) Grid_Col_Width(FILL)
Have a look at this part of the documentation for more info about how the grid layout in LongRange works.
http://www.longrangemobile.com/docs/lan ... anging.htm
Controlling the height of the table's rows
If you want to have more lines in the textboxes, you can also adjust the height of the table rows.
For example, to set the height of the first row to 100px:
#Com_Owner.Set_Table Name(Provs) Row_N(1) Row_N_Height(100)
Layout_Height(FIT) can be removed...
In your code below:
#COM_OWNER.Set_Table Name(Provs) Col_N(4) Col_Name(Notes) Col_Width(Fill) Layout_Height(fit)
... the Layout_Height(FIT) can be removed as it's the default value.
Re: RDMLX Multiline Textbox in Table
The width of the column isn't a factor as its already fill and occupies 30% of ipad screen width. I can get it behave by setting the row height to 100 in which case I can type into the cell. But this wastes too much space. If I set the height to 50 which is stll pretty fat it reverts to scrolling the text off screen as soon as the keyboard is touched. If multiline is turned off it all works Ok except that entered text is not wrapped on redisplay and is therefore difficult to read.
This looks like a bug to me so I guess I'll leave it for now.
This looks like a bug to me so I guess I'll leave it for now.
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: RDMLX Multiline Textbox in Table
Can you post the complete source code for your form.