hide scrollbar

hide scrollbar

Postby Otto » Sun Nov 04, 2012 8:26 am

To all,
can someone please show me how to hide a scrollbar on a window.
I tried oWnd:oVScroll:hide() with no success.
Thanks in advance
Otto



Code: Select all  Expand view
#include "fivewin.ch"

function main()

   local oWnd

      DEFINE WINDOW oWnd ;
            FROM 5, 5 ;
              TO 24, 64 ;
           TITLE "oWnd" ;
         VSCROLL ;
         HSCROLL
     
    @ 10,10 ;
      BUTTON "hide scrollbar" ;
        SIZE 100, 20 ;
      ACTION oWnd:oVScroll:hide() ;
          OF oWnd

 

   ACTIVATE WINDOW oWnd

return nil
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: hide scrollbar

Postby Enrico Maria Giordano » Sun Nov 04, 2012 2:22 pm

This won't hide the scrollbar but disables it:

Code: Select all  Expand view
oWnd:oVScroll:SetRange( 0, 0 )


I don't know how to hide it, sorry.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hide scrollbar

Postby Otto » Sun Nov 04, 2012 4:18 pm

Hello Enrico,
thank you very much.
I get the effect to protect from scrolling.
But maybe there is a way to hide the scrollbars.
Best regards,
Otto
PS: Enrico I am listening right now this: http://www.youtube.com/watch?v=1Yu9FA0rbyE
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: hide scrollbar

Postby Enrico Maria Giordano » Sun Nov 04, 2012 4:21 pm

Otto wrote:PS: Enrico I am listening right now this: http://www.youtube.com/watch?v=1Yu9FA0rbyE


:-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hide scrollbar

Postby Otto » Mon Nov 05, 2012 9:47 am

Hello Antonio,
For my Metro inspired style I try to emulate a kind of charm bar but as you can see the scrollbar does not look professional.
Enrico’s solution works to protect using the scrollbar but optically this don’t help.
What do you suggest?
Best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: hide scrollbar

Postby Antonio Linares » Mon Feb 04, 2013 8:57 pm

Otto,

We can not modify the complete paint of the Windows standard scrollbar, so we have to implement ours.

In Class TMetroPanel Method Paint() a Metro styled scrollbar is painted so basically you could use it to implement yours :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hide scrollbar

Postby Otto » Mon Feb 04, 2013 10:20 pm

Hello Antonio,
I would like to hide the scrollbar of the main window.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: hide scrollbar

Postby Antonio Linares » Mon Feb 04, 2013 11:58 pm

Otto,

Simply don't use the VSCROLL clause when you DEFINE the WINDOW.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hide scrollbar

Postby Otto » Tue Feb 05, 2013 6:59 am

Hello Antonio,
I need the scrollbar. But when the menu opens the scrollbar should hide.
Maybe you know a solution.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests