Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
137 user(s) are online (81 user(s) are browsing Forums)

Members: 0
Guests: 137

more...

Headlines

 
  Register To Post  

Ringhio
Home away from home
Home away from home


See User information
I have problems whit messages I send to ringhio, Ringio seams to wont to divide my lines at any place, in middle of hex number and it does not care if has been a line feed char before in the line, is there anyway to get better control of this?
The return char, produces strange symbols.

My ringhio messages looks like total crap.

please help

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
I already report this issue to m3x when i translated the Ringhio messages for AmiUpdate, however since then nothing changes, hope it will be for the next release

Go to top
Re: Ringhio
Just popping in
Just popping in


See User information
Currently there is no way to format the text displayed in the pop-up message.
Do you have any sample of what you what to achieve ?

Max Tretene, ACube Systems Srl, Soft3
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
@m3x
I think the biggest problem is that it is (apparently) automatically splitting the text (into several lines) in the MIDDLE of words. The secondary problem is that it does not handle new-line characters as you would expect.

Author of the PortablE programming language.
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
Resized Image


As you can see in the picture

the lines gets short and short, and not all the info is displayed because of the extra inserted line feeds, and as you can see the line feeds are not inserted where the is space between word, it inserted at any place in middle of words also.

The text below display the text as it should have been displayed.

Quote:

Guru Error: 0x15038005

Recoverable alert
alert.exe (695ee610)

0x00030000
General error:
AG_OpenLib

0x00008005
Alert object:
AO_MathLib

0x15000001
timer:
AN_TMBadReq

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
Quote:

I think the biggest problem is that it is (apparently) automatically splitting the text (into several lines) in the MIDDLE of words. The secondary problem is that it does not handle new-line characters as you would expect.


As far as I can see it does not split lines in the middle of "words" but in the middle of "numbers"

In fact after a bit of testing with the arexx script in the documentation I can see that it words wraps on 'nonalpha' characters rather than on white space, which causes LiveForIts numbers to get split.


That other factor is that "\n" in the message text causes line breaks in the display, but appears not to be taken in account when calculating the points at which Ringhio adds addiational linebreaks causing the odd linelengths.




Go to top
Re: Ringhio
Just can't stay away
Just can't stay away


See User information
@broadblues

Quote:

In fact after a bit of testing with the arexx script in the documentation I can see that it words wraps on 'nonalpha' characters rather than on white space, which causes LiveForIts numbers to get split.


Might be a good idea to make it word wrap only on non-alphanumeric characters instead of all non-alpha characters.

Go to top
Re: Ringhio
Not too shy to talk
Not too shy to talk


See User information
Or to let it take into account the \n characters. It's quite easy to imagine the algorithm which might be used for splitting the lines - calculate the width and move back to the next previous space, which is then replaced with a \n. That wouldn't take into account any \n which is already in the string, and is only noticed once it's sent to be displayed.

It should be trivial to account for existing newlines in the code... Maybe for 4.2?

Go to top
Re: Ringhio
Quite a regular
Quite a regular


See User information
@m3x

AFAIK it's not documented how Ringhio wraps the text. Two possibilities:
- either it's based on character count,
- either it's based on a certain pixel width (which would mean amount of text actually displayed depends on the screen resolution and text size).

Back to a quiet home... At last
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
Quote:

AFAIK it's not documented how Ringhio wraps the text. Two possibilities:

It's not as far as I can see.

Quote:

- either it's based on character count,

It is.
A simple experiment will show that Text in the title and body are wrapped at 30 characters, if one of those happens to be a "\n" hen it is treated ;ike any other for wrap calculations.


text code for experiments

/* Small script for testing Ringhio */

options results

NL 
X2C('09')

address RINGHIO

'REGISTERAPP APP=TESTRINGHIO ICON="SYS:Documentation/Ringhio/rx_testringhio.rexx" This is a test app entry'
say RESULT 

'RINGHIO APP=TESTRINGHIO CLOSEONDC SCREEN="FRONT" PRI=9 IMG=SYS:Prefs/Presets/Ringhio/test.png TITLE="0123456789*N1123456789212345678931234567894123456789" IMGVALIGN=1
 TEXT="01234567891123456789212345678931234567894123456789you see this little popup message, ,./;.,./;.,)(*&^%$£"!£$%^&*() and a wink icon, 134567890 it means Ringhio is working OK"'
say RESULT






Edited by Rigo on 2012/9/14 20:24:23
Go to top
Re: Ringhio
Just can't stay away
Just can't stay away


See User information
Quote:

broadblues wrote:

Text in the title and body are wrapped at 30 characters, if one of those happens to be a "\n" hen it is treated like any other for wrap calculations.

Would be nice if "\n" was treated the same way as it is in requesters, wouldn't it? If only for the sake of consistency. Imagine a program that gives the user an option to receive notifications in the form of either a requester or a Ringhio pop-up. Under the current circumstances, the programmer would have to prepare the message differently for the requester and for Ringhio - which I think is wrong.

Max, can we have something done about it?

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Ringhio
Just popping in
Just popping in


See User information
@broadblues

Yes, Ringhio wraps at 30 chars, on nonalpha chars, including the "\n".

I'll try to find some time to fix this annoyance.

Max Tretene, ACube Systems Srl, Soft3
Go to top
Re: Ringhio
Quite a regular
Quite a regular


See User information
@m3x

Does it needs me to validate the BZ enhancement request I was writing?

Back to a quiet home... At last
Go to top
Re: Ringhio
Just popping in
Just popping in


See User information
Quote:

abalaban wrote:
@m3x

Does it needs me to validate the BZ enhancement request I was writing?

Yes

Max Tretene, ACube Systems Srl, Soft3
Go to top
Re: Ringhio
Quite a regular
Quite a regular


See User information
@m3x

Done #8051.

Back to a quiet home... At last
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
Thanks Max.

You never let med down once, when my computer was broken nor now


Edited by LiveForIt on 2012/9/14 21:20:46
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Ringhio
Just popping in
Just popping in


See User information
Fixed in Ringhio 53.23

BTW: I've increased popup msgs text size from 128 to 160 chars.

Max Tretene, ACube Systems Srl, Soft3
Go to top
Re: Ringhio
Home away from home
Home away from home


See User information
@m3x

Grazie Max

Go to top
Re: Ringhio
Just can't stay away
Just can't stay away


See User information
Quote:

m3x wrote:

I've increased popup msgs text size from 128 to 160 chars.

Good. I've made a note in the Ringhio messages section of the Application Library documentation in the wiki.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Ringhio
Just popping in
Just popping in


See User information
@trixie

Nice work keeping the wiki up to date. The wiki page on application library is really well done. If the whole wiki keeps to this level of greatness it will be an amazing resource.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project