Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 02.09.04 11:13 
Hallo,
weiss jemand wie ich abfragen kann ob der Scrollbalken benutzt wird oder nicht?

mfg
moloch
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 02.09.04 11:36 
Meinst du sowas wie "OnScrollbalkenMove" oder ob der Balken sichtbar ist?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 02.09.04 11:40 
ob er sichtbar ist.
also er wird ja erst sichtbar wenn man ihn braucht.und das möchte ich abfragen

mfg
moloch
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 02.09.04 11:46 
Zähl doch die Höhe/Breite deiner Zeilen/Spalten zusammen und vergleiche den Wert mit der Höhe/Breite deines Grids. Vergiss nicht, die paar Pixel für die Ränder abzuziehen.

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 02.09.04 11:52 
Ich nehme mal an, dass Dir die Funktion VisibleRowCount und VisibleColCount weiter hilft. Wenn die Scrollbars sichtbar sind, dürften die von RowCount und ColCount abweichen.
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 03.09.04 08:53 
hey,also das klappt alles nicht.
ich bin weiter auf der suche.
mfg
moloch
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Fr 03.09.04 08:56 
moloch hat folgendes geschrieben:
hey,also das klappt alles nicht.

So? Warum denn nicht?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Sa 04.09.04 19:42 
So, ich bin da eher zufällig drauf gestoßen, aber offensichtlich hatte ich das Problem in grauer Vorzeit auch schonmal. Mein Quellcode förderte folgendes zu Tage:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_VSCROLL) <> 0 then 
...
if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_HSCROLL) <> 0 then 
...

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 07.09.04 14:46 
also ich habs noch nicht probiert.aber trotzdem danke.
bis dann
mfg
moloch