Page 1 of 1

Scroll xBrowse

Posted: Mon Mar 10, 2025 12:53 pm
by oliveiros junior
Hello, good morning!

I would like to know if it is possible to increase the width of the vertical scroll bar in xBrowse and also its color.

Thank you in advance!

Oliveiros Junior

Re: Scroll xBrowse

Posted: Mon Mar 10, 2025 1:33 pm
by Antonio Linares
Prueba así:

MoveWindow( oBrw:oVScroll:hWnd, oBrw:nWidth - 30, 0, 30, oBrw:nHeight, .T. )

Re: Scroll xBrowse

Posted: Mon Mar 10, 2025 3:13 pm
by oliveiros junior
Olá Antônio,

Está dizendo que o método hwnd não é exportado.

Error description: Error BASE/1004 No exported method: HWND

Att.,

Junior

Re: Scroll xBrowse

Posted: Mon Mar 10, 2025 6:21 pm
by Antonio Linares
No se puede ya que la barra de scroll la dibuja Windows por el estilo WS_VSCROLL

Tendrias que implementar el dibujado propio de la barra de scroll y eso es bastante complicado ( WM_NCCALCSIZE y WM_NCPAINT )

Re: Scroll xBrowse

Posted: Mon Mar 10, 2025 6:29 pm
by oliveiros junior
Obrigado Antônio.

Re: Scroll xBrowse

Posted: Mon Mar 10, 2025 9:40 pm
by cnavarro
Search for GetSystemMetrics windows function