Page 99 of 106
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 10:20 am
by concentra
Hi Rathinagiri.
rathinagiri wrote:The sample of every control is very nice!
However, the rectangular and elliptical regions are not working.

Weird, its properly working here...
Possibly Harbour version related ? I am using the nightly from 2011 May 9.
Any message or it just don´t work ?
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:24 pm
by Rathinagiri
I will tell you after checking once again!
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:25 pm
by Rathinagiri
Code: Select all
2011-05-20 18:44 UTC+0530 Rathinagiri ( <srgiri@dataone.in> )
* include/hmg.ch
* source/virtualgrid.prg
* samples/virtualgrid/demo_*.prg
* samples/browse/demo_3.prg
* Commented out the usage of ::lCreated in virtualgrid and revamped in-place edit. After testing, the commented lines and 'Virtual' in the name of VirtualGrid can be removed.
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:35 pm
by Rathinagiri
concentra wrote:Rathinagiri in samples\browse\demo_4 , I double-click in a cell and change some info, when I leave editing I got the error:
Code: Select all
Error HBQT/1000 Message not found :TEXT: QWIDGET:TEXT
Called from QWIDGET:TEXT(0)
Called from BROWSE:ONSAVE(697)
Called from (b)BROWSE_CREATE(498)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1056)
Called from MAIN(63)
P.S. I eliminated almost all :lCreated control stuff from the classes, except from BROWSE, GRID and VIRTUALGRID because I found some difficulties not knowing all the code involved.
If you will revise this classes I can also remove the :lCreated stuff from that classes, but will need your help to revise and correct bugs.
This I could not resolve.

However, Francesco had suggested a way. From his words, I guess, this is not HMG related but HBQT related.
concentra wrote:In samples\grid\demo_3, everything seems to work fine. But when I try to change data in the column number 7 ( month ) I got an error. And the error returns over and over again whenever I change position in the grid.
Code: Select all
Error BASE/1132 Bound error: array access
Called from GRID:CELL(439)
Called from GRID:CELLCHANGED(1610)
Called from (b)GRID_CREATE(1369)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1056)
Called from MAIN(128)
Now solved.
concentra wrote:In samples\VirtualGrid, demo_2 and demo_4 are not virtualgrid related. They are grid ( not virtual ) !
Should I change them to virtual or eliminate them ?
Now they are virtualgrid related.

In short time, I think we can combine Grid, VirtualGrid and Browse into one control to handle both array and data. What do you think?
concentra wrote:In samples\VirtualGrid\demo_1
If I click "Toogle Multiselect" and the click "Set Value" the demo crashes.
------------------------------------------------------------------------
It is solved now.
concentra wrote:In samples\VirtualGrid\demo_1
If I click "SET Item (2,2)" or "Set Item(4)" and them click "Get Value" I got an error:
Code: Select all
Error BASE/1004 No exported method: ROW
Called from ROW(0)
Called from VIRTUALGRID:VALUE(314)
Called from SHOWGRIDVALUE(180)
Called from (b)MAIN(135)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1056)
Called from MAIN(156)
It is also solved now.
concentra wrote:In samples\VirtualGrid\demo_3, in the menu, if I choose "Methods" - "DeleteColumn(2)", the whole data is deleted, not only the column 2.
It is purposefully done for HMG 3 backward compatibility. This is from HMG 3 Reference Doc.
Code: Select all
DeleteColumn Method
Deletes a Column From a Grid Control
Syntax:
<ParentWindowName>.<ControlName>. DeleteColumn ( <nColIndex>)
When this command / method is used all items in grid (if any) will be lost.
But, we can re-think!
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:46 pm
by Rathinagiri
Code: Select all
2011-05-20 18:44 UTC+0530 Rathinagiri ( <srgiri@dataone.in> )
* samples/everything/demo_1.prg
* AllowEdit feature is added to virtualgrid control for showing in-place edit feature.
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:51 pm
by Rathinagiri
concentra wrote:
Weird, its properly working here...
Possibly Harbour version related ? I am using the nightly from 2011 May 9.
Any message or it just don´t work ?
There are no messages. It just crashes. That's all. Might be the Harbour Version. I am using the 27th March version. Shall we update and release a new version?
My OS is Windows Vista 32 Ultimate.
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:52 pm
by mrduck
rathinagiri wrote:However, the rectangular and elliptical regions are not working.

It's working here on xp, qt 4.7.0, harbour from today svn
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:57 pm
by mrduck
rathinagiri wrote:In short time, I think we can combine Grid, VirtualGrid and Browse into one control to handle both array and data. What do you think?
That it is good thing to do, in order to avoid duplicate lines. Please have a look at source\abstractslider.prg that works as a middle layer for several similar objects.
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 1:59 pm
by mrduck
concentra wrote:Added an AllInOne demo.
Code: Select all
2011-05-19 15:08 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
+ samples/everything/demo_1.prg
+ Added demo to show all HMG4 controls at once.
Very very good ! Thanks for this.
In XP all the "buttons" in the statusbar are identical, raised and flat looks identical.
Re: Welcome to the Project Developers' Table
Posted: Fri May 20, 2011 2:08 pm
by Rathinagiri
In Vista too, it looks the same.
