Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 28 Apr 2015, 00:08
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
(Solved) Keyboard Commands for Page Down & Page Up buttons?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
LazY Puppy


Joined: 21 Nov 2014
Posts: 443
Location: Germany

PostPosted: Sat 28 Mar 2015, 23:21    Post subject:  (Solved) Keyboard Commands for Page Down & Page Up buttons?  

Hi.

I'm using keybord commands in a gtkdialog gui to scroll through a list of images.
Quote:
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = Up ] && echo true )">funcSwitchImgPreview</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = Up ] && echo true )">refresh:PIXMAP</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = Down ] && echo true )">funcSwitchImgPreview</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = Down ] && echo true )">refresh:PIXMAP</action>


But this is only for scrolling entries one after another.

What would I need to use to scroll them at pages?

Below code doesn't seem to work:
Quote:
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = PageUp ] && echo true )">funcSwitchImgPreview</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = PageUp ] && echo true )">refresh:PIXMAP</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = PageDown ] && echo true )">funcSwitchImgPreview</action>
<action signal="key-release-event" condition="command_is_true([ $KEY_SYM = PageDown ] && echo true )">refresh:PIXMAP</action>


I'm searching for the parts/commands marked up.

Thanks.

_________________
RSH
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!

Last edited by LazY Puppy on Sun 29 Mar 2015, 00:39; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 650
Location: Japan

PostPosted: Sun 29 Mar 2015, 00:16    Post subject:  

A bit strange. xev identifies the Pageup and PageDown keys as Prior and Next, but $KEY_SYM = Prior doesn't work for me. Instead $KEY_VAL = 0xff55 works fine. For PageDown this would be $KEY_VAL = 0xff56.
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 443
Location: Germany

PostPosted: Sun 29 Mar 2015, 00:38    Post subject:  

Wow man, that's pretty cool. You're an Expert.

I had already used xev to get the code for Up and Down, but it didn't work. Then clear command "Escape" did come to my mind so I did try just to use Up and Down, which worked immediately. Since xev code for Up and Down didn't work I did not try it again for PageUp and PageDown.

However, I just wasn't aware of the use of $KEY_VAL instead of $KEY_SYM.

Of course you're an expert - at least more than me one.

Thank you very much. Smile

_________________
RSH
No Smart-Phones, no FaceBook, no Twitter etc...
but: LazY Puppy!
Copyright is NOT Copyleft: good people are aware of this and respect both of them!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0498s ][ Queries: 11 (0.0033s) ][ GZIP on ]