10. April 200322 j Hi, so wie es aussieht, wird hier nicht mehr so viel mit Delphi programmiert. Oder man hat mit VB(A) viel mehr Probleme, als mit Delphi... :D Jdenfalls hab ich ma wieder ein Problem. Wie kann man rausfinden, wie breit ein Scrollbalken in einem DBGrid ist?
10. April 200322 j Du kannst die Dimensionen der Windows standard Scrollbars abfragen, ich denke nicht, das ein DBGrid andere verwendet... GetSystemMetrics(Index); wobei Index einer folgender Werte sein kann: SM_CXHSCROLL Width of arrow bitmap on horizontal scroll bar SM_CXHTHUMB Width of scroll box on horizontal scroll bar. In version 4.0 or later, this value retrieves the width a scroll bar that has a page size of zero. SM_CXVSCROLL Width of arrow bitmap on vertical scroll bar SM_CYHSCROLL Height of arrow bitmap on horizontal scroll bar SM_CYVSCROLL Height of arrow bitmap on vertical scroll bar SM_CYVTHUMB Height of scroll box on vertical scroll bar. In version 4.0 or later, this value retrieves the height of a scroll bar that has a page size of zero. zurückgeliefert wird ein Integer Wert.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.