|
You last visited: Today at 22:17
Advertisement
[AutoIT] ListBox
Discussion on [AutoIT] ListBox within the General Coding forum part of the Coders Den category.
01/15/2011, 22:06
|
#1
|
elite*gold: 0
Join Date: Apr 2010
Posts: 20
Received Thanks: 0
|
[AutoIT] ListBox
Guten Abend!
Mein Problem ist folgendes: Ich habe 2 Comboboxen. Wenn ich in einer Combobox 2x auswähle, soll ein vorgegebener String 2x in der Listbox erscheinen. jedoch ersetzt mein Programm diesen String immer wieder, d.h. ich kann den String immer nur 1x in die Liste einfügen. Wie funktioniert es, dass es auch 2 Mal und öfter geht?
MfG Giovanni04
Hier der Quelltext:
Quote:
Func _listeintrag()
$Combo1text = GUICtrlRead($Combo1)
Select
Case $Combo1text = 'q'
GUICtrlSetData($List1, 'q')
Case $Combo1text = 'b'
GUICtrlSetData($List1, 'b')
Case $Combo1text = 'c'
GUICtrlSetData($List1, 'c')
Case $Combo1text = 'd'
GUICtrlSetData($List1, 'd')
Case $Combo1text = 'e'
GUICtrlSetData($List1, 'e')
Case $Combo1text = 'f'
GUICtrlSetData($List1, 'f')
Case $Combo1text = 'g'
GUICtrlSetData($List1, 'g')
Case $Combo1text = 'h'
GUICtrlSetData($List1, 'h')
Case $Combo1text = 'i'
GUICtrlSetData($List1, 'i')
Case $Combo1text = 'j'
GUICtrlSetData($List1, 'j')
Case $Combo1text = 'k'
GUICtrlSetData($List1, 'k')
EndSelect
$Combo2text = GUICtrlRead($Combo2)
Select
Case $Combo2text = '2x'
$geb = _GUICtrlListBox_GetText($List1,0)
MsgBox(0,'',$geb)
GUICtrlSetData($List1, $geb)
Case $Combo2text = '3x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '4x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '5x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '6x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '7x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '8x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '9x'
GUICtrlSetData($List1, '?')
Case $Combo2text = '10x'
GUICtrlSetData($List1, '?')
EndSelect
EndFunc
|
Edit: Niemand kennt eine Lösung?
Edit2: Hat sich erledigt, hab die Strings jetzt mit _GUICtrlListBox_InsertString eingefügt
|
|
|
 |
Similar Threads
|
Form1 Scrollen?? oder alternativ mit Listbox...
12/24/2010 - AutoIt - 2 Replies
Guten Morgen,
Hab da mal ne frage und zwar,
wollte ich mein GUI Hauptfenster zum scrollen bringen, denn da solln viele label untereinander drauf, aber das fenster soll dabei kompakt bleiben, dachte mir eig. das is ganz simple einfach mit $WS_VSCROLL und das hat sich, aber das war ja mal zu früh gefreut^^.Wenn ich in Koda das fenster verlängere und ganz unten was einfüge und das fenster anschließent wier kürzer mache, bekomm ich ja auch rechts ne scrollbar, blöd das die nich einfach aufs...
|
[Frage]VB08 listbox
05/15/2010 - .NET Languages - 3 Replies
Hi,
wollte fragen, wie man das aktuell angewählte Item umändert sprich:
Listbox1.items = Metin2, WoW, 4 Story
jetzt will ich WoW in Runescape verändern ohne das es die 2te Position verlässt!
Wie mache ich das??
MfG
Bestshocker
|
[VB]Mehrer Fenster in Listbox
01/02/2010 - .NET Languages - 0 Replies
Howdi,
wollt mal fragen wie ich mehrere Fenster mit dem "fast" gleichen namen in eine Lisbox bekomme ?
Die Fenster sehen so aus
Sbot v1.51
Sbot v1.51
Ich würde diese fenster gerne in eine Listbox einlesen.
|
[help] c# listbox databinding not updating
07/29/2009 - CO2 Programming - 3 Replies
Hi guys,
I'm new to c#... my first time, and hopefully not he last. :D
Just having trouble with listbox data-binding atm. For reasons I don't know, when changes are made to the data which the listbox is bounded to, the changes are not reflected inside the listbox.
The following is some of the code i'm using.
Firstly the intialisation and the bounding of the data to the listbox.
|
[Request] Selected Item in listbox
11/22/2008 - CO2 Private Server - 6 Replies
Ok so i've been working on my own Admin panel for a LOTF source and been working on the disconnect from a listbox option.
foreach (DictionaryEntry DE in World.AllChars)
{
Character Charr = (Character)DE.Value;
if (Charr.MyClient.Online)
{
listBox1.SelectedItem = listBox1.SelectedItem;
Charr.MyClient.Drop();
return;
|
All times are GMT +1. The time now is 22:17.
|
|