Page 1 of 1

Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Fri Feb 03, 2023 4:13 am
by unixkd
Hi all

Can I use the window handle of FASTREPORT preview in xbase dialog? to create a busy window like:

FUNCTION CreateBusyWindow(oPrg)
LOCAL GetList[0], GetOptions, oBusyDlg
@ 0,0 DCSAY 'Please wait...' SAYSIZE 0 FONT '20.Arial Bold'
@ 2,1 DCSAY 'Counting Pages:' SAYSIZE 25 FONT '13.Arial'
@ DCGUI_ROW, DCGUI_COL + 10 DCSAY '' SAYSIZE 10 FONT '16.Arial Bold' ;
COLOR GRA_CLR_BLUE OBJECT oPrg:oProgressStatic

DCGETOPTIONS NOTITLEBAR COLOR GRA_CLR_YELLOW
DCREAD GUI ;
FIT MODAL;
EXIT ;
PARENT DialogHandle("TfrxPreviewForm"); // @oBusyDlg ;
OWNER DialogHandle("TfrxPreviewForm");
OPTIONS GetOptions

RETURN nil //oBusyDlg

Thanks
Joe

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Sun Feb 05, 2023 10:41 pm
by Auge_Ohr
hi,

do you mean FASTREPORT and FRAX :?:

there is "FastReport" on Github
https://github.com/FastReports/FastReport

but that is for DotNet

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Mon Feb 06, 2023 1:42 am
by Tom
Joe wants to know wether he can use a Windows dialog handle to place XbParts on it or use it as a parent for other stuff from Xbase++. IMHO, this is not possible. You can't use a windows handle like the one you get with the :getHWND()-method on the Xbase++ language level.

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Mon Feb 06, 2023 8:27 am
by unixkd
Thanks Tom

You understood my question.

Joe

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Mon Feb 06, 2023 12:52 pm
by Auge_Ohr
hi,

you can get a Handle from DotNet DLL ...
but it does not mean that you can call any Function "in" DotNet DLL without iDispatch Interface

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Mon Feb 06, 2023 11:21 pm
by Tom
Maybe the other way is available, and you can place the FR-dialog(elements) on a Xbase++-dialog. I don't know Fastreport, but L&L and some other tools provide their controls and dialogs in a way you can use them on other dialogs (embed them).

Re: Can I use the window handle of FASTREPORT preview in xbase dialog?

Posted: Thu Feb 09, 2023 8:00 am
by unixkd
Hi Tom

Does the license of L&L expire at the end of a year ?

Joe