Report Preview page Panel FWH 1412

Re: Report Preview page Panel FWH 1412

Postby Silvio.Falconi » Mon Jan 12, 2015 8:28 am

Another idea :

DATA oMenuListPanel

from 688 line of METHOD BuildMenu()

SEPARATOR

MENUITEM ::oMenuListPanel PROMPT FWString( "&Show listpanel" ) ;
ACTION (IIF(::lListViewHide=.F.,.T.,.F.)) ;
MESSAGE FWString( "Show List panel" )

::oMenuListPanel:bWhen = {|| ::lListViewHide= .f. }



why not run ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: Report Preview page Panel FWH 1412

Postby nageswaragunupudi » Mon Jan 12, 2015 2:32 pm

Try this
Code: Select all  Expand view
function ReportExtend( oPreview, oBar )

   DEFINE BUTTON OF oBar ;
      RESOURCE 'SAVE' ;  // from our resource or bitmap file
      TOOLTIP 'Show the Panel' ;
      ACTION ( oPreview:oLvw:nWidth := If( oPreview:oLvw:nWidth == 0, 145, 0 ) )

return nil
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Report Preview page Panel FWH 1412

Postby nageswaragunupudi » Mon Jan 12, 2015 4:27 pm

IMPORTANT: Please note:

I have been testing rpreview with the global setting TPreview():lListViewHide := .T.

When this data is set to .T., run-time errors occur during toggling Zoom/Unzoom and SinglePage/TwoPages.
We are fixing the problem for the next release.

Till then, I advise you to implement these fixes in the rpreview.prg.

Please search for ":blDblClick". You will find this in two places. You will notice that the last line of the codeblock in these two cases like this:
Code: Select all  Expand view
If( ::lZoom, ::oLvw:Hide(), ::oLvw:Show() )

Substitute this part with:
Code: Select all  Expand view
If ( ::lListViewHide, nil, If( ::lZoom, ::oLvw:Hide(), ::oLvw:Show() ) )

Please make sure that you made this substitution at two places.

Now go to METHOD TwoPages( lMenu ).
In this method locate these two lines:
Code: Select all  Expand view
     ::oLvw:Hide()

   else
 

Substitute with:
Code: Select all  Expand view
     if ! ::lListViewHide
         ::oLvw:Hide()
      endif
   else
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: W3C [Validator] and 76 guests

cron