HFCL (Hmg Forum Component Library)

Source code related resources

Moderator: Rathinagiri

User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HFCL (Hmg Forum Component Library)

Post 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
With best regards,
Sudip
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HFCL (Hmg Forum Component Library)

Post by esgici »

Hi Sudip

Please look at MiniAgenda; used in it GridPrind with semioop syntax.

Otherwise please send me your project.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HFCL (Hmg Forum Component Library)

Post 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. :D

With best regards.

Sudip
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HFCL (Hmg Forum Component Library)

Post by Rathinagiri »

Sudip, Can you please send a small sample project?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HFCL (Hmg Forum Component Library)

Post 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
With best regards,
Sudip
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HFCL (Hmg Forum Component Library)

Post 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
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HFCL (Hmg Forum Component Library)

Post by Rathinagiri »

Thank you and I would do that. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HFCL (Hmg Forum Component Library)

Post 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
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HFCL (Hmg Forum Component Library)

Post by sudip »

Hello Esgici,
esgici wrote: 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.
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
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HFCL (Hmg Forum Component Library)

Post by Rathinagiri »

Here is a new bug fixed, enhanced version of HFCL 0.92a. (2009.06.17)
hfcl.0.92a.zip
(38.51 KiB) Downloaded 550 times
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".
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply