# FXRuby and Windows system menu keyboard shortcut

**URL:** <https://rubytalk.org/t/fxruby-and-windows-system-menu-keyboard-shortcut/9328>\
**Category:** ruby-talk\
**Created:** [14 December 2003 13:46 UTC](https://rubytalk.org/t/fxruby-and-windows-system-menu-keyboard-shortcut/9328 "2003-12-14T13:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yonatan\_Avraham](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@Yonatan\_Avraham](https://rubytalk.org/u/Yonatan_Avraham)\
**Post date:** [14 December 2003 13:46 UTC](https://rubytalk.org/t/fxruby-and-windows-system-menu-keyboard-shortcut/9328/1 "2003-12-14T13:46:59Z")

</div>

Hello everyone,

I’m using Ruby 1.8.0 for Windows, and I’m trying to decide between  
FXRuby and Tk. While I’m impressed with the examples included for  
both toolkits, I did happen to notice that with the FXRuby examples,  
pressing the alt-space keyboard shortcut does not access the standard  
Windows system menu. This is the standard behavior for Windows  
applications and is important to me because I need to avoid using the  
mouse as much as possible, so I rely very heavily on this keyboard  
shortcut to minimize and maximize windows (and it’s also much quicker  
than using the mouse). So, could anyone tell me if this is something  
that could easily be turned on from within my script, or if it’s a  
limit imposed by either the FOX toolkit or the Ruby wrapper? I just  
downloaded the calculator example from the FOX toolkit website, and it  
also does not respond to the alt-space shortcut. So I’m guessing that  
this behavior is inherent to the toolkit. But I don’t know if they  
have their own shorcut to access this menu or a way of getting the  
default Windows behavior.

Thanks,  
Yonatan

---

<div class="post-metadata">

**Author:** ![Lothar\_Scholz1](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@Lothar\_Scholz1](https://rubytalk.org/u/Lothar_Scholz1)\
**Post date:** [15 December 2003 21:46 UTC](https://rubytalk.org/t/fxruby-and-windows-system-menu-keyboard-shortcut/9328/2 "2003-12-15T21:46:56Z")

</div>

[yonatan\_avraham@hotmail.com](mailto:yonatan_avraham@hotmail.com) (yonatan) wrote in message news:[37fcf3c0.0312140542.3872d7dd@posting.google.com](mailto:37fcf3c0.0312140542.3872d7dd@posting.google.com)…

> than using the mouse). So, could anyone tell me if this is something  
> that could easily be turned on from within my script, or if it’s a  
> limit imposed by either the FOX toolkit or the Ruby wrapper?

Here you must add your own a shotcut key and send a windows SYS\_  
message to the window by your own. There is no FOX toolkit option that  
does it for you.

But if you must really move the window so often you should redesign  
your application.
