I want to be a HMG Poster

New members who wish to post and participate in HMG Forum, please introduce yourselves in this forum by starting a new thread.

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: I want to be a HMG Poster

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

I want to be a HMG Poster

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Jairo Maia
Posts: 53
Joined: Sun Jul 17, 2011 1:47 pm
Location: Campinas - SP - Brazil

Re: I want to be a HMG Poster

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I want to be a HMG Poster

Post 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
Viva INTERNATIONAL HMG :D
User avatar
joerg
Posts: 10
Joined: Tue Sep 25, 2012 4:08 pm
DBs Used: DBF; mySQL
Location: Austria
Contact:

Re: I want to be a HMG Poster

Post 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
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I want to be a HMG Poster

Post 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?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
joerg
Posts: 10
Joined: Tue Sep 25, 2012 4:08 pm
DBs Used: DBF; mySQL
Location: Austria
Contact:

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

Post 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
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I want to be a HMG Poster

Post 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
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: I want to be a HMG Poster

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
joerg
Posts: 10
Joined: Tue Sep 25, 2012 4:08 pm
DBs Used: DBF; mySQL
Location: Austria
Contact:

Re: I want to be a HMG Poster

Post 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....
Post Reply