Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Bug reports
➜ default lists for utils.multilistbox don't work properly
default lists for utils.multilistbox don't work properly
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #15 on Tue 26 Jul 2011 06:50 AM (UTC) |
Message
| Let me briefly explain what the code is trying to do. The list box has the "sorted" attribute checked, so when you add (say) y, then x, it sorts it into x and then y order. So it gets the "new position" from the listbox insertion, and uses *that* and not the original position for modifying things like the selected flag. It also stores the original position (under the "extra data" field) so that it can relate back the original position, when chosen, and not the position it eventually ends up in the list.
And all this works, or seems to, because list boxes work regardless of the order that you add things into them, as the screen shot shows.
But maybe under Wine, the number returned is prior to sorting, or something, which defeats the effort I have put in to resolve this issue.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #16 on Tue 26 Jul 2011 07:04 AM (UTC) Amended on Tue 26 Jul 2011 07:07 AM (UTC) by Fiendish
|
Message
| Maybe presort the items? :\
At least it seems I can effectively work around this by using numeric indexes, since those are always sorted correctly directly out of Lua. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #17 on Tue 26 Jul 2011 10:28 AM (UTC) |
Message
| I shouldn't have to pre-sort things to work around what is increasingly looking like a problem in Wine. It looks like LuaJIT is triggering the problem by the way it is hashing things, but really the core problem is that the listbox is not functioning as documented, as evidenced by its correct behaviour under Windows. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #18 on Tue 26 Jul 2011 10:33 AM (UTC) Amended on Tue 26 Jul 2011 10:34 AM (UTC) by Nick Gammon
|
Message
|
Fiendish said:
Thanks, I got the email.
Not my original one I presume?
This Message was undeliverable due to the following reason:
Your message is larger than the destination computer is willing to
accept, so it was returned. The error message below indicates the
size of your message and the maximum size allowed by the receiving
E-mail system. You may be able to split your message into several
smaller pieces and have them delivered separately.
Your message was rejected by gmail-smtp-in.l.google.com for the following reason:
5.7.0 Our system detected an illegal attachment on your message. Please
5.7.0 visit http://mail.google.com/support/bin/answer.py?answer=6590 to
5.7.0 review our attachment guidelines. m2si18421449pbj.63
The following recipients did not receive this message:
...
So my attachment was illegal, eh?
Illegal
contrary to or forbidden by law, esp. criminal law: illegal drugs.
What law did it break? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #19 on Tue 26 Jul 2011 11:16 AM (UTC) |
Message
|
Nick Gammon said: What law did it break?
"This program has performed an illegal operation and will be shut down." |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #20 on Tue 26 Jul 2011 02:34 PM (UTC) Amended on Tue 26 Jul 2011 02:36 PM (UTC) by Fiendish
|
Message
| "You are in violation of the law!"
"You're in violation of your face!"
It seems gmail is very aggressive about blocking zipped executables. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #21 on Tue 26 Jul 2011 08:44 PM (UTC) |
Message
|
Twisol said:
Nick Gammon said: What law did it break?
"This program has performed an illegal operation and will be shut down."
That reminds me of the people who call up call centers and complain that their computer told them they are doing something illegal. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
56,814 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top