Autor Beitrag
Brothy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: So 16.04.06 21:39 
hallo,
sorry erstmal vorweg ich hab die suche nicht benutzt, da ich nicht genau wusste was ich suchen soll.
So nun zu meiner frage:
ist es möglich in einer listbox herauszufinden, welche einträge gerade sichtbar sind?
(Damit meine ich, wenn in einer listbox mehr einträge drin sind als platz haben, öffnet sich ja die scrollbar an der seite, da möchte ich nun wissen ob man herausfinden kann welche gerade "angescrollt" [also sichtbar] sind, da ich es für eine rechtsklickmarkierung benötige)

Mfg Brothy
P.S.: Vielen dank für eure bemühungen
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 17.04.06 22:23 
Moin!

Willst du ungefähr sowas machen? ;)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.ListBox1ContextPopup(Sender: TObject; MousePos: TPoint;
  var Handled: Boolean);
begin
  // Item unter der Maus ermitteln und selektieren
  ListBox1.ItemIndex := ListBox1.ItemAtPos(MousePos,TRUE);;
end;

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Brothy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: Di 18.04.06 21:21 
hi,
danke ja das klingt gut ich probiers mal aus, ich habs mit ner for to do schleife gemacht nur da hab ich halt den salat!
Mfg Brothy
P.S.: Vielen Dank
Brothy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: Di 18.04.06 21:31 
hi,
//edit
sorry hab mein fehler gefunden ^^

Mfg Brothy