English
Forum

ChoiceBox slept

 

Detlef
Tussing
Hello people

another Question to choicebox, if in the enclosed prog the one in the choicebox chosen have,offnet itself a 2. box. If I then again No dial ought to The 2.Box again vanish, How heist for the commands??

with DestroyWindow(Choicebox&) komm I do not moreover
CompileMarkSeparation
declare box2&,ende%,r$,n2%,text3&,box3&,von$
DEF GETSYSCOLOR(1) !USER32,GetSysColor
Def @FindWindowEx(4) !USER32,FindWindowExA
WINDOWSTYLE 31
WINDOW SUB(DIV(%MAXX,2),DIV(940,2)),SUB(DIV(%MAXY,2),DIV(500,2))-660,500
SETTRUECOLOR 1
CLS GETSYSCOLOR(1)15
SETDIALOGFONT 1
box2&=Create(choicebox,%Hwnd,0,520,250,50,500)
AddChoice(box2&,aus)
AddChoice(box2&,ein)
@sendmessage(Box2&,$14E,n2%,1,0)
SETFOCUS(%HWND)

WHILENOT ENDE%

    if %key = 255

    elseif GETFOCUS(box2&)Relais2

        r$=gettext$(box2&)

        If r$=ein

            licht

        endif

    ENDIF

WEND

proc licht

    Text3&=Createtext(%Hwnd,von:,180,330,90,20)
    box3&=Create(choicebox,%Hwnd,0,280,327,50,500)
    AddChoice(box3&,5)  bis
    AddChoice(box3&,6)
    AddChoice(box3&,7)
    AddChoice(box3&,8)
    @sendmessage(Box3&,$14E,von$,0,0)

endproc

 
Gruß Detlef Tussing
Windows XP, XProfan 10
05/08/07  
 




Rolf
Koch
mean You so?
CompileMarkSeparation
declare box2&,ende%,r$,n2%,text3&,box3&,von$
DEF GETSYSCOLOR(1) !USER32,GetSysColor
Def @FindWindowEx(4) !USER32,FindWindowExA
WINDOWSTYLE 31
WINDOW SUB(DIV(%MAXX,2),DIV(940,2)),SUB(DIV(%MAXY,2),DIV(500,2))-660,500
SETTRUECOLOR 1
CLS GETSYSCOLOR(1)15
SETDIALOGFONT 1
box2&=Create(choicebox,%Hwnd,0,520,250,50,500)
AddChoice(box2&,aus)
AddChoice(box2&,ein)
@sendmessage(Box2&,$14E,n2%,1,0)
Text3&=Createtext(%Hwnd,von:,180,330,90,20)
box3&=Create(choicebox,%Hwnd,0,280,327,50,500)
AddChoice(box3&,5) bis
AddChoice(box3&,6)
AddChoice(box3&,7)
AddChoice(box3&,8)
@sendmessage(Box3&,$14E,von$,0,0)
showwindow(text3&,0)
showwindow(box3&,0)
SETFOCUS(%HWND)

WHILENOT ENDE%

    if %key = 255

    elseif GETFOCUS(box2&)Relais2

        r$=gettext$(box2&)

        If r$=ein

            showwindow(text3&,1)
            showwindow(box3&,1)

        Elseif r$=aus

            showwindow(text3&,0)
            showwindow(box3&,0)

        endif

    ENDIF

WEND

 
05/08/07  
 




Detlef
Tussing


thanks Rolf this is it, I hab`s not yet red but ausprobiert
 
Gruß Detlef Tussing
Windows XP, XProfan 10
05/08/07  
 




Detlef
Tussing
DestroyWindow was well not so well

with showwindow GEHTS hervorragen

 
Gruß Detlef Tussing
Windows XP, XProfan 10
05/08/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

525 Views

Untitledvor 0 min.
H.Brill09/15/24
rquindt04/21/18
Ernst07/01/16
Rene196512/29/13
More...

Themeninformationen

this Topic has 2 subscriber:

Detlef Tussing (3x)
Rolf Koch (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