English
Source / code snippets

strain Menu System Menu

 
System Menu Menu strain from the XProfan-Help:
CompileMarkSeparation
-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-------------------------------------------------------------------class=s4 href='./../../Function-References/XProfan/end/'>End
 
11/08/05  
 



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

2.005 Views

Untitledvor 0 min.
Thomas Freier01/30/24
Jörg Sellmeyer05/31/18
E.T.12/25/14

Themeninformationen

this Topic has 1 subscriber:

iF (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