English
Forum

lever of Popupmenü detect

 

Jac
de
Lad
How circa everything in the world ermittel I the lever one Popupmenüs, that I with TrackMenu display (circa subsequently one Item by CheckMenuItem To checken?
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
09/25/06  
 



Hello Jack...

self create?
CompileMarkSeparation
Windowstyle 31+512
Windowtitle "Trackmenü mit Checkfunktion über API"
Window 0,0-640,440
DEF @CreatePopupMenu(0) !"USER32","CreatePopupMenu"
DEF @AppendMenuEx(4) !"USER32","AppendMenuA"
DEF @TrackPopupMenu(7) !"USER32","TrackPopupMenu"
DEF @CheckMenuItem(3) !"USER32","CheckMenuItem"
Def @DestroyMenu(1) !"USER32","DestroyMenu"
Declare Checkmerker%
Declare Menuhandle&,ITEM$
Das Menü wird erzeugt
LET Menuhandle&=@CreatePopupMenu()
LET Item$="&Messagebox"
@AppendMenuEx(Menuhandle&,0,101,@ADDR(ITEM$))
LET Item$="&Check"
@AppendMenuEx(Menuhandle&,0,102,@ADDR(ITEM$))

While %Menuitem<>-2

    Waitinput

    IF @equ(%MouseKey,2) Rechte Maustaste gedrückt?

        @TrackPopupMenu(Menuhandle&,0,%mousex+5,%Mousey-10,0,%HWND,0) Menü wird angezeigt..

        IF @equ(%MENUITEM,102)

            LET CHECKMERKER%=@NOT(Checkmerker%) Zustandsänderung merken...
            @CheckMenuItem(Menuhandle&,102,@mul(Checkmerker%,8)) Ähnlich wie der Befehl Checkmenü!

        ELSEIF @equ(%MENUITEM,101)

            @Messagebox("Menüpunkt eins geklickt!","Hinweis",64)

        ENDIF

    endif

wend

@DestroyMenu(Menuhandle&) Speicher enable

Greeting

Andreas
 
09/26/06  
 




Jac
de
Lad
thanks, I probiers!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
09/26/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

584 Views

Untitledvor 0 min.
Heltal07/25/14
holmol9305/10/13
gerd01/26/13
H.Hackl03/22/12
More...

Themeninformationen

this Topic has 2 subscriber:

Jac de Lad (2x)
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