FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse() Dialog size
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
xBrowse() Dialog size
Posted: Tue Mar 28, 2017 08:40 PM

I was looking at the xBrowse / xBrowser() function and was seeking a way to set the dialog size. By default it is pretty small, and looking at the source code, I don't see how I can pass a fixed size.

I will be creating a dynamic document using arrays, and it's perfect for displaying it, except the dialog is tiny. The source code keeps cutting the size of the width and height.

Is there a way to pass values in this function to set the size, or do I just need to create a different viewer using the class.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: xBrowse() Dialog size
Posted: Tue Mar 28, 2017 09:20 PM
Like this ?

Code (fw): Select all Collapse
XBROWSER aPics TITLE "DOWNLOADED IMAGES" COLUMNS 1,1 SETUP ( oBrw:cHeaders := { "FileName", "Image" }, ;
   oBrw:nRowHeight := 200, oBrw:aCols[ 2 ]:nWidth := 300, ;
   oBrw:aCols[ 2 ]:cDataType := 'F', oBrw:aCols[ 2 ]:nDataBmpAlign := AL_CENTER )

XBROWSER aPics TITLE "WEB IMAGES" SETUP ( oBrw:nRowHeight := 200, oBrw:aCols[ 1 ]:nWidth := 300, ;
   oBrw:aCols[ 1 ]:cDataType := 'F', oBrw:aCols[ 1 ]:nDataBmpAlign := AL_CENTER )


I had this info from Mr. Rao in this topic : http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33746
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: xBrowse() Dialog size
Posted: Tue Mar 28, 2017 09:44 PM

Unfortunately that will not work. nRowHeight is the size of the cell, not the dialog.

Think of this as a browse with many lines. I want to open the dialog in a larger mode than the default ( 1000 wide x 700 high ), but each row is the standard size. The user only sees 3 lines of data in the default ... and I want them to see far more ... there will likely be about 30 in the report.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse() Dialog size
Posted: Sat Apr 01, 2017 11:47 AM
Code (fw): Select all Collapse
function test

   local oDlg, aData := { { 1, "Sunday" }, { 2, "Monday" } }

   XBROWSER aData SETUP ( oDlg := oBrw:oWnd, oDlg:bStart := { || oDlg:Move( 0,0,1000,700 ), oDlg:Center() } )

return nil
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion