|
You last visited: Today at 09:49
Advertisement
GUI/koda .... Frage zu Tabelle/ListView
Discussion on GUI/koda .... Frage zu Tabelle/ListView within the AutoIt forum part of the Coders Den category.
10/18/2012, 15:17
|
#1
|
elite*gold: 0
Join Date: Feb 2010
Posts: 178
Received Thanks: 4
|
GUI/koda .... Frage zu Tabelle/ListView
Hi, ich mal wieder .... ich wollt ma fragen, ob es möglich ist eine exel tabelle in einen gui einzufügen?...oder ob es möglich ist in einem listview die liste alphabetisch zu ordnen o.O
dann wollte ich noch fragen, wie ich denn nun zb einen namen aus einem listview in verschiedene Tabellen grupppen
sgen wir ich hab eine tabelle mit 3 gruppen
Code:
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$listview = GUICtrlCreateListView ("Name|Alter|Adresse", 176, 16, 209, 257)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
und 3 inputboxen mit nem button
Code:
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 405, 294, 320, 318)
$listview = GUICtrlCreateListView ("Name|Alter|Adresse", 176, 16, 209, 257)
$NameInput = GUICtrlCreateInput ("", 16, 16, 137, 21)
$AlterInput = GUICtrlCreateInput ("", 16, 48, 137, 21)
$AdressesInput = GUICtrlCreateInput ("",16, 80, 137, 21)
$ADD = GUICtrlCreateButton("ADD", 16, 112, 145, 161)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlCreateListViewItem ($NameInput,$listview)
EndSwitch
WEnd
und wenn ich den button drück soll er den namen zur tabellen gruppe name hinzufügen, usw
und wie soll jetzt das
Case $ADD
aussehen?
also
Code:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $ADD
GUICtrlCreateListViewItem ($NameInput,$listview)
EndSwitch
WEnd
hab ich... doch wenn ich das mache kommt bei name nur ne 4 -.-?
warum....
wie muss der befehel seinund wenn ich das habe....wie ´schaffe ich das, dass der nächste zu Alter geht
??
ja ich weiß ein haufen fragen
doch ich hoffe ihr könnt mir helfen
hat ja bis jetzt hier immer gut geklappt :d
schonmal danke im vorraus....und an alle die VERSUCHEN mir zu helfen geht ein thanks :d
mfg mo
|
|
|
10/18/2012, 16:33
|
#2
|
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
|
Du musst GUICtrlRead hinzufügen:
PHP Code:
#include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 405, 294, 320, 318) $listview = GUICtrlCreateListView ("Name|Alter|Adresse", 176, 16, 209, 257) $NameInput = GUICtrlCreateInput ("", 16, 16, 137, 21) $AlterInput = GUICtrlCreateInput ("", 16, 48, 137, 21) $AdressesInput = GUICtrlCreateInput ("",16, 80, 137, 21) $ADD = GUICtrlCreateButton("ADD", 16, 112, 145, 161) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ADD GUICtrlCreateListViewItem (GUICtrlRead($NameInput),$listview) EndSwitch WEnd
|
|
|
10/18/2012, 17:03
|
#3
|
elite*gold: 0
Join Date: Feb 2010
Posts: 178
Received Thanks: 4
|
danke schonmal für deine antwort....doch was ist mit
Quote:
Originally Posted by mo.tennis
wie ´schaffe ich das, dass der nächste zu Alter geht?
|
|
|
|
10/18/2012, 17:22
|
#4
|
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
|
Quote:
Originally Posted by mo.tennis
danke schonmal für deine antwort....doch was ist mit
|
Code:
GUICtrlCreateListViewItem (GUICtrlRead($NameInput) & "|15|MusterStraße 5",$listview)
|
|
|
10/18/2012, 17:25
|
#5
|
elite*gold: 0
Join Date: Feb 2010
Posts: 178
Received Thanks: 4
|
danke werd ich ausprobieren
und was ist mit meinem ersten satz ....
nochmals danke für eure mühen .... :d.....das ist einfach das beste forum....hier wird einem immer geholfen :d
Edit: so ich versteh das noch nich so ganz...was bedeutet das &....und warum 15....kannste mir mal ein beispiel machen, dass er den text aus der inputbox $NameInput unter name legt den text aus $AlterInput unter Alter hinterlegt und den text aus $AdresseInput unter Adresse hinterlegt...danke
mfg mo
#push
keiner?
|
|
|
|
Similar Threads
|
ListView Tabelle ordnen
10/08/2011 - AutoIt - 6 Replies
ich hab bisher noch nie mit ListViews gearbeitet.
So sieht das ganze derweilen aus:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <File.au3>
#include <GUiListview.au3>
|
Tabelle mit Koda
05/20/2011 - AutoIt - 1 Replies
Hi,
ich wollte mal fragen ob jemand weiß wie/ob man so eine Tabelle mit Koda erstellen kann:
http://imageshack.us/photo/my-images/8/tabelleg.p ng/
|
Koda Frage
05/12/2010 - AutoIt - 2 Replies
Hi ich hab eine Frage zu Koda.
Ich hatte mir mal ein Tut angesehen, in dem man ein Hintergrundbild so einstellt, dass man weiterhin Buttons etc. bedienen kann, was sonst nicht ging. So... Der Code sah ungefähr so aus vom Pic:
$bgpic = GUICtrlCreatePic("C:\Users\User\Desktop\Autoi t\Pics\bgpic.jpg", 0, 0, 809, 529, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$Ws_Di sabled))
wenn ich jetzt versuche den text in Koda zu importen, kommt ein Fehler:
Koda is unable to open this form, parser...
|
Frage zu Koda!
02/28/2010 - AutoIt - 4 Replies
Hallo Guys
ich wollt mal wieder ein kleines Programm machen und wollte fragen, ob Koda auch solche Fenster mit einbeziehn kann:
http://www2.pic-upload.de/27.02.10/dbkfablbck7r.j pg
Wenn man halt auf die Datei klickt, die man möchte, solle der Pfad in der zugehörigen Inputbox rein.
Sag schonmal Danke im vorraus (::handsdown:
LG -Marks-
|
Koda Frage !
02/07/2010 - AutoIt - 10 Replies
Also ich will in mein Gui
ein Process anzeigen der dann einen HP Wert aus einem Spiel ausließt!
Und den Style will ich auch ändern
aber keine ahnung wie das geht !
|
All times are GMT +2. The time now is 09:49.
|
|