Page 1 of 1
VL Grid
Posted: Wed Oct 26, 2016 4:09 am
by nic.hall
Is there any way to wrap the caption in a grid column?
Re: VL Grid
Posted: Wed Oct 26, 2016 7:47 am
by Stewart Marshall
There's no wrapping as such, but you can set the CaptionType to use the field column headings which will give you up to 3 lines.
Regards
Re: VL Grid
Posted: Thu Oct 27, 2016 7:56 am
by HamadSheikh
This seems to work for a VL Grid.
#STD_BIN is a binary field.
Evtroutine Handling(#com_owner.Initialize)
Set Com(#com_owner) Caption(*component_desc)
Use Builtin(HEXTOBIN) With_Args('0D') To_Get(#STD_BIN)
#GridColumn1.caption := 'This is' + #std_bin.AsString + 'a Test'
Endroutine
Re: VL Grid
Posted: Thu Oct 27, 2016 8:25 am
by Stewart Marshall
Ha...Thanks Hamad
I'd forgotten about embedding carriage returns. We added it for hints originally to make the hint of a Compile job more interesting when there are multiple objects being compiled.
A slightly more elegant version is to use (13).AsChar
Code: Select all
#Column.Caption := "Line1" + (13).AsChar + "Line2" + (13).AsChar + "Line3"
In a similar vein, xDemoTraceHandlerDesktop use (09).AsChar to embed a Tab character when constructing a text file.
Regards