Re: [UFO-devel] Fullsize textedit
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2006-03-27 18:22:56
|
Hi, On Monday 27 March 2006 20:12, Elie `woe` BLETON wrote: > I'm currently in the process of adding some kind of editor into my > application. For this purpose, I thought I could make some use of the > UTextEdit control (and possibly inherit from it in order to add some > syntax highlighting of some kind), but I'm currently unable to resize > the control properly. I noticed the .Rows and .Cols (or was it > .Columns ?), and I tried to compute the adequate size from the font > size, since this was more or less illustrated in the sourcecode. > Unfortunately, I didn't manage to get it right, and the result is > pretty random currently. > > So I'm looking for a way to have a UTextEdit to cover a whole region, > one of those that are provided by UBorderLayout, if that's possible. I'm not sure if I got it right, but if you just want to set the size of the text edit in a given layout, you can use: UWidget::setPreferredSize(UDimension) and the widget will get that size in the layout. Regards, Johannes |