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!