Dave Elder, Tait Communications
Like eDave suggests use a STRFILLIN with the multiline option. The following form file snippet will create a 16 width by 10 high control with a vertical scrollbar that will support up to 1024 characters. Using the FSIZE parameter is what allows a taller control. If you do not wish to let the user edit the string mark the control as read-only in your Skill code (user will still be able to manipulate the scroll bar).
axlFormSetFieldEditable(fw "mline" nil)
When loading the field use the newline ("\n") to force text to break to another line.
FLOC 16 6
STRFILLIN 16 1024
FSIZE 16 10
In reply to fxffxf:
In reply to thewill2live:
In reply to mikebystedt:
Am I even getting close here?Thanks! -Mike
procedure( _scInitGrids() let((c cell ) c = make_formGridCol() c->fieldType = 'STRING c->colWidth = 2 c->align 'left c->headText = "Text" axlFormGridInsertCol(checkForm "grid" c) axlFormGridInsertRows(checkForm "grid" 1 1)
cell = axlFormGridNewCell() cell->row = 1 cell->col = 1 cell->noEdit = nil <==================== Doesn't seem to let me edit the cell. cell->textColor = 'black cell->value = "Layer" axlFormSetField(checkForm "grid" cell) axlFormGridUpdate(checkForm "grid") );End let.);End _scInitGrids().
Take a look at the axlFormGridEvents function. You're looking for something like axlFormGridEvents(checkForm "grid" 'change) in order to allow for editing a cell.
axlFormSetField doesn't seem to take newline characters and display formatted text in a STRFILLIN field type. I've tried as many ways as I can think of. It takes \t for tabs, but not newlines. Any suggestions?
In reply to wilef:
In reply to eDave: