FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hide scrollbar
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
hide scrollbar
Posted: Sun Nov 04, 2012 08:26 AM
To all,
can someone please show me how to hide a scrollbar on a window.
I tried oWnd:hide() with no success.
Thanks in advance
Otto



Code (fw): Select all Collapse
#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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hide scrollbar
Posted: Sun Nov 04, 2012 02:22 PM
This won't hide the scrollbar but disables it:

Code (fw): Select all Collapse
oWnd:oVScroll:SetRange( 0, 0 )


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

EMG
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: hide scrollbar
Posted: Sun Nov 04, 2012 04: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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hide scrollbar
Posted: Sun Nov 04, 2012 04:21 PM
Otto wrote:PS: Enrico I am listening right now this: http://www.youtube.com/watch?v=1Yu9FA0rbyE


:-)

EMG
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: hide scrollbar
Posted: Mon Nov 05, 2012 09: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hide scrollbar
Posted: Mon Feb 04, 2013 08: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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: hide scrollbar
Posted: Mon Feb 04, 2013 10:20 PM

Hello Antonio,
I would like to hide the scrollbar of the main window.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hide scrollbar
Posted: 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: hide scrollbar
Posted: Tue Feb 05, 2013 06: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

Continue the discussion