Welcome to the Project Developers' Table

Moderator: Rathinagiri

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

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

I can download this. Does anybody have problems in downloading?

In that case, kindly download from here.

rcc.zip
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

rathinagiri wrote:I can download this. Does anybody have problems in downloading?

In that case, kindly download from here.

rcc.zip
Thanks Rathinagiri, with this link is ok.
Regards/Saludos, Carlos (bcd12a)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Today I have committed part of my successful work on VirtualGrid. As for now, Grid and VirtualGrid are same. Now, I have to move on to edit-in-place of virtual grids. Once it is over, we don't require a separate virtual grid control. A simple grid can handle millions of rows easily. :)

Help needed: Kindly go through the "METHOD VALUE" for suggesting a better method to find out the rows/cells selected in case multiple selection is allowed. Now it is done with a dirty round about.

Also please check and report bugs, since I am afraid there will be. :)

Code: Select all

2011-03-02 21:15 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  * source/grid.prg
    * Some fixes 
  * source/virtualgrid.prg
    + Added many properties, methods to virtual grid such as item, cell, value, additem, deleteitem, addcolumn, deletecolumn ... See samples at /samples/virtualgrid/demo_3.prg
  * samples/virtualgrid/demo_3.prg
  * hmg.hbp
    * Changed by Maurizio for compatible to hbIDE users (Thanks Maurizio)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

After a long struggle, I could extend the in-place edit feature for virtualgrid also. Now I am working on set navigation extended. After that, I will again come back to virtualgrid to combine Grid, VirtualGrid and Browse controls into one and clean the code for optimization.

Please somebody help me in testing the code and suggest corrections?

Code: Select all

2011-03-08 12:55 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  * source/virtualgrid.prg
    + Added edit-in-place feature with inputmask (columncontrols, columnwhen, columnvalid etc.,)
  * samples/virtualgrid/demo_3.prg
    * To show edit-in-place feature.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

rathinagiri wrote:After a long struggle, I could extend the in-place edit feature for virtualgrid also. Now I am working on set navigation extended. After that, I will again come back to virtualgrid to combine Grid, VirtualGrid and Browse controls into one and clean the code for optimization.

Please somebody help me in testing the code and suggest corrections?
Hi Rathinagiri
You are making a great work

There is a strange behaviour with multiselect,
I've made this test.
1. comment OnDBLClick MsgInfo("Double Click event!") just to make easier the test
2. double click on col 2 row 1 to edit
3. click on col 2 row 10 (while editing 2,1)
then 10 rows are multiselected
4. toggle multiselect to .T. from menu and repeat steps 1 to 3 and then is ok

another
toggling multiselect value affect checkbox col
when is multiselect value .F. show the checkbox but when is .T. only show chars Y N
Regards/Saludos, Carlos (bcd12a)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thanks a lot for your reporting. I will check ASAP.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

I checked and hereby confirm the bug. Thanks for reporting. I will clear them soon.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

Hi everybody,
I'm back to say that there have been some changes in hbQt and that hmg-4 code must be changed a bit.

Now, except for really few cases still to be soved, everything is passed as Object.

All <QClass>FromPointer calls have been removed.

Code like this:
METHOD DoKeyBoardEvents( e ) CLASS GRID
LOCAL oKeyEvent := QKeyEventFromPointer( e )
LOCAL nKey := oKeyEvent:key()

should be changed to:
METHOD DoKeyBoardEvents( oKeyEvent ) CLASS GRID
LOCAL nKey := oKeyEvent:key()
LOCAL nModifiers := oKeyEvent:modifiers()



Code like this:
METHOD OnSave( pWidget ) CLASS BROWSE
LOCAL cData := QLineEditFromPointer( pWidget ):text()

should be changed to:
METHOD OnSave( oWidget ) CLASS BROWSE
LOCAL cData := oWidget:text()

Changes are just a sample, just to say the kind of changes needed.

This is effective from harbour revision 16444.

When the changes in hbQt will settle down (no bugs) I will be back to hmg4
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thanks a LOT for your update. It is great.

First I want to unite Browse, Grid and VirtualGrid.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

I have fixed the bug(s). Kindly check up and please list out any other bugs.

Code: Select all

2011-03-09 18:45 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  * source/virtualgrid.prg
    * Fixed bugs reported by Carlos Britos (Thank you Carlos Britos)
      When Multiselect is True AllowEdit is disabled. Therefore, if you disable Multiselect and wish to allowedit, do it manually by enabling AllowEdit too.
	* Fixed Display problems (alignment and content) of in-place-edit cell. Now IMHO, it is fully backward compatible.  
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply