Page 39 of 54

Re: I want to be a HMG Poster

Posted: Sun Aug 26, 2012 6:53 pm
by danielmaximiliano
Jairo Maia wrote:Hello,

I'm Jairo from Brazil.
I want to can send posts in this forum

Regards
Ola Jairo : HMG bem-vindo e espero ver seus comentários aqui.
HMG welcome and hope to see your comments here.

I want to be a HMG Poster

Posted: Sun Aug 26, 2012 8:01 pm
by Pablo César
Bem vindo caro amigo Jairo ! Um grande colega de fórum, com grande conhecimento técnico e boa analogia ao qual tenho grande admiração.

Welcome dear friend, Jairo! A big fellow forum with great technical knowledge and good analogy to which I have great admiration.

Re: I want to be a HMG Poster

Posted: Mon Aug 27, 2012 3:40 pm
by Jairo Maia
Hi Daniel, thanks for the welcome.

Hi Pablo, thanks for the compliments, I hope to learn a lot in this forum.

Regards

Re: I want to be a HMG Poster

Posted: Mon Aug 27, 2012 5:43 pm
by esgici
Jairo Maia wrote:I'm Jairo from Brazil.I
Ola Jairo

Bem-vindo a bordo :)

Saudação de Turkiye

Happy HMG'ing :D

Re: I want to be a HMG Poster

Posted: Mon Oct 01, 2012 12:39 pm
by joerg
Hi,

My name is Joerg Grabner. I’m from Austria and I’m new to this forum.
I’m mostly into SAP consulting and ABAP programming to earn a living (=> www.wenex.at – this is the URL of my „one person“ company). Besides I developed a little ERP system in Clipper for a small Austrian company which I extended substantially using Harbour this year.
To replace that old system I currently develop a completely new ERP system „WENE“ based on HMG 3.0.44 and a mySQL database. I use a „generic“ standard system approach with lot’s of parametrization tables containing lot’s of macros. WENE will be open source (GNU/GPL) – I want to release it as soon as it is productive at the small company and used for issueing the few bills of my company. I develop WENE in my spare time as a kind of hobby.
I already coded lots of low level methods to access mySQL and finished parts of the user interface using a tree and a combobox.

The problem in the grid (with CellNavigation) is the first problem with HMG I encountered until now (thanks to all of you for that – HMG is really great and stable) and the reason I'd like to post something:
I wan’t to program my own textbox to edit cells in the grid. Prerequisite for that is the right row and col (in pixels) to overlay the right cell with the textbox.
The This.CellRow and This.CellCol properties available only in the ON DBLCLICK procedure are unfortunately sometimes wrong (about 20% of the tests – either row or col are wrong or both – in about 80% of the tests both row and col are ok).
It looks like function _GetGridCellData() sometimes returns wrong values for row and col (I called _GetGridCellData() directly after deriving the index of the grid object from _HMG_SYSDATA[1]).
Is it possible to fix _GetGridCellData()? _HMG_GRIDINPLACEEDIT() which is activated with the EDIT property doesn’t have this problem - it seems to derive row and col in a different way...

Thanks a lot in advance,
Regards, Joerg

Re: I want to be a HMG Poster

Posted: Mon Oct 01, 2012 1:08 pm
by Rathinagiri
Hi Joerg Grabner,

Hearty welcome to the HMG Forum from India.

I am happy to know about your details.

Regarding the GridInPlaceEdit location, it differs with regard to Themed windows. Which version of windows do you use?

Re: Bug in _GetGridCellData() / _HMG_GRIDINPLACEEDIT() is ok

Posted: Mon Oct 01, 2012 4:44 pm
by joerg
Hi,

Thanks a lot for your fast response.
I'm using Windows 7 64 bit.

Actually there is no problem with _HMG_GRIDINPLACEEDIT() - it works fine (but I don't want to use it).

The problem is with _GetGridCellData() (This.CellRow and This.CellCol properties after ON DBLCLICK): It doesn't return the right cell position in pixels in about 20% of the test cases.

KR
Joerg

Re: I want to be a HMG Poster

Posted: Mon Oct 01, 2012 5:30 pm
by Rathinagiri
You have to thoroughly read and understand the logic from source\h_grid.prg around the lines 630 to 850

Especially find out how this r+DR and c+DC have come. I think there is your answer.

Code: Select all

      DEFINE WINDOW _hmg_grid_inplaceedit AT r + DR , c + DC ;
         WIDTH This.CellWidth +  DW ;
         HEIGHT This.CellHeight + 6 + DH ;
         TITLE '' ;
         MODAL NOSIZE NOCAPTION

Re: I want to be a HMG Poster

Posted: Mon Oct 01, 2012 7:06 pm
by danielmaximiliano
joerg wrote:Hi,

My name is Joerg Grabner. I’m from Austria and I’m new to this forum.
Regards, Joerg
Bienvenido/Welcome Joer a/To HMG Forum.
Desde/From Buenos Aires Argentina

Re: I want to be a HMG Poster

Posted: Sat Oct 06, 2012 9:13 am
by joerg
The solution to my problem is now obvious - I need to use _HMG_GRIDINPLACEEDIT() from h_grid.prg as a template for my own in place edit function.

Thanks a lot for your help....