Autor Beitrag
napsterforever
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Do 02.07.09 00:03 
hi,
wie kann ich in einem listview den horizontalen scrollbalken entfernen, so dass er nicht angezeigt wird?!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 02.07.09 00:39 
Eine schnelle Suche in der MSDN Dokumentation brachte ShowScrollBar zu Tage:
ausblenden Delphi-Quelltext
1:
  ShowScrollBar(ListView1.Handle, SB_HORZ, False);					
Das muss dann nur noch in OnPaint oder so.

// EDIT:
Bzw. hier ne fertige Lösung, wo das über die WndProc gemacht wird:
www.swissdelphicente.../showcode.php?id=586
napsterforever Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Do 02.07.09 01:18 
ersteres funktioniert nicht, er zeigt sie trotzdem an
und letzteres gibt böse grafikfehler!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 02.07.09 10:06 
Also die Zeile an sich funktioniert bei mir, die Scrollleiste erscheint halt nur wieder beim Neuzeichnen.

Den verlinkten Code hatte ich nicht ausprobiert, werde ich mal machen...
// EDIT:
Das kann ich nicht reproduzieren, der Code funktioniert bei mir absolut problemlos. :gruebel:
Mit welcher Delphiversion und welchem Betriebssystem hast du das getestet?
napsterforever Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Do 02.07.09 11:18 
delphi 7 Personal
Vista
alphacontrols 5
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 02.07.09 11:22 
Ja, wenn du Skinningkomponenten benutzt... hättest du ja gleich sagen können... :roll:

Ich habe noch nie welche benutzt außer meine Fortführung von XStyleForm zum Skinnen des Randes von Formularen. Keine Ahnung wie man das damit macht. :nixweiss: