Überblick
Beispiele
Schnappschüsse
Vergleiche
Anwendungen
Herunterladen
Documentation
Basar
Status & Fahrplan
Häufig gestellte Fragen
Autoren & Lizenz
Forum
Ultimate++ finanziell unterstützen
Diese Seite durchsuchen
Sprache
Deutsch











SourceForge.net Logo



HotKey

 

Ctrl::RegisterSystemHotKey demonstration

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

void HotKey1()

{

    PromptOK("HotKey1");

}

 

void HotKey2()

{

    PromptOK("HotKey2");

}

 

GUI_APP_MAIN

{

    TopWindow win;

    int id = Ctrl::RegisterSystemHotKey(K_CTRL|K_F1, callback(HotKey1));

    Ctrl::RegisterSystemHotKey(K_ALT|K_CTRL|K_SHIFT|K_A, callback(HotKey2));

    win.Run();

    Ctrl::UnregisterSystemHotKey(id);

    win.Run();

}

 

 

 

 

Diese Seite gibt es auch in english, català, čeština, español, euskara, français, română, русский, 中文(简体) und 中文(繁體). Willst du mitmachen?