| |
|
|
 Michael Punkt | ... or be I simply stupid? (Anm. the was only a rethorische question )
%key does not work for me.is so what possible? I have here minimales example. prepares watts it with Rokos Dialogeditor. only a little bit gekürzt. CompileMarkSeparation
Proc DIALOG
Declare DLG&, DIALOGENDE%
DLG&=CREATE("WINDOW",%HWND,"Neues Fenster",22,20,640,500)
SETFOCUS(DLG&)
DIALOGENDE%=0
WHILENOT DIALOGENDE%
WAITINPUT
If %KEY=2
DIALOGENDE%= 1
ELSEIF %KEY=90 z-Taste
DIALOGENDE%= 1
ENDIF
ENDWHILE
DESTROYWINDOW(DLG&)
ENDPROC
WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW (%maxx-300),10-280,80
CLS RGB(0,0,0)
DIALOG
In one dialog (dialog/Window) functions by me quite no Tastenabfrage. Habs already with WAITKEY attempts. have I something overlooking? can still really not his, that not goes. |
|
|
| XProfan 11, Windows XP (2GB RAM), XProfEd | 08/17/09 ▲ |
|
|
|
|
 | I mean, XProfan reacted here integrally sincere, How windows the too handling or. distinguish.
Gib time in the Help "Tastatur" one, there's many Opportunities circa on "Tasteninfos" heranzukommen, each has sure your to- and detriments.
One lane over User Messages could his: CompileMarkSeparation {$cleq}
Gemerkt/Separiert von http://xprofan.com/thread.core?t=7793
Proc DIALOG
Declare DLG&, DIALOGENDE%
DLG&=CREATE("WINDOW",%HWND,"Neues Fenster",22,20,640,500)
SETFOCUS(DLG&)
DIALOGENDE%=0
userMessages 256 ~wm_keyDown
WHILENOT DIALOGENDE%
WAITINPUT
locate 1,1
print &getTickCount
print "Taste: ",&uwParam," "
If %KEY=2
DIALOGENDE%= 1
ELSEIF (%UMessage=256) and (&uwParam=90)%KEY=90Z-Taste
DIALOGENDE%= 1
ENDIF
ENDWHILE
DESTROYWINDOW(DLG&)
ENDPROC
WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW (%maxx-300),10-280,80
CLS RGB(0,0,0)
DIALOG
Related: iskey  |
|
|
| |
|
|
|
 Michael Punkt | Hello If,
you have again nacheditiert, gell?! have the whole yesterday ausprobiert and first a Error Message receive. thought already, You wanted me testing, whether I aufpasse.  Have then but the windows.ph and Messages.ph eingebunden and from wm_keydown one ~wm_keydown made. then went it too, only ...
I had all Opportunities inklusive @iskey(90) ausprobiert and nothing went. any Examples and References to the Topic under Help verrieten nothing, I here with windows-Rückgabewerten works must (and well too only of these, if I something not überlesen having ought to).
the sinnvollste is then well really, only yet with the windows-Messages To works, once to the Mainwindow leave has.
but for all that Gibts there another trouble (The Combobox involved with the ENTF-Button), but the write I then later rather into suitable Thread.
Vielen Thanks. |
|
|
| XProfan 11, Windows XP (2GB RAM), XProfEd | 08/18/09 ▲ |
|
|
|
|
 | clear, one must hold discern, when How where which Button quizzed go should or. for which Control.
on the Einfachsten z.B. for Games is therefore mostly the normal Mainwindow for the most Tastenbefehle zutreffen. |
|
|
| |
|
|