Page 95 of 106

Re: Welcome to the Project Developers' Table

Posted: Sun Feb 27, 2011 4:05 am
by Rathinagiri
I can download this. Does anybody have problems in downloading?

In that case, kindly download from here.

rcc.zip

Re: Welcome to the Project Developers' Table

Posted: Sun Feb 27, 2011 11:14 am
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.

Re: Welcome to the Project Developers' Table

Posted: Wed Mar 02, 2011 3:56 pm
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)

Re: Welcome to the Project Developers' Table

Posted: Tue Mar 08, 2011 7:27 am
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.

Re: Welcome to the Project Developers' Table

Posted: Tue Mar 08, 2011 4:28 pm
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

Re: Welcome to the Project Developers' Table

Posted: Tue Mar 08, 2011 6:07 pm
by Rathinagiri
Thanks a lot for your reporting. I will check ASAP.

Re: Welcome to the Project Developers' Table

Posted: Tue Mar 08, 2011 6:46 pm
by Rathinagiri
I checked and hereby confirm the bug. Thanks for reporting. I will clear them soon.

Re: Welcome to the Project Developers' Table

Posted: Wed Mar 09, 2011 11:57 am
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

Re: Welcome to the Project Developers' Table

Posted: Wed Mar 09, 2011 1:05 pm
by Rathinagiri
Thanks a LOT for your update. It is great.

First I want to unite Browse, Grid and VirtualGrid.

Re: Welcome to the Project Developers' Table

Posted: Wed Mar 09, 2011 1:50 pm
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.