Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
12 user(s) are online (9 user(s) are browsing Forum)

Members: 0
Guests: 12

more...


Browsing this Thread:   1 Anonymous Users




(1) 2 3 »


Re: MUI list behavior
#21
Home away from home
Home away from home


See User information
kay, so it basically works on both x86 and 68k. however one thing is that after loading an archive the gui resizes to get some empty margin to the right. this looks strange. due to 68k being a slow system is also difficult to hit the buttons, because unarc is constantly busylooping refreshing the list. you have really to try hard pressing constantly the mouse button to get some response in between.

Posted on: 2015/12/10 18:10
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#20
Home away from home
Home away from home


See User information
m68k nightly under winuae, i can attach exact config in case but doubt it matters. i will retest on 68k and x86 hosted asap.

Posted on: 2015/12/10 13:09
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#19
Home away from home
Home away from home


See User information
Quote:

wawa wrote:
im not sure, i think its nlist(view?) in this case, but there seems to be a bug busy looping refreshing it.
testcase:
start unarc and choose some archive. i noticed it trying to decompress some lha on 68k, which was previously working.


Unarc does seem to use NList, but I can't reproduce the bug in any case. I started Unarc on ABIv1 pc-i386 2015-12-08 nightly and opened an archive I found on the Icaros 2.0.3 DVD: print_s.lha. I clicked on the Start button and the files were extracted without any noticeable problems. What exact environment did you use?

Posted on: 2015/12/9 23:35
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#18
Home away from home
Home away from home


See User information
Quote:
ncafferkey wrote:
The iconification bug should be fixed by SVN r51227.

Fabulissimo !

Thank you very much for that ncafferkey, very much appreciated.

Posted on: 2015/12/9 22:52
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#17
Home away from home
Home away from home


See User information
im not sure, i think its nlist(view?) in this case, but there seems to be a bug busy looping refreshing it.
testcase:
start unarc and choose some archive. i noticed it trying to decompress some lha on 68k, which was previously working.

Posted on: 2015/12/4 2:48
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#16
Home away from home
Home away from home


See User information
The iconification bug should be fixed by SVN r51227. The list class was trying to be helpful by cleaning up images that hadn't been removed by the subclass, which didn't work out well when there wasn't actually a subclass.

Posted on: 2015/12/3 20:05
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#15
Home away from home
Home away from home


See User information
@salass00:
:facepalm:

I was so much caught up into details that i completely overlooked that characteristic of fgets().

works like a charm.

Thank you.

Posted on: 2015/8/30 12:14
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#14
Home away from home
Home away from home


See User information
Quote:

So, would you suggest for me to scan the readbuffer (filled with FGetS() ) for line-feeds and remove them manually before returning them in my display hook ?


You don't need to scan the whole buffer. It's enough that you check the last character if it's a newline and set it to null-terminator if it is.

In C code it could look like:
size_t len strlen(buffer);
if (
len != && buffer[len 1] == 10)
    
buffer[len 1] = 0;


Since FGets() stops reading when it encounters a newline you won't ever find one in the middle of a returned line.

Posted on: 2015/8/29 20:52
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#13
Home away from home
Home away from home


See User information
@salass00
You're spot on

Of course, this excerpt was for illustration to show the difference in behavior on classic vs. AROS.

Removing the line-feeds would indeed solve the problem, but i ran into it in an attempt to read/display text-files.

In that program the text-file is 'pre-parsed' with FGetS(), thereby retrieving the file-offsets, add them to the ListView to be used as index numbers for the display routine. The display hook routine would seek the file using the passed offset and then read the line with FGetS(), to be returned for actual display.

So, would you suggest for me to scan the readbuffer (filled with FGetS() ) for line-feeds and remove them manually before returning them in my display hook ?

Which would also opt for adding some ifdefs for classic to 'inactivate' that line-feed removal part for classic, as things behave as intended there ?

Posted on: 2015/8/29 16:40
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: MUI list behavior
#12
Home away from home
Home away from home


See User information
@magorium

I don't know much about pascal but I would assume that the empty lines are because you add a new line to the end of all your strings (the "+ #10" part at the end). Remove that and I think it will be OK.

Posted on: 2015/8/29 16:12
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project