English
Forum

Chociebox will not so How i will

 

liveFamilie
Hi,
have with Rokos Objektcreator something created. among other things is too a Chociebox thereby.
still if I these anklicke and "andere" auswähle should a Messagebox come "nicht in this Version" and thereafter again on "deutsch" jumping.
Tja The Messagebox comes, but the was is then already, nothing goes More
selection technical.
have plenty red in the Forum, manuals etc. but somehow find I the
suitable "Zauberspruch" not the me of of my Denkblockade erlöst.

therefore hope I now time on eure Help.

Greeting
Toni
CompileMarkSeparation
SetErrorLevel 0
'********************** HINWEISE ********************************
' CODE ERZEUGT MIT ROKO'S OBJECT CREATOR 4.7
' DATUM  04.08.2012    um  15:01 Uhr
' VERWENDETE PROFANVERSION IST 9.1-NT XPROFAN
' CODE ERSTELLT UNTER WINDOWS VISTA
' !!! Dieser Code wird von Roc immer neu erzeugt!!!
' !!! Erst bearbeiten, wenn alle Objekte erzeugt wurden !!!
' !!! Verändern Sie ggf. feste Pfade in variable Pfade
'********************** DATEN ***********************************
'>>>>> AB HIER KOPIEREN UND IN EIGENEN CODE EINBINDEN <<<<<<<<<<<<
'----- Programm Variabeln festlegen -----
'----- Programmverzeichnis festlegen (portable) -----
Declare Programm$
Programm$ = GetDir$("@")
'----- Programm ini-Pfad festlegen -----
Declare Progini$
Progini$ = Programm$+"\\Programm.ini"
SETTRUECOLOR 1

PROC DIALOG'---------------------------------------------------------------------------> Dialoganfang

    DECLARE DLG&, DIALOGENDE%
    DECLARE CHOICEBOX1&, Zeile$
    DECLARE BUTTON1&
    DECLARE BUTTON2&
    DECLARE BUTTON3&
    DECLARE BUTTON4&
    DECLARE BUTTON5&
    DLG&=CREATE("DIALOG",%HWND,"Programm",SUB(DIV(%MAXX,2),DIV(500,2)),SUB(DIV(%MAXY,2),DIV(420,2)),500,420)
    USEFONT "Ariel",13,0,0,0,0
    SETDIALOGFONT 1

    PROC DLG_REFRESH

        SETAUTOPAINT 2
        STARTPAINT DLG&
        CLS RGB(252,255,202)
        LoadSizedBmp Programm$+"\\Programm.BMP",0000,0000-0090,0400;0
        TextColor @RGB(15,15,31),-1
        UseFont "Ariel", 14, 0, 0, 0, 0
        Drawtext 127, 40, "Sprache / Language"
        ShowWindow (BUTTON1&,0)
        ShowWindow (BUTTON1&,1)
        ShowWindow (BUTTON2&,0)
        ShowWindow (BUTTON2&,1)
        ShowWindow (BUTTON3&,0)
        ShowWindow (BUTTON3&,1)
        ShowWindow (BUTTON4&,0)
        ShowWindow (BUTTON4&,1)
        ShowWindow (BUTTON5&,0)
        ShowWindow (BUTTON5&,1)
        ShowWindow (CHOICEBOX1&,0)
        ShowWindow (CHOICEBOX1&,1)
        EndPaint
        SETAUTOPAINT 0

    ENDPROC

    USEFONT "Ariel",12,0,0,0,0
    CHOICEBOX1& =@Control("ComboBox","",$50000003,0,0,0,0,DLG&,1001,%hinstance)
    BUTTON1& =@CREATE("BUTTON",DLG&,"Button oben",0197,0200,0171,0030)
    BUTTON2& =@CREATE("BUTTON",DLG&,"Button mitte",0197,0240,0171,0030)
    BUTTON3& =@CREATE("BUTTON",DLG&,"Button unten",0197,0280,0171,0030)
    BUTTON4& =@CREATE("BUTTON",DLG&,"Hilfe",0197,0320,0070,0030)
    BUTTON5& =@CREATE("BUTTON",DLG&,"Abbruch",0297,0320,0070,0030)
    AddChoice(CHOICEBOX1&,"deutsch / germany")
    AddChoice(CHOICEBOX1&,"englisch / english")
    AddChoice(CHOICEBOX1&,"andere ... / other ...")
    SetWindowPos CHOICEBox1& = 0127,0057-0200,0210
    @sendmessage(CHOICEBOX1&,$14E,0,0)
    SETFOCUS(DLG&)
    DLG_REFRESH
    LET DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT
        Declare SID%

        If equ(%KEY,2)

            LET DIALOGENDE%= 1

        ELSEIF %WMPAINT

            DLG_REFRESH

        ELSEIF GETFOCUS(BUTTON1&)'BUTTON

        ELSEIF GETFOCUS(BUTTON2&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON3&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON4&)'BUTTON Hilfe

            MessageBox("Programm Hilfe","Programm - Hilfe",64)

        ELSEIF GETFOCUS(BUTTON5&)'BUTTON Abbruch

            End

        ELSEIF GetText$(CHOICEBOX1&) = "deutsch / germany"'CHOICEBOX

            SID% = 1031
            Print SID%+_A1

        ELSEIF GetText$(CHOICEBOX1&) = "englisch / english"'CHOICEBOX

            SID% = 1033
            Print SID%+_A1

        ELSEIF GetText$(CHOICEBOX1&) = "andere ... / other ..."'CHOICEBOX

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm / Language",64)

        ENDIF

    WEND

    DESTROYWINDOW(DLG&)

