"vbar is visible if needed" would be better as JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
How to write word wrap in RichText? May be someone give example?
KevinKelleyFri 23 Oct 2009
Try it with:
wrap = true
hscroll = false
vscroll = true
There isn't a way to do "as needed" -- either the widget has the scroller, or not; if the text is smaller than the window the scroller will show as disabled.
You can test your text size at construction, though, and set vscroll/hscroll as appropriate. And you can remove the widget and add a new one, when you change your text, to have scrollers showing only if appropriate.
Akcelisto Fri 23 Oct 2009
How to hide scrollbars in RichText?
RichText { model=NoteRichTextModel(note) hbar.visible=false }dont work.
"vbar is visible if needed" would be better as JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
How to write word wrap in RichText? May be someone give example?
KevinKelley Fri 23 Oct 2009
Try it with:
There isn't a way to do "as needed" -- either the widget has the scroller, or not; if the text is smaller than the window the scroller will show as disabled.
You can test your text size at construction, though, and set vscroll/hscroll as appropriate. And you can remove the widget and add a new one, when you change your text, to have scrollers showing only if appropriate.
Akcelisto Sat 24 Oct 2009
fwt::RichTextModel.lineCount has inconsistent name. May be better: numLines.
Akcelisto Sat 24 Oct 2009
What is properly implementation for RichTextModel?
In RichTextDemo model store is based on
Str. In sys::RichTextModel.textRange assumed: model store is based onStr[].What is properly? Model store is
StrorStr[]?If Str[] is properly then: How to write method
modify?brian Sat 24 Oct 2009
The fluxText::Doc class is more full featured and supports color coding: source code