Page 9 of 11
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 2:47 am
by sudip
esgici wrote:
Does your main.prg include #include "hfcl.ch" statement ?
Yes,
Code: Select all
/*
* MiniGUI Grid Demo
* (c) 2005 Roberto Lopez
*/
#include "minigui.ch"
#include "hfcl.ch"
#define NTrim( n ) LTrim( TRAN( n,"999,999,999,999,999,999,999.99" ) )
Hfcl.ch contains
Code: Select all
#include "combosearchbox.ch"
#include "gridprint.ch"
Gridprint.ch contains
Code: Select all
#xcommand PRINT GRID <cGridName> ;
OF <cParentName> ;
[ FONT <cFontName> ] ;
[ SIZE <nFontSize> ] ;
[ ORIENTATION <cOrientation> ] ;
[ HEADERS <aHeaders> ] ;
[ <showwindow : SHOWWINDOW> ] ;
[ MERGEHEADERS <aMergeHeaders> ] ;
[ COLUMNSUM <aColumnSum> ] ;
=> ;
_GridPrint(<"cGridName">,<"cParentName">,<nFontSize>,<cOrientation>,<aHeaders>,<cFontName>,<.showwindow.>,<aMergeHeaders>,<aColumnSum>)
i_UsrSOOP.ch contains
Code: Select all
#xcommand DECLARE CUSTOM COMPONENTS <Window> ;
=>;
_dummy() ;;
#define SOOP_MYBUTTON ;;
#xtranslate <Window> . \<Control\> . Print ( \<a1\> ) => Domethod ( <"Window">, \<"Control"\> , "Print", \<a1\> ) ;;
#undef SOOP_MYBUTTON ;;
There must be something which I missed
Actually, I want to use GridPrint in a project.
If I don't use semi-oop command, will the problem be solved?
TIA.
With best regards.
Sudip
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 3:03 am
by esgici
Hi Sudip
Please look at MiniAgenda; used in it GridPrind with semioop syntax.
Otherwise please send me your project.
Regards
--
Esgici
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 4:31 am
by sudip
esgici wrote:
Please look at MiniAgenda; used in it GridPrind with semioop syntax.
Otherwise please send me your project.
It runs Ok, while semi-oop syntax is disabled
Code: Select all
DEFINE BUTTON BUTTON_1
ROW 340
COL 10
CAPTION "Print"
;// action form_1.grid_1.print({"Header1","Header2"})
action doprint()
// ACTION _GridPrint("Grid_1","Form_1")
END BUTTON
Where can I find MiniAgenda?
Regarding project, I want to use GridPrint for MyExpense project, which I published in this forum. GridPrint will be best suited for this project. I have a plan to publish it with with GridPrint today. In that case I have to use general syntax of GridPrint.
Thank you very much for helping me in the process of (re)-gaining self-confidence.
With best regards.
Sudip
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 7:01 am
by Rathinagiri
Sudip, Can you please send a small sample project?
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 9:26 am
by sudip
Hello Rathi, Esgici,
rathinagiri wrote:Sudip, Can you please send a small sample project?
I just uploaded a small project with GridPrint in My Projects section. I added printing option into MyExpense project with GridPrint. But I can't use semi-oop syntax.
Here is it
download/file.php?id=241
TIA.
With best regards.
Sudip
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 10:45 am
by sudip
Hi Rathi, Esgici,
My previous post's link downloads Setup file.
Please download source code for MyExpense from
download/file.php?id=240
With best regards.
Sudip
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 10:58 am
by Rathinagiri
Thank you and I would do that.
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 5:05 pm
by esgici
sudip wrote:
Where can I find MiniAgenda?
Top of topic :
http://hmgforum.com/viewtopic.php?f=9&t=447#p3106
File to download :
http://hmgforum.com/download/file.php?id=167
BTW, this sample include also incremental search in grid.
Regards
--
Esgici
Re: HFCL (Hmg Forum Component Library)
Posted: Fri Jun 12, 2009 7:13 pm
by sudip
Hello Esgici,
I downloaded it and compiled it. It is an excellent piece of software. I can learn many things from it. Again plan to use these concepts in my little project.
I missed this thread. But better late than never. Now I get it.
Thanks a lot!!!
With best regards.
Sudip
Re: HFCL (Hmg Forum Component Library)
Posted: Wed Jun 17, 2009 9:04 am
by Rathinagiri
Here is a new bug fixed, enhanced version of HFCL 0.92a. (2009.06.17)
Change Log:
GridPrint
1. Fixed: Show window command error
2. Fixed: When columns are summed up, column width is not calculated according to the total. Now, total is within the column width.
3. Changed: When column sum is used, number mask passed on is used for the whole column to be printed to make the column look uniform.
4. New: "Reset Form" button is added to reset the report configuration saved in the config file "reports.cfg".