Autor Beitrag
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 01.02.03 15:45 
Hallo,
ich habe auf meiner ListView, 6 Items, wie kann ich machen das beim doppelklick von einen Item ein Form angezeigt wird. Jedoch muss bei jeden Item ein anderes Fenster angezeigt werden!
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Sa 01.02.03 15:49 
Hallo,
im onDblClick-Event der Listview machst Du sowas, wie das folgende.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
  if not assigend(Listview.ItemFocused) then exit;
  
  case ListView.ItemIndex of
  0 : mache fenster 1 auf
  ..
  5 : mache fenster 6 auf
  end {case}


Gruß
KEn
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 01.02.03 15:57 
DANKE, funktionert PRIMA! :dance: :dance2:
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 01.02.03 16:01 
Und wie binde ich jetzt 2 Funktionen ein, z.B. Fenster öffnen und anschließend close!
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Sa 01.02.03 17:11 
hallo,

im case machst du was wie
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
case... of

0: begin
       mache fenster auf;
       mache fenster zu;// aber achtung, geht dann sofort zu, und ist nicht sichtbar 
    end;
...
end{case}
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 01.02.03 18:12 
Nochmal DANKE