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 Wed 01 Jul 2015, 08:20
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 Posts_count  
Author Message
LazY Puppy


Joined: 21 Nov 2014
Posts: 519
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!

Edited_time_total
Back to top
View user's profile Send_private_message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 706
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: 519
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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