English
Forum

COMBOBOX will not !

 

Alfred
Wagner
Hello people

Have the following trouble

first the code
CompileMarkSeparation
!
 $P+
SetErrorLevel 0
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
DECLARE UBox%,SP&,Zeile%,Zeile$

PROC SP_ONCLICK Hier sollte der ausgewählte String geschrieben werden

    GETMESSAGE

    If (UBox%,$14E,0,0)

        Print "Auswahlbox1:"

    Endif

    If (UBox%,$14E,0,1)

        Print "Auswahlbox2:"

    Endif

ENDPROC

WINDOWSTYLE 63
WINDOWTITLE "Neues Fenster"
WINDOW 22,20-640,500
SETTRUECOLOR 1
DECLARE ENDE%
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
UBox%=Control("COMBOBOX","",$54010243,180,288,180,120,%HWND,0,%hinstance)
clearlist
Addstring "(keines)"
Addstring "Kleines Speicherabbild (64kb)"
Addstring "Kernelspeicherabbild"
Addstring "Vollständiges Speicherabbild"
@movelisttoChoice(UBox%)

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="0"

    @sendmessage(UBox%,$14E,0,0)            1. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="3"

    @sendmessage(UBox%,$14E,1,0)            2. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="2"

    @sendmessage(UBox%,$14E,2,0)            3. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="1"

    @sendmessage(UBox%,$14E,3,0)            4. Zeile anzeigen

Endif

SP& = @Create("Button",%HWND,Speichern,150,50,90,22)
SETFOCUS(%HWND)

WHILENOT ENDE%

    WAITINPUT

    If @EQU(%KEY,2)

        LET ENDE%= 1

    ELSEIF @EQU(%KEY,4)

    elseif @getfocus(UBox%)

        UBox_ONCLICK
        Let Zeile% = @GetCursel(UBox%)
        Let Zeile$ = @GetText$(UBox%)
        @GetCurSel(0)
        Print "Auswahlbox1:"
        @GetCurSel(1)
        Print "Auswahlbox2:"

    elseif @getfocus(SP&)

        SP_ONCLICK

    ENDIF

WEND


the reading the values skin there , but unfortunately can I whom selected String the combobox not The registry write.

white someone council ?

Regards
Alfred with family
 
WinXP-Home ,XProfan10

Alfreds ... Freeware :  [...] 
09/30/06  
 



Hello Alfred...

so?
CompileMarkSeparation
 $P+
DEF @GetDlgCtrlID(1) !"USER32","GetDlgCtrlID"
DEF @ButtonClicked(1) @GetDlgCtrlID(@&(1))=-%MENUITEM
SetErrorLevel 0
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
DECLARE UBox%,SP&,Cur_SEL& ,Zeile%,Zeile$

PROC SP_ONCLICK Hier sollte der ausgewählte String geschrieben werden

    LEt Cur_SEL&=@Sendmessage(UBox%,$147,0,0)

    If Cur_SEL&=0

        Print "Auswahlbox1:"

    ElseIf Cur_SEL&=1

        Print "Auswahlbox2:"

    ElseIf Cur_SEL&=2

        Print "Auswahlbox3:"

    ElseIf Cur_SEL&=3

        Print "Auswahlbox4:"

    Endif

ENDPROC

WINDOWSTYLE 63
WINDOWTITLE "Neues Fenster"
WINDOW 22,20-640,500
SETTRUECOLOR 1
DECLARE ENDE%
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
UBox%=Control("COMBOBOX","",$54010243,180,288,180,120,%HWND,0,%hinstance)
clearlist
Addstring "(keines)"
Addstring "Kleines Speicherabbild (64kb)"
Addstring "Kernelspeicherabbild"
Addstring "Vollständiges Speicherabbild"
@movelisttoChoice(UBox%)

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="0"

    @sendmessage(UBox%,$14E,0,0)  1. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="3"

    @sendmessage(UBox%,$14E,1,0)  2. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="2"

    @sendmessage(UBox%,$14E,2,0)  3. Zeile anzeigen

Endif

If ReadIni$("Hkey_DW_2", "SYSTEMCurrentControlSetControlCrashControl","CrashDumpEnabled")="1"

    @sendmessage(UBox%,$14E,3,0)  4. Zeile anzeigen

Endif

SP& = @Create("Button",%HWND,Speichern,150,50,90,22)
SETFOCUS(%HWND)

WHILENOT ENDE%

    WAITINPUT

    If @EQU(%KEY,2)

        LET ENDE%= 1

    ELSEIF @EQU(%KEY,4)

    elseif @getfocus(UBox%)

        UBox_ONCLICK
        Let Zeile% = @GetCursel(UBox%)
        Let Zeile$ = @GetText$(UBox%)
        @GetCurSel(0)
        Print "Auswahlbox1:"
        @GetCurSel(1)
        Print "Auswahlbox2:"

    elseif @ButtonClicked(SP&)

        Setmenuitem 0
        SP_ONCLICK

    ENDIF

WEND


sees interestingly from,. what have you got to?

Greeting

Andreas
 
09/30/06  
 




Alfred
Wagner
Hello andreas

thanks for hint (functions)

i want only integrally simply whom RegWert through of/ one COMBOBOX
change

mfg
Alfred with family
 
WinXP-Home ,XProfan10

Alfreds ... Freeware :  [...] 
09/30/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

757 Views

Untitledvor 0 min.
H.Brill09/01/21
Peter Max Müller11/13/17
rquindt01/29/17
Juergen Baier11/27/11

Themeninformationen

this Topic has 2 subscriber:

Alfred Wagner (2x)
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