|
From: jeroen <je...@fo...> - 2001-12-14 01:00:41
|
On Thursday 13 December 2001 06:21, you wrote: > Hi ! > > I have a dialogbox, and in that I display an FXText widget, the problem is > that it gets very small, even if I specify width and height it is still > very small, I have not done any fox dialogboxes in a long time so I guess I > messed something up, anyway what should I do to get a nice size of the > FXText widget, and is it possible to specify a prefered size of it (without > creating a new subclass of FXText) in characters instead of pixels maybe, > that would be nice ? > > Mikael Mikael, I'm not sure if anyone answered this already, but this can in fact be done. After creating a text widget: text=new FXText(....); You can set a "desired" size in terms of rows and columns of text: text->setVisRows(25); text->setVisCols(80); This is the default width/height, i.e. the layout manager which contains the FXText widget may still interpret FXText's layout flags and its packing hints and give it a different size.... By the way, the size is determined in terms of the width of the number "8". This reflects the proclivity towards engineering software at CFDRC... :-) :-) Regards, Jeroen |