English
Forum

WAITINPUT and %KEY = 1 with Auswahlboxen

 

Stephan
Sonneborn
Hello together,
in the Help standing To WAITINPUT:

out of on Keyboard-Key-Pressings reacted WaitInput as well as WaitKey yet on following Events and equips %Key properly:
1 it watts one Sign in of/ one Listbox choosed or it watts one entry of/ one Selection chosen
 

Why reacted WAITINPUT not?
CompileMarkSeparation
CLS
VAR CB&=CREATE("CHOICEBOX", %HWND, 0,10,10,100,90)
VAR Ende% = 0
ADDSTRING(CB&,"Auswahl 1")
ADDSTRING(CB&,"Auswahl 2")
ADDSTRING(CB&,"Auswahl 3")
ADDSTRING(CB&,"Beenden")

WHILENOT Ende%

    WAITINPUT

    IF %KEY = 1

        IF GETTEXT$(CB&) = "Beenden"

            Ende% = 1

        ENDIF

    ENDIF

ENDWHILE

END
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/12/12  
 




Jörg
Sellmeyer
Tja - in the drop is %key not same 1. Why the so is, becomes you only well Roland say can.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/12/12  
 




RGH
the betroffene Window must whom Dialogstil having. (in the Normalfall using one Dialogelemente Yes in Dialogfenstern.)

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/12/12  
 




Detlef
Jagolski
Hello!

And so goes it without Dialogstil.
CompileMarkSeparation
 $H WINDOWS.PH
 $H MESSAGES.PH

SubClassProc

    If SubClassMessage(%hwnd, ~WM_COMMAND)

        Select &sLParam

            CaseOf CB&

            If HiWord(&sWParam) = ~CBN_SELCHANGE

                SetMenuItem 5000

            EndIf

            Set("WinProc",0)

        EndSelect

    EndIf

EndProc

CLS
VAR CB&=CREATE("CHOICEBOX", %HWND, 0,10,10,100,90)
VAR Ende% = 0
ADDSTRING(CB&,"Auswahl 1")
ADDSTRING(CB&,"Auswahl 2")
ADDSTRING(CB&,"Auswahl 3")
ADDSTRING(CB&,"Beenden")
SubClass %hwnd,1

WHILENOT Ende%

    WAITINPUT

    IF MenuItem(5000)

        IF GETTEXT$(CB&) = "Beenden"

            Ende% = 1

        ENDIF

    ENDIF

ENDWHILE

SubClass %hwnd,0
/../Function-References/XProfan/end/'>END
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
03/12/12  
 




Stephan
Sonneborn
RGH (12.03.12)

the betroffene Window must whom Dialogstil having. (in the Normalfall using one Dialogelemente Yes in Dialogfenstern.)

Greeting
Roland


Hello Roland,

I thought, I had the in the actual Program too made:
CompileMarkSeparation
WINDOWSTYLE  2 + 8+ 16 + 32 + 512
>

ABER:
I had time again overlooking, that it "Probleme" gives, if one as Parentcontrol a Groupbox angibt...
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/12/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.914 Views

Untitledvor 0 min.
E.T.02/13/25
Walter12/30/22
Joerg04/28/16
p.specht04/03/16
More...

Themeninformationen



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