English
Forum

Mehrfachbutton

 
Hello Mitstreiter,

as Beginner would like I a Mehtfachbutton using,d.h. at 1.activate action1,at 2.action2,at3.action3,at 4.again action1 etc.
goes such a thing with profane8?

About Help be I grateful
Uli
 
01/11/11  
 



Hi,

the behaviour can You a Merker How z.B. of/ one Variable achieve.

If Button pressed:

Merker=Merker+1

if merker=1
...
or merker=2
...
or merker=3
...
declare button&,merker&
cls
button&=createButton(%hWnd,"Test",10,10,100,100)

while 1

    waitInput

    if getFocus(button&)

        merker&=merker&+1

        if merker&=1

            print "akt1"

        elseif merker&=2

            print "akt"

        endif

    endif

wend


*ungetestet*
 
01/11/11  
 




Jörg
Sellmeyer
You can then with SetText the Button each time too a others Text miss out on, so that the users too white, which action it expects.
so can You then in the principle too your Program steer.
declare button&
cls
button&=createButton(%hWnd,"Aktion 1",10,10,100,100)

while 1

    waitInput

    if getFocus(button&)

        If GetText$(button&) = "Aktion 1"

            SetText button&,"Aktion 2"
            action1

        ElseIf GetText$(button&) = "Aktion 2"

            action2
            SetText button&,"Aktion 3"

        ElseIf GetText$(button&) = "Aktion 3"

            action3
            SetText button&,"Aktion 4"

        ElseIf GetText$(button&) = "Aktion 4"

            action4
            SetText button&,"Aktion 1"

        endif

    endif

wend

 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
01/11/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.275 Views

Untitledvor 0 min.
RudiB.03/22/20
macuto11/30/14
Ernst06/02/13
Juergen Baier04/10/12
More...

Themeninformationen

this Topic has 3 subscriber:

Jörg Sellmeyer (1x)
iF (1x)
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