Page 1 of 1

Maximize Data as Dialog Maximized

PostPosted: Thu Dec 08, 2005 10:55 pm
by Ehab Samir Aziz
I need to expand the data fields when I Maximized the data in that routine :

function ClientsBrowse()

local oDlg, oDbf, oBrw

USE CUST
DATABASE oDbf

DEFINE DIALOG oDlg RESOURCE "Browse"

REDEFINE LISTBOX oBrw ;
FIELDS oDbf:cu_acct,oDbf:cu_Name,oDbf:cu_Addr,oDbf:cu_PHON , oDbf:cu_FAX , oDbf:cu_MAN , oDbf:cu_MOBI , oDbf:cu_APPR;
HEADERS "Account_no","Name","Address","Phone","Fax","Man","Mobile","Appreviation" ;
SIZES 250, 300, 300, 300, 300, 300, 300 ;
ID 110 OF oDlg


oBrw:bSkip = { | nRecs | oDbf:Skipper( nRecs ) }

ACTIVATE DIALOG oDlg CENTERED


return nil

PostPosted: Fri Dec 09, 2005 12:10 am
by Antonio Linares
Ehab,

Do you mean that you maximize the dialogbox and you want the browse to resize also ?

PostPosted: Fri Dec 09, 2005 5:47 pm
by James Bott
I don't know if this will work but try:

oDlg:oClient := oBrw

This is how you do it with a window.

Regards,
James