Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8203

Re: Do something pressing a specific key

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Do something pressing a specific key
Date 2015-06-13 20:11 +0200
Organization Aioe.org NNTP Server
Message-ID <mlhrob$j0f$1@speranza.aioe.org> (permalink)
References <f187e549-12af-41f1-a13d-e525c02f5bf9@googlegroups.com> <c7a17930-b9db-4cf8-97c0-f014cab87764@googlegroups.com>

Show all headers | View raw


Hi Marcos,
let me give you more details:

METHOD PostInit() CLASS MyWindow
RegisterHotKey(SELF:Handle(), 4712, 0, VK_F2)
RETURN SELF

METHOD QueryClose() CLASS MyWindow
UnregisterHotKey(SELF:Handle() , 4712)
RETURN SELF

METHOD Dispatch(oEvent) CLASS MyWindow
IF oEvent:Message == WM_HOTKEY
	IF oEvent:WParam == 4712
		// Do something
	ENDIF
ENDIF
RETURN SUPER:Dispatch(oEvent)

Regards, Franz

Am 12.06.2015 um 20:34 schrieb Marcos Sánchez:
> Hi, thanks David & Camille for your help.
>
> Afortunately I can do what I want whit your help! Thanks a lot again.
> You guide me and I found some answers.
>
> Regards.
>
> Marcos
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Do something pressing a specific key Marcos Sánchez <marcosmisanchez@gmail.com> - 2015-06-12 07:13 -0700
  Re: Do something pressing a specific key dlzc <dlzc1@cox.net> - 2015-06-12 07:50 -0700
  Re: Do something pressing a specific key Camille Kater <katercam@pt.lu> - 2015-06-12 17:04 +0200
  Re: Do something pressing a specific key Marcos Sánchez <marcosmisanchez@gmail.com> - 2015-06-12 11:34 -0700
    Re: Do something pressing a specific key Franz Rachbauer <office@rachbauer.org> - 2015-06-13 20:11 +0200
  Re: Do something pressing a specific key "Jamal Assaf" <someone@example.com> - 2015-06-12 14:45 -0400

csiph-web