How to Expand cell to allow multiple line (OpenInsight 32-Bit)
At 05 NOV 2004 06:19:00AM dsig_at_sigafoos.org wrote:
I am wondering if there is a way (message?) to get a column to allow muliple lines in a cell. I found something about height but it doesn't seem to being used.
dsig_at_sigafoos.org
Phone: 971-570-2005
At 12 NOV 2004 08:33PM Karl Pozmann wrote:
You're post was looking kinda lonely so I thought I might take a shot…
We have an example that I thought was originally from this forum where a cell is converted to a combobox on the fly in the POSCHANGED event. Just for jakes, I tried it with an edit box and it appeared to work. So, when focus gets to the cell, you get an edit box. When you leave, it reverts back to the original edittable properties. Is this what you're looking for?
At 13 NOV 2004 01:35AM Donald Bakke wrote:
Karl,
Your idea is perhaps the best one available using native OI controls. We have some apps that use that technique. We also use an OLE grid control that does support multiline cells:
At 15 NOV 2004 02:27AM dsig_at_sigafoos.org wrote:
lonely .. that is what I get for asking for 'standard' windows type functionality.
yeah .. if you have the example handy that would be cool. didn't see anything but will search if example isn't handy.
thanks
dsig_at_sigafoos.org
Phone: 971-570-2005
At 15 NOV 2004 02:29AM dsig_at_sigafoos.org wrote:
Don,
yeah .. if you have any writeup .. pricing etc send it off.
Still a lot of 'standard' functionality missing is OI .. be we have some cute features coming
dsig_at_sigafoos.org
Phone: 971-570-2005
At 15 NOV 2004 05:06PM Karl Pozmann wrote:
Here's the POSCHANGED code FWIW. "CB_VALS" is a control on the window:
declare subroutine forward_event
declare function send_message
$insert ps_equates
BUTTON_STYLE = 16384
HEAD_STYLE = 48
forward_event( NextColumn, NextRow )
BEGIN CASE
CASE NextColumn EQ 2 OR NextColumn EQ 5
Ctrls = Str( CtrlEntID : @RM, 4 ) : str( @window : '.CB_VALS' : @RM, 2 )Props = 'STYLE*SIZE*TEXT*TOPPOS*ORIG_STRUCT*SIZE'CONVERT '*' TO @RM IN PropsVals = Get_Property( Ctrls, Props )Style = Vals1,@RMTblSize = ValsCol2()+1,@RMText = ValsCol2()+1,@RMTopPos = ValsCol2()+1,@RMStruct = ValsCol2()+1,@RMcbSize = ValsCol2()+1,@RMcolumnwidth=Send_Message( CtrlEntID, "COLWIDTH" )
stat = utility( 'DESTROY', @window : '.CB_VALS' )/*the style property can be in hex formatbut bitor only works with decimal integers
/IF Style 1,2 _EQC "0x" THENCONVERT @lower.case TO @upper.case IN StyleStyle=iconv(Style 3,99, "MX")ENDbHasButtons = bitand( Style, BUTTON_STYLE )bHasHeads = bitand( Style, HEAD_STYLE )x = TblSizey = TblSizeIF bHasButtons THENx += 40ENDFOR iCol=1 TO NextColumn - 1x += ColumnWidthNEXT iColIF bHasHeads THENy += 20ENDy += (NextRow - TopPos ) * 14cbList = 1 : @SVM : 2 : @SVM : 3 : @SVM : 4CONVERT @SVM TO @FM IN cbList/*Struct = CtrlEntIDStruct = xStruct = yStruct = ColumnWidthStruct = TextStruct = 1 : @SVM : 2 : @SVM : 3Stat = Utility( 'CREATE', Struct )
/cbSize = xcbSize = ycbSize = ColumnWidthCtrls = str( @window : '.CB_VALS' : @RM, 4 )Props = 'SIZE' : @RM : 'LIST' : @RM : 'TEXT' : @RM : 'VISIBLE'Vals = cbSize : @RM : cbList : @RM : Text : @RM : 1stat = set_property( Ctrls, Props, Vals )Ctrls = 'SYSTEM' : str( @RM : @window : '.CB_VALS', 2 )Props = 'FOCUS' : @RM : '@POS' : @RM : 'REDRAW'Vals = @window : '.CB_VALS' : @RM : NextColumn : @FM : NextRow : @RM : 1stat = set_property( Ctrls, Props, Vals )CASE 1
stat = utility( 'DESTROY', @window : '.CB_VALS' )stat = set_property( @window : '.CB_VALS' : @RM : CtrlEntID, 'VISIBLE' : @RM : 'REDRAW', 0 : @RM : 1 )END CASE
RETURN 0