English
Source / code snippets

strain Menu system

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
System-Menü erweitern (1)
-Begin-----------------------------------------------------------------
-Header-Datei--------------------------------------------------------
 $H Windows.ph
-Konstantendeklaration-----------------------------------------------
Declare False&
False& = 0
Declare True&
True& = 1
-Variablendeklaration------------------------------------------------
Declare WindowName$
Declare Ok%
Declare hWin&, hSystemMenu&
Declare About#
Dim About#, 255
-Init----------------------------------------------------------------

Proc Init

    -CreateWindow------------------------------------------------------
    WindowStyle 280
    WindowTitle Menu Test
    Window 100, 100 - 200, 200
    hWin& = @FindWindow(Menu Test)
    -AddSystemMenu-----------------------------------------------------
    hSystemMenu& = ~GetSystemMenu(hWin&, False&)
    ~AppendMenu(hSystemMenu&, ~MFT_SEPARATOR, 0, 0)
    String About#, 0 = &About
    ~AppendMenu(hSystemMenu&, ~MFT_STRING, 1, About#)
    ~DrawMenuBar(hWin&)

EndProc

-Main----------------------------------------------------------------

Proc Main

    Clear Ok%

    WhileNot Ok%

        WaitInput

        If @MenuItem(-4000)

            Ok% = 1

        ElseIf @MenuItem(1)

            @MessageBox(System Menü Test, About, 64)

        EndIf

    EndWhile

EndProc

-Done----------------------------------------------------------------

Proc Done

    Dispose About#
    @DestroyWindow(hWin&)

EndProc

-Main----------------------------------------------------------------
Init
Main
Done
-End-------------------------------------------------------------------a class=s4 href='./../../function-references/XProfan/end/'>End
 
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

1.563 Views

Untitledvor 0 min.
Stephie08/14/11

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