English
Regulars table & Café

GetDlgCtrlID.

 


Description:

GetDlgCtrlID determined The ID the angegebenen Controls.




Deklaration:

DEF @GetDlgCtrlID(1) !USER32,GetDlgCtrlID




Parameter:

1.Parameter: lever the Controls, which ID determined go should.




Return Value:

with success The ID the Controls, with failure 0.

Examples:

CompileMarkSeparation
DEF @GetDlgCtrlID(1) !"USER32","GetDlgCtrlID"
DEF @ButtonClicked(1) @GetDlgCtrlID(@&(1))=-%MENUITEM
Windowstyle 31+512
Windowtitle "Buutonklick abfragen"
Window 0,0-640,440
Declare Button&[5]
LET Button&[1]=@CREATEBUTTON(%HWND,"Button 1",10,10,200,30)
LET Button&[2]=@CREATEBUTTON(%HWND,"Button 2",10,50,200,30)
LET Button&[3]=@CREATEBUTTON(%HWND,"Button 3",10,90,200,30)
LET Button&[4]=@CREATEBUTTON(%HWND,"Button 4",10,130,200,30)
LET Button&[5]=@CREATEBUTTON(%HWND,"Button 5",10,170,200,30)

While %MENUITEM<>-2

    sleep 10

    IF @ButtonClicked(Button&[1])

        @Messagebox("Button 1 wurde gedrückt","Buttonklick",64)
        SetMenuitem 0

    endif

    IF @ButtonClicked(Button&[2])

        @Messagebox("Button 2 wurde gedrückt","Buttonklick",64)
        SetMenuitem 0

    endif

    IF @ButtonClicked(Button&[3])

        @Messagebox("Button 3 wurde gedrückt","Buttonklick",64)
        SetMenuitem 0

    endif

    IF @ButtonClicked(Button&[4])

        @Messagebox("Button 4 wurde gedrückt","Buttonklick",64)
        SetMenuitem 0

    endif

    IF @ButtonClicked(Button&[5])

        @Messagebox("Button 5 wurde gedrückt","Buttonklick",64)
        SetMenuitem 0

    endif

./function-references/XProfan/wend/'>wend

 
04/09/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.918 Views

Untitledvor 0 min.
Detlef Jagolski06/01/12

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