English
Source / code snippets

old Invisible overlay Fenstermenue Per

 

Julian
Schmidt

CLS
Pop "&Datei"
AppendMenu 101,"Option1"
Pop "&Bearbeiten"
AppendMenu 201,"Option1"
Var Menu&=External("USER32","GetMenu",%hwnd)
ShowMenu(%hwnd, 0)

While 1

    If iskey(18)

        ShowMenu(%hwnd, 1)
        Waitinput
        Case menuitem(101) or menuitem(201) : Messagebox("Menü Angeklickt","INFO",64)
        ShowMenu(%hwnd, 0)

    EndIf

EndWhile

Proc ShowMenu

    Parameters hdl&, modus&

    If (modus&=1)

        External("USER32","SetMenu",hdl&,Menu&)

    ElseIf (modus&=0)

        External("USER32","SetMenu",hdl&, 0)

    EndIf

ENDPROC

 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
04/01/12  
 




Nico
Madysa
The code is a bisschen clumsy, because as long as old not is pressed, rattert The Endlosschleife incessantly round circa round through, what Systemressourcen lavish. rather:
CLS
Pop "&Datei"
AppendMenu 101,"Option1"
Pop "&Bearbeiten"
AppendMenu 201,"Option1"
Var hMenu&=External("USER32","GetMenu",%hwnd)
ShowMenu(%hwnd, hMenu&, 0)
User Messages 261'WM_SYSKEYUP
declare e%, menustatus%
clear e%, menustatus%

Whilenot e%

    waitinput

    if IsKey(27)

        e% = 1

    elseif MenuItem(101) or MenuItem(201)

        Messagebox("Menü Angeklickt","INFO",64)

    elseif iskey(18)

        menustatus% = 1
        ShowMenu(%hwnd, hMenu&, 1)

    elseif menustatus%

        menustatus% = 0
        ShowMenu(%hWnd, hMenu&, 0)

    EndIf

EndWhile

end

Proc ShowMenu

    Parameters hdl&, menu&, mode%
    return External("USER32","SetMenu",hdl&,if(mode%, Menu&, 0))

ENDPROC

 
04/01/12  
 



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

6.460 Views

Untitledvor 0 min.
Gast.0815 vor 14 Tagen
Member 862464105/12/24
Frank Reibold11/25/22
RudiB.09/03/22
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (1x)
Julian Schmidt (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