PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19/WD20] vertical scrollbar in scheduler control ?
[WD19/WD20] vertical scrollbar in scheduler control ?
Iniciado por guest, 01,oct. 2015 11:45 - 1 respuesta
Publicado el 01,octubre 2015 - 11:45
Hi,

is there a way to know that a vertical scrollbar is visible or not in a scheduler control ?
I cannot set the vertical scrollbar to Always-visible for a scheduler control. But to correct align a number of controls with the days of the scheduler control I have to know if the vertical scrollbar is visible or not.

An alternative would be setting the scrollbar to Always-visible, but as far as I know there is no possibility such a setting in the editor or via a property.
Publicado el 06,octubre 2015 - 11:14
PCSoft has send me a work around. I've made the following global procedure with the supplied code:

PROCEDURE gpIsVerticalScrollbarVisible(psControlName is string) // Important : this code uses Windows API and is meant for 32 bits. Note that the Free Technical Support // cannot help you regarding the subject of Windows API. You may get some help from other WinDev users // if you post this request on the WinDev forum. // liRetourFonction is system int hWnd is system int = Handle(psControlName) GWL_STYLE is system int = -16 liRetourFonction=API("USER32","GetWindowLongA",hWnd,GWL_STYLE) WS_VSCROLL is system int = 2097152 RESULT BinaryAND(liRetourFonction,WS_VSCROLL) // if not nul => the scrollbar is visible