xBrowse() Dialog size

xBrowse() Dialog size

Postby TimStone » Tue Mar 28, 2017 8: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: xBrowse() Dialog size

Postby Marc Venken » Tue Mar 28, 2017 9:20 pm

Like this ?

Code: Select all  Expand view
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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1431
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: xBrowse() Dialog size

Postby TimStone » Tue Mar 28, 2017 9: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: xBrowse() Dialog size

Postby nageswaragunupudi » Sat Apr 01, 2017 11:47 am

Code: Select all  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 91 guests