Just added two new attributes for IupMatrix: *New: *LINEALIGMENT*L* and ALIGN*L:C* attributes for *IupMatrix*.
Best, Scuri On Tue, Aug 4, 2015 at 9:44 AM, Antonio Scuri <sc...@tecgraf.puc-rio.br> wrote: > A) Ok. Now I got it. Well I guess we need a new vertical alignment > attribute to be able to do that. > > B) That's because the scrollbar can be hidden. If you set XAUTOHIDE=NO, it > will display correctly. > > Best, > Scuri > > > > On Mon, Jul 27, 2015 at 7:29 AM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net> wrote: > >> Am 25.07.2015 um 16:08 schrieb Antonio Scuri: >> > A) the problem is not alignment, but height of the line. Set the HEIGHTn >> > attribute for the lines that have text with multiple lines. >> >> If my understanding the documentation is correct, than not giving of >> those attributes, I should end up using HEIGHTDEF. Thus one line. >> That's actually what I want. The idea was to see just the first line. >> Seems I'm seeing one line worth around the middle. >> >> > B) the matrix configuration could cause that effect. Which attributes >> (not >> > cell values) of the matrix are you using. >> >> expand: yes, limitexpand: yes, numlin: <the number of lines in the >> matrix>, numcol: 11, cursor "ARROW", readonly: yes. >> >> ALIGNMENT1... ALIGNMENT3: ALEFT >> FONT*:2 and FONT*:3 : "Monospace, 10" >> WITDH1 ...WIDTH11 : <set to appropriate width for the column range 4..150> >> >> Thant's it. >> >> > >> > Scuri >> > >> > >> > On Sat, Jul 25, 2015 at 5:15 AM, "Jörg F. Wittenberger" < >> > joerg.wittenber...@softeyes.net> wrote: >> > >> >> Hi, >> >> >> >> I have two problems with matrix formatting. >> >> >> >> A) There is an attribute to control the horizontal alignment of matrix >> >> cells. But I did not find the equivalent for vertical alignment. The >> >> attached "MultilineProblem.png" shows how horrible content with embeded >> >> newlines ends up. (Here an excerpt of a sqlite_master table.) >> >> >> >> I should be able to work around this by cutting the matrix content on >> >> the first newline, or replace newlines with spaces. Though this looks >> >> would need to distinguish between actual content and content on display >> >> in the matrix. Thus complicating the app logic quite a bit. >> >> >> >> Is there any better solution? >> >> >> >> B) Worse is the behavior when a matrix horizontally exceeds size of the >> >> window, but not vertically. Iup correctly adds a horizontal scrollbar. >> >> However the scrollbar obstructs the last line of the matrix. The only >> >> way (I found) to view this data is to resize the window. (Which may be >> >> impossible for large enough a matrix.) >> >> >> >> I'm not sure what the right thing to do would be. Adding a vertical >> >> scrollbar is certainly at least required if the matrix would also >> exceed >> >> the vertical window size. Otherwise it might be wiser to simply try to >> >> recalculate the layout and increase the matrix's height. >> >> >> >> See the second attachment "MatrixMissingVScroll" >> >> >> >> Best >> >> >> >> /Jörg >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> >> Iup-users mailing list >> >> Iup-users@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> >> >> >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > >> > >> > >> > _______________________________________________ >> > Iup-users mailing list >> > Iup-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/iup-users >> > >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Iup-users mailing list >> Iup-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> >
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users