Re: EuGrid Column Spacing
- Posted by "C. K. Lester" <cklester at yahoo.com> Mar 27, 2003
- 364 views
> Hmm. Difficult to say without seeing the code. Could it be a small > error in your pixel width calculation e.g. rounding error or something? I don't think so, because sometimes the error is massive... especially if I drag the window bigger real quick. I think it's a problem with Win32Lib not reporting the proper clientRect... Here's my procedure, though: procedure grid1_w32HResize (integer self, integer event, sequence params)--params is () sequence gridrect atom gridwidth, col1 col1 = 0.30 gridrect = getClientRect( grid1 ) gridwidth = gridrect[3] - gridrect[1] -- junk = message_box( sprintf("%d",{gridwidth}) , "Grid Size" , MB_OK) col1 = floor(col1 * gridwidth) junk = EGW_SetColumnProperty( grid1 , grid1col1 , EGW_COL_WIDTH, col1 ) junk = EGW_SetColumnProperty( grid1 , grid1col2 , EGW_COL_WIDTH, gridwidth - col1 ) end procedure setHandler( grid1, w32HResize, routine_id("grid1_w32HResize"))