English
Source / code snippets

inquire Dialog-Window Mouse buttons

 

CompileMarkSeparation
'Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
'Dialogfenster: Maustasten abfragen
Def @GetAsyncKeyState(1) !"User32","GetAsyncKeyState"
declare Dialog&,Text&
Window 0,0-620,410
WindowTitle "Hauptfenster"
@GetAsyncKeyState(1)'Zurücksetzen
@GetAsyncKeyState(2)'Zurücksetzen
Dialog& = @Create("Dialog",%HWnd,"Dialogfenster",30,60,200,200)
@Create("Button",Dialog&,"Testbutton",30,100,100,20)
LET TEXT& = @Create("Text", Dialog&, "", 10, 10, 200, 20)

While 1

    waitinputex

    IF @GetAsyncKeyState(1)<>0

        Settext Text&,"Linke Maustaste"

    endif

    IF @GetAsyncKeyState(2)<>0

        Settext Text&,"Rechte Maustaste"

    endif

wend

end

Proc WaitInputEx'Erweitertes Waitinput für Dialoge von AH

    Declare AHWait_Counter%
    Clear AHWait_Counter%

    While AHWait_Counter%<25

        inc AHWait_Counter%

    wend

    @External("USER32","MsgWaitForMultipleObjects",0,0,0,-1,$1 | $4 | $10)
    Clear AHWait_Counter%

    While AHWait_Counter%<25

        inc AHWait_Counter%

    wend

endproc

 
07/15/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.517 Views

Untitledvor 0 min.
Uwe Lang09/04/24
Sven Bader08/02/21
Jochen Roxlau12/08/15
RudiB.11/22/15
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie