Tab-order reversed on Windows
- From:
- Csomay Mihaly
- Date:
- 2009-11-22 @ 19:11
Hi,
I'm using Shoes for a small app, which I'm developing on Linux.
I tried it on Windows, where it'll be used, and to my surprise, the
Tab-order is the opposite of the Linux version.
A small example:
Shoes.app do
stack do
edit_line
edit_line
button '1'
button '2'
end
end
On Linux, after hitting Tab, it goes to the first edit_line, then down
to the next one and so on.
On Windows, it first goes to button 2, then button 1, then the 2nd
edit_line and so on.
On Windows I'm using the pre-built version from here (r1269):
http://www.rin-shun.com/shoes/index.html
On Linux I'm using the Arch package shoes-git, I can't see a version
number on it, but I installed it on 2009-11-18.
I hope it's an easy fix :)
Thanks.
csm
Re: Tab-order reversed on Windows
- From:
- Satoshi Asakawa
- Date:
- 2009-11-23 @ 11:59
Hi Csomay,
I confirmed the behavior with Shoes-0.r1134 and 0.r1269 on
Windows and got surprising results.
r1134: it goes to the first edit_line, then down to the next
one and so on.
r1269: it first goes to button 2, then button 1, then the 2nd
edit_line and so on.
Umm... I'd like to correct Policeman's behavior.
But now I have no idea and so busy... xx-P
Sorry, please wait for a while.
> On Linux I'm using the Arch package shoes-git, I can't see
> a version number on it, ...
Where did you download it from?
If you download it from this page:
http://github.com/shoes/shoes/downloads
It's Raisins (Ruby 1.8.7), not Policeman (Ruby 1.9.1).
I'm not sure that is the reason, though...
Could anyone confirm the behavior with Policeman on Linux or Mac?
ashbb
Re: Tab-order reversed on Windows
- From:
- Csomay Mihaly
- Date:
- 2009-11-23 @ 12:08
Satoshi Asakawa <ashbbb@gmail.com> writes:
> Hi Csomay,
>
> I confirmed the behavior with Shoes-0.r1134 and 0.r1269 on
> Windows and got surprising results.
>
> r1134: it goes to the first edit_line, then down to the next
> one and so on.
>
> r1269: it first goes to button 2, then button 1, then the 2nd
> edit_line and so on.
>
> Umm... I'd like to correct Policeman's behavior.
> But now I have no idea and so busy... xx-P
> Sorry, please wait for a while.
Ok, I'll do that :)
>> On Linux I'm using the Arch package shoes-git, I can't see
>> a version number on it, ...
> Where did you download it from?
> If you download it from this page:
> http://github.com/shoes/shoes/downloads
No, it's actually an Arch package:
http://aur.archlinux.org/packages.php?ID=16598
It downloads the source straight from the git repo.
csm
Re: Tab-order reversed on Windows
- From:
- Satoshi Asakawa
- Date:
- 2009-11-23 @ 12:40
Hi Csomay,
> No, it's actually an Arch package:
> http://aur.archlinux.org/packages.php?ID=16598
> It downloads the source straight from the git repo.
I see.
Could you run the below snippet?
Shoes.app do
para RUBY_VERSION
end
ashbb
Re: Tab-order reversed on Windows
- From:
- Csomay Mihaly
- Date:
- 2009-11-23 @ 22:13
Satoshi Asakawa <ashbbb@gmail.com> writes:
>> No, it's actually an Arch package:
>> http://aur.archlinux.org/packages.php?ID=16598
>> It downloads the source straight from the git repo.
> I see.
>
> Could you run the below snippet?
>
> Shoes.app do
> para RUBY_VERSION
> end
>
1.9.1 on both machines
Shoes version on Arch Linux, where it works: r1240
Shoes version on Windows, where it doesn't: r1269
But it turns out that the Arch package I installed doesn't pull from the
git://github.com/shoes/shoes.git repository, but from
git://github.com/why/shoes.git ...
So I edited the PKGBUILD file, original one here:
http://aur.archlinux.org/packages/shoes-git/shoes-git/PKGBUILD
and it built, but shoes -v segfaulted...
/usr/bin/shoes: line 24: 11855 Segmentation fault
LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin "$@"
Then I pulled the source myself and built it following the wiki, it
build without error, but shoes -v segfaulted...
/opt/shoes/bin/shoes: line 23: 13110 Segmentation fault
LD_LIBRARY_PATH="$APPPATH/../lib/shoes" $APPPATH/../lib/shoes/shoes-bin
$@
Then I set the LD_LIBRARY_PATH manually and ran shoes-bin -v with
strace, the output is here:
http://pastebin.com/m17afb521
Then I ran shoes -v with strace:
http://pastebin.com/m2efb3f07
But I can't get anything out of it...
Could x86_64 be a problem?
Does anyone have a working Arch Linux PKGBUILD for shoes?
Thanks and sorry for the long mail.
csm
Re: Tab-order reversed on Windows
- From:
- Csomay Mihaly
- Date:
- 2009-11-23 @ 22:17
I forgot: I tried to install the Linux version from here:
http://github.com/shoes/shoes/downloads
Error message:
/tmp/selfgz1485128755/shoes-bin: error while loading shared libraries:
libpng12.so.0: wrong ELF class: ELFCLASS64
Guess that won't work either...
csm
Re: Tab-order reversed on Windows
- From:
- Satoshi Asakawa
- Date:
- 2009-11-30 @ 16:03
Hi Csomay,
I did a quick review of the code related to Tab-order on Windows.
But couldn't find probable cause of the issue so far.
Umm... might be due to a difference between VC6 and VC9.
Sorry, need to study more...
ashbb