ENDPROC'--------------------------------------------------------------------------------> Dialogende

SETAUTOPAINT 2
'>>>>> HIER KOPIERENDE FÜR EIGENEN CODEEINBAU <<<<<<<<<<<<<<<<<<<<
'Das folgende Hauptfenster ist nur zum Testen:
WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW sub(%maxx,300),10-280,80
CLS RGB(0,0,0)
Color 10,0
PRINT "Bitte aufs Systemmenükre
cken " DIALOG'dialog Call!
 
XProfan 9
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
08/23/12  
 




Dieter
Zornow
by me comes only a Error Message _A1 not declariert. Mach your code first time run.
 
XProfan X2
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/23/12  
 




Detlef
Jagolski
so ought to it weg.
CompileMarkSeparation
SetErrorLevel 0
'********************** HINWEISE ********************************
' CODE ERZEUGT MIT ROKO'S OBJECT CREATOR 4.7
' DATUM  04.08.2012    um  15:01 Uhr
' VERWENDETE PROFANVERSION IST 9.1-NT XPROFAN
' CODE ERSTELLT UNTER WINDOWS VISTA
' !!! Dieser Code wird von Roc immer neu erzeugt!!!
' !!! Erst bearbeiten, wenn alle Objekte erzeugt wurden !!!
' !!! Verändern Sie ggf. feste Pfade in variable Pfade
'********************** DATEN ***********************************
'>>>>> AB HIER KOPIEREN UND IN EIGENEN CODE EINBINDEN <<<<<<<<<<<<
'----- Programm Variabeln festlegen -----
'----- Programmverzeichnis festlegen (portable) -----
Declare Programm$
Programm$ = GetDir$("@")
'----- Programm ini-Pfad festlegen -----
Declare Progini$
Declare SID%
Progini$ = Programm$+"\\Programm.ini"
SETTRUECOLOR 1

