TextEditor with both hor. & ver. scrollbars fail with nowrap

Discuss GUI programming with the MUI Royale plugin here
Post Reply
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

TextEditor with both hor. & ver. scrollbars fail with nowrap

Post by marko »

TextEditor with both horizontal & vertical scrollbars working without AutoWrap in the TextEditor

Hi,

I'm trying to get working scrollbars (both horizontal and vertical) on a TextEditor without autowrap enabled.

So in my XML file I have:

Code: Select all

<virtgroup>
    <texteditor id="myte" wrapmode="nowrap" fixedfont="true" scrollbar="yes" contents="exter your text here!"/>
</virtgroup>
In above, the textwrapping is set to of as i should but I have only the vertical scrollbar and no way to scroll to the right side of the text...

So, I figured I maybe have to enclose it i a scrollgroup like:

Code: Select all

<scrollgroup freevert="false">
<virtgroup>
    <texteditor id="myte" wrapmode="nowrap" fixedfont="true" scrollbar="yes" contents="exter your text here!"/>
</virtgroup>
</scrollgroup>
So, now a get the horisontal scrollbar as well but i doesn't work and still is the right side of the text in the texteditor hidden?

What am I missing, how do get both scrollbars working without AutoWrap in the TextEditor?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by marko »

Oh, that should read True..

So:

Code: Select all

<scrollgroup freevert="false">
<virtgroup>
    <texteditor id="myte" wrapmode="nowrap" fixedfont="true" scrollbar="true" contents="exter your text here!"/>
</virtgroup>
</scrollgroup>
But no working scrollbars either :S... ?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by airsoftsoftwair »

Don't use a scrollgroup or a virtgroup. Text editor class has its own scrollbars.
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by marko »

Ok, so after taking them away I have like this:

Code: Select all

<vgroup>
    <texteditor id="myte" wrapmode="nowrap" fixedfont="true" scrollbar="true" contents="exter text" cyclechain="1"/>
</vgroup>
Sorry Andreas, it doesn't work. I will only get Vertical scrollbar but no Horizontal scrollbar at all now :S

Did you note that the TextEditor is without autowrapping? (just in case)

So, when there's a bunch of text in the text editor (with wrapping turned off), no way to scroll to the rights side of text to view it...

What else missing..?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by airsoftsoftwair »

I checked back with the TextEditor.mcc team and they told me that it is currently not supported because YAM always uses autowrapping. So you have to try to bug them about it.... maybe they'll implement it :)
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by marko »

Ok, I'll do that, hopefully they implement it, thanks :)
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: TextEditor with both hor. & ver. scrollbars fail with no

Post by marko »

Ticket made on the TextEditor bug tracker.
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
Post Reply