English
Source / code snippets

create Menüleiste

 

Source watts on the 15.07.2007 from the MMJ-Quellcodesammlung (Dietmar horn) in The Babyklappe on XProfan.Com stored:
Menüleiste create
executable ex Profan-Version 5.0
-----------------------------------------------
cover:    Menüleiste
Author:    Rolf cook - ROKO-SOFTWARE
e-mail:   webmaster@rokosoft.de
homepage: http://www.rokosoft.de
date:    10.01.2001
-----------------------------------------------
Statement:
----------
How becomes one Menu prepares?
How question I The individual spots ex?
---------------------------------------
Declare end%				Variable preparing
Window 10,10 - 500,300			How always Window create
Windowtitle Menüs create/evaluate	Window Title
here becomes The Menüleiste prepares:
the & means: the to the & characters coming character
becomes underlined and can then with the letters on
the keyboard the same effect and in example File öffnen . Run
Pop &File				integrally left Obereintrag File
AppendMenu 1,&öffnen		Untereintrag (File) öffnen
SEPARATOR				an Trennlinie
AppendMenu 2,&close		Untereintrag (File) close
AppendMenu 3,&End of program		End of program (File) End of program
Pop &Help				next entry groin: Help
SubPopup &Info			Untereintrag (Help) Info
AppendMenu 4,&Program		Untereintrag to that Untereintrag Info :-) Program
AppendMenu 5,&Author		Untereintrag to that Untereintrag Info :-) Author
EndSub

Whilenot end%				as long as Endevariable = 0

    waitinput				wait on mouse or Button
    here now The Auswertungen the items (integrally simply)

    IF @Menuitem(254)			exception 254 is the (c) characters

        becomes this klicked can one a
        Infobox create or so what.
        in the Interpreter comes but always yet
        first the Info to that Profaninterpreter
        cls				screen delete
        PRINT demonstration to that Menüprogramm	spending Text screen

    Elseif @Menuitem (1)			File öffnen chosen

        cls
        Print now would in example the Dateiwahldialog opened

    Elseif @Menuitem (2)			File close chosen

        cls
        Print here could one The actually File again close

    Elseif @Menuitem (3)			End of program chosen

        cls
        Print now would the Program exits
        Print then should in the Source stand
        Print let end%=1
        let end%=1			becomes the Hochkomma removes
        really End of program, there creep
        circumstance given is end%=1

    Elseif @Menuitem (4)			Help/Info/Program chosen

        cls
        Print this Program is to demonstration Menu virtual

    Elseif @Menuitem (5)			Help/Info/Author chosen

        cls
        Print (c) by Rolf cook - Roko-software 2001
        ENDIF					end the request
        Wend					back To Whilenot end% (To End of program)
 
07/16/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.614 Views

Untitledvor 0 min.
Thomas Freier01/30/24
Georg Teles08/20/19
Rolf02/01/18
rafl09/01/14
More...

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