Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Disabling Alt/control/shift  (Read 12946 times)

0 Members and 1 Guest are viewing this topic.

Tex Killer

  • Full Member
  • ***
  • Posts: 242
    • View Profile
Disabling Alt/control/shift
« Reply #15 on: November 05, 2011, 05:20:43 pm »
Is it allowed to "UP" threads around here?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Disabling Alt/control/shift
« Reply #16 on: November 05, 2011, 05:31:37 pm »
Yes, but I didn't understand anything about your first message :D
Laurent Gomila - SFML developer

Tex Killer

  • Full Member
  • ***
  • Posts: 242
    • View Profile
Disabling Alt/control/shift
« Reply #17 on: November 06, 2011, 03:43:47 am »
The matter here is that there is a system effect on Windows that affects the Alt key, and is specific to menus. Why would you want this effect active if SFML by itself doesn't allow you to use menus? Wouldn't it be better to disable the effect, and provide some function for future GUIs that may use SFML to enable it?

I'm sorry if I'm not making myself clear... As I said on another topic, english is not my main language  :?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Disabling Alt/control/shift
« Reply #18 on: November 06, 2011, 09:57:53 am »
Ok I got it now :P
Laurent Gomila - SFML developer

Tex Killer

  • Full Member
  • ***
  • Posts: 242
    • View Profile
Disabling Alt/control/shift
« Reply #19 on: November 06, 2011, 05:24:27 pm »
Does that mean you agree?  :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Disabling Alt/control/shift
« Reply #20 on: November 06, 2011, 06:48:22 pm »
It means that I'll think about it in the future. Right now I have other priorities for SFML 2.0.
Laurent Gomila - SFML developer

Senzin

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Disabling Alt/control/shift
« Reply #21 on: April 25, 2012, 08:58:43 am »
I'm creating a visual graph editor. The user can drag with the mouse to create selection boxes to select nodes. Holding Shift allows the user to add to the current selection while holding Alt allows the user to subtract from the current selection. This is the same was selection works in Photoshop and many other programs with the drag-select interface. However, as others have pointed out, when you release the Alt key, the program loses focus. The user has to click on it somewhere to make it active again.

I saw someone talked about this way back in 2008 and pointed to possible solutions. However, this was the newest and first thread in the search results for this topic, so I'm posting here.
http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms646360(VS.85).aspx