PROC DIALOG'---------------------------------------------------------------------------> Dialoganfang

    DECLARE DLG&, DIALOGENDE%
    DECLARE CHOICEBOX1&, Zeile$
    DECLARE BUTTON1&
    DECLARE BUTTON2&
    DECLARE BUTTON3&
    DECLARE BUTTON4&
    DECLARE BUTTON5&
    DLG&=CREATE("DIALOG",%HWND,"Programm",SUB(DIV(%MAXX,2),DIV(500,2)),SUB(DIV(%MAXY,2),DIV(420,2)),500,420)
    USEFONT "Ariel",13,0,0,0,0
    SETDIALOGFONT 1

    PROC DLG_REFRESH

        SETAUTOPAINT 2
        STARTPAINT DLG&
        CLS RGB(252,255,202)
        LoadSizedBmp Programm$+"\\Programm.BMP",0000,0000-0090,0400;0
        TextColor @RGB(15,15,31),-1
        UseFont "Ariel", 14, 0, 0, 0, 0
        Drawtext 127, 40, "Sprache / Language"
        ShowWindow (BUTTON1&,0)
        ShowWindow (BUTTON1&,1)
        ShowWindow (BUTTON2&,0)
        ShowWindow (BUTTON2&,1)
        ShowWindow (BUTTON3&,0)
        ShowWindow (BUTTON3&,1)
        ShowWindow (BUTTON4&,0)
        ShowWindow (BUTTON4&,1)
        ShowWindow (BUTTON5&,0)
        ShowWindow (BUTTON5&,1)
        ShowWindow (CHOICEBOX1&,0)
        ShowWindow (CHOICEBOX1&,1)
        EndPaint
        SETAUTOPAINT 0

    ENDPROC

    USEFONT "Ariel",12,0,0,0,0
    CHOICEBOX1& =@Control("ComboBox","",$50000003,0,0,0,0,DLG&,1001,%hinstance)
    BUTTON1& =@CREATE("BUTTON",DLG&,"Button oben",0197,0200,0171,0030)
    BUTTON2& =@CREATE("BUTTON",DLG&,"Button mitte",0197,0240,0171,0030)
    BUTTON3& =@CREATE("BUTTON",DLG&,"Button unten",0197,0280,0171,0030)
    BUTTON4& =@CREATE("BUTTON",DLG&,"Hilfe",0197,0320,0070,0030)
    BUTTON5& =@CREATE("BUTTON",DLG&,"Abbruch",0297,0320,0070,0030)
    AddChoice(CHOICEBOX1&,"deutsch / germany")
    AddChoice(CHOICEBOX1&,"englisch / english")
    AddChoice(CHOICEBOX1&,"andere ... / other ...")
    SetWindowPos CHOICEBox1& = 0127,0057-0200,0210
    @sendmessage(CHOICEBOX1&,$14E,0,0)
    SETFOCUS(DLG&)
    DLG_REFRESH
    LET DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT

        If equ(%KEY,2)

            LET DIALOGENDE%= 1

        ELSEIF %WMPAINT

            DLG_REFRESH

        ELSEIF GETFOCUS(BUTTON1&)'BUTTON

        ELSEIF GETFOCUS(BUTTON2&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON3&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON4&)'BUTTON Hilfe

            MessageBox("Programm Hilfe","Programm - Hilfe",64)

        ELSEIF GETFOCUS(BUTTON5&)'BUTTON Abbruch

            End

        ELSEIF GetText$(CHOICEBOX1&) = "deutsch / germany"'CHOICEBOX

            SID% = 1031
            Print SID%, "_A1"

        ELSEIF GetText$(CHOICEBOX1&) = "englisch / english"'CHOICEBOX

            SID% = 1033
            Print SID%, "_A1"

        ELSEIF GetText$(CHOICEBOX1&) = "andere ... / other ..."'CHOICEBOX

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm / Language",64)
            SelectString(CHOICEBOX1&,-1,"deutsch / germany")

        ENDIF

    WEND

    DESTROYWINDOW(DLG&)

ENDPROC'--------------------------------------------------------------------------------> Dialogende

SETAUTOPAINT 2
'>>>>> HIER KOPIERENDE FÜR EIGENEN CODEEINBAU <<<<<<<<<<<<<<<<<<<<
'Das folgende Hauptfenster ist nur zum Testen:
WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW sub(%maxx,300),10-280,80
CLS RGB(0,0,0)
Color 10,0
PRINT "Bitte aufs Systemmenükr
icken " DIALOG'dialog Call!
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
08/23/12  
 




liveFamilie
Sorry Dieter,

by me runs this code so in XProfan 9 with LemonEd without Problems, therefore have I this too so tuned without moreover above to think.

thanks on Detlef the You this so far abgeändert have.

but my trouble exists unfortunately still.

Greeting
Toni
 
XProfan 9
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
08/24/12  
 




Detlef
Jagolski
try the once.
CompileMarkSeparation
' CODE ERZEUGT MIT ROKO'S OBJECT CREATOR 4.7
' DATUM  04.08.2012    um  15:01 Uhr
' VERWENDETE PROFANVERSION IST 9.1-NT XPROFAN
' CODE ERSTELLT UNTER WINDOWS VISTA
' !!! Dieser Code wird von Roc immer neu erzeugt!!!
' !!! Erst bearbeiten, wenn alle Objekte erzeugt wurden !!!
' !!! Verändern Sie ggf. feste Pfade in variable Pfade
'********************** DATEN ***********************************
'>>>>> AB HIER KOPIEREN UND IN EIGENEN CODE EINBINDEN <<<<<<<<<<<<
'----- Programm Variabeln festlegen -----
'----- Programmverzeichnis festlegen (portable) -----
Declare Programm$
Programm$ = GetDir$("@")
'----- Programm ini-Pfad festlegen -----
Declare Progini$
Declare SID%
Progini$ = Programm$+"\\Programm.ini"
SETTRUECOLOR 1

PROC DIALOG'---------------------------------------------------------------------------> Dialoganfang

    DECLARE DLG&, DIALOGENDE%
    DECLARE CHOICEBOX1&, Zeile$
    DECLARE BUTTON1&
    DECLARE BUTTON2&
    DECLARE BUTTON3&
    DECLARE BUTTON4&
    DECLARE BUTTON5&
    DLG&=CREATE("DIALOG",%HWND,"Programm",SUB(DIV(%MAXX,2),DIV(500,2)),SUB(DIV(%MAXY,2),DIV(420,2)),500,420)
    USEFONT "Ariel",13,0,0,0,0
    SETDIALOGFONT 1

    PROC DLG_REFRESH

        SETAUTOPAINT 2
        STARTPAINT DLG&
        CLS RGB(252,255,202)
        LoadSizedBmp Programm$+"\\Programm.BMP",0000,0000-0090,0400;0
        TextColor @RGB(15,15,31),-1
        UseFont "Ariel", 14, 0, 0, 0, 0
        Drawtext 127, 40, "Sprache / Language"
        ShowWindow (BUTTON1&,0)
        ShowWindow (BUTTON1&,1)
        ShowWindow (BUTTON2&,0)
        ShowWindow (BUTTON2&,1)
        ShowWindow (BUTTON3&,0)
        ShowWindow (BUTTON3&,1)
        ShowWindow (BUTTON4&,0)
        ShowWindow (BUTTON4&,1)
        ShowWindow (BUTTON5&,0)
        ShowWindow (BUTTON5&,1)
        ShowWindow (CHOICEBOX1&,0)
        ShowWindow (CHOICEBOX1&,1)
        EndPaint
        SETAUTOPAINT 0

    ENDPROC

    USEFONT "Ariel",12,0,0,0,0
    CHOICEBOX1& =@Control("ComboBox","",$50000003,0,0,0,0,DLG&,1001,%hinstance)
    BUTTON1& =@CREATE("BUTTON",DLG&,"Button oben",0197,0200,0171,0030)
    BUTTON2& =@CREATE("BUTTON",DLG&,"Button mitte",0197,0240,0171,0030)
    BUTTON3& =@CREATE("BUTTON",DLG&,"Button unten",0197,0280,0171,0030)
    BUTTON4& =@CREATE("BUTTON",DLG&,"Hilfe",0197,0320,0070,0030)
    BUTTON5& =@CREATE("BUTTON",DLG&,"Abbruch",0297,0320,0070,0030)
    AddChoice(CHOICEBOX1&,"deutsch / germany")
    AddChoice(CHOICEBOX1&,"englisch / english")
    AddChoice(CHOICEBOX1&,"andere ... / other ...")
    SetWindowPos CHOICEBox1& = 0127,0057-0200,0210
    @sendmessage(CHOICEBOX1&,$14E,0,0)
    SETFOCUS(DLG&)
    DLG_REFRESH
    LET DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT

        If equ(%KEY,2)

            LET DIALOGENDE%= 1

        ELSEIF %WMPAINT

            DLG_REFRESH

        ELSEIF GETFOCUS(BUTTON1&)'BUTTON

        ELSEIF GETFOCUS(BUTTON2&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON3&)'BUTTON

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm",64)

        ELSEIF GETFOCUS(BUTTON4&)'BUTTON Hilfe

            MessageBox("Programm Hilfe","Programm - Hilfe",64)

        ELSEIF GETFOCUS(BUTTON5&)'BUTTON Abbruch

            End

        ELSEIF GetText$(CHOICEBOX1&) = "deutsch / germany"'CHOICEBOX

            SID% = 1031
            Print SID%, "_A1"

        ELSEIF GetText$(CHOICEBOX1&) = "englisch / english"'CHOICEBOX

            SID% = 1033
            Print SID%, "_A1"

        ELSEIF GetText$(CHOICEBOX1&) = "andere ... / other ..."'CHOICEBOX

            MessageBox("Ist in dieser Version nicht vorgesehen.","Programm / Language",64)
            'SelectString(CHOICEBOX1&,-1,"deutsch / germany")
            SendMessage(CHOICEBOX1&,$014E,0,2)'CB_SETCURSEL

        ENDIF

    WEND

    DESTROYWINDOW(DLG&)

ENDPROC'--------------------------------------------------------------------------------> Dialogende

SETAUTOPAINT 2
'>>>>> HIER KOPIERENDE FÜR EIGENEN CODEEINBAU <<<<<<<<<<<<<<<<<<<<
'Das folgende Hauptfenster ist nur zum Testen:
WINDOWTITLE "DUMMY HAUPTFENSTER"
WINDOWSTYLE 63
WINDOW sub(%maxx,300),10-280,80
CLS RGB(0,0,0)
Color 10,0
PRINT "Bitte aufs Systemmenükre
cken " DIALOG'dialog Call!
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
08/24/12  
 




liveFamilie
Hello Detlef,

THANK YOU it works.
nevertheless have I a question moreover :

you have
CompileMarkSeparation
SendMessage(CHOICEBOX1&,$014E,0,2)'CB_SETCURSEL
>

eingefügt.
moreover supra have I already
CompileMarkSeparation
SendMessage(CHOICEBOX1&,$014E,0,0)'CB_SETCURSEL
>

drin.
where very lying because here the Difference ?
Schreib now Please not that you only The 0 in 2 changed have.

Toni
 
XProfan 9
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
08/24/12  
 



Schniep: [...]  -

to this Statement becomes lParam not at all mind -

thereafter ists alike whether 0 or 2 ...
 
08/24/12  
 




Detlef
Jagolski
very IF was To quick. You must wParam take.
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
08/24/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.879 Views

Untitledvor 0 min.
Wilfried05/28/16
GDL03/01/15
RICOSCH08/15/13
Wolfgang06/03/13
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