Page 1 of 1

EXPLORERBAR ERROR ON DIALOG

PostPosted: Mon Jul 05, 2010 12:20 pm
by MdaSolution
I have on a dialo g 5 Panels
I not see the Vertical scroll bar I cannot scroll each panel

Image

on this application I use a dialog with style nor 4 and at right I use a normal xbrowse

Re: EXPLORERBAR ERROR ON DIALOG

PostPosted: Mon Jul 05, 2010 11:51 pm
by MdaSolution
ANY SOLUTION ?

Re: EXPLORERBAR ERROR ON DIALOG

PostPosted: Tue Jul 06, 2010 2:37 am
by Antonio Linares
Silvio,

These changes are required in Class TExplorerBar:

Image

Image

Re: EXPLORERBAR ERROR ON DIALOG

PostPosted: Tue Jul 06, 2010 9:25 am
by MdaSolution
Sorry Antonio,
I made your changes on class but it not run ok

Now I seeing a vertical scroll on the window after the xbrowse vertical scroll .. as you can see in this picture

Image

we want the vertical scrollbar where you can see the blue arrows

Re: EXPLORERBAR ERROR ON DIALOG

PostPosted: Tue Jul 06, 2010 10:33 am
by MdaSolution
perhaps i made some changes but it not run also

I add a data

DATA lVScroll

METHOD New( nTop, nLeft, nWidth, nHeight, oWnd,lVScroll )

...
::lVScroll := lVScroll

..

::oVScroll := TScrollBar():WinNew( ,,, .t., self )
::oVScroll:SetRange(0,100)

return Self


METHOD Paint() CLASS TExplorerBar
local nMinTop := int(::nHeight / 2)
local nMaxBottom := int(::nHeight / 2)
local aInfo := ::DispBegin(), n, hBmpPanel

...

If ::lVScroll

if ! Empty( ::aPanels )
....


if nMinTop < 0 .or. nMaxBottom > ::nHeight
::oVScroll:SetRange( 0, 10 )
else
::oVScroll:SetRange( 0, 0 )
endif


endif


Image

IT create a scroll bar but the moviment not run ok
Wich changes we must make also ?