HMG 3.4.3

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
huiyi_ch
Posts: 172
Joined: Sat May 21, 2016 5:27 am

Re: HMG 3.4.3

Post by huiyi_ch »

各位老师您们好,
当我使用UNICODE 的库对C:\hmg.3.4.3\SAMPLES\Controls\Grid\GRID_34\的例子编译运行时,Grid一切正常。但是当我使用ANSI库重新对这个例子编译运行时,如果对cell单元格进行编辑、翻页操作时,GRID就会显示出现混乱(在中文WINXP和WIN7环境下都一样),不知是不是我的中文WINDOW操作系统的原因,还是GRid有BUG?
Dear teachers, you are good,

Dear teachers, you are good,

When I use the UNICODE library to compile and run the example of C:\hmg.3.4.3\SAMPLES\Controls\Grid\GRID_34, Grid everything is normal. But when I used the re to compile and run this example, if the edit cell, page turning operation, the grid will display confusion (in Chinese WinXP and win7 environment are the same), I do not know the reasons for the than my Chinese Windows operation system or GRid bug the ANSI library?

Best regards.
HUIYI
Attachments
ansi_build_run.JPG
ansi_build_run.JPG (74.79 KiB) Viewed 6912 times
User avatar
kcarmody
Posts: 152
Joined: Tue Oct 07, 2014 11:13 am
Contact:

Re: HMG 3.4.3

Post by kcarmody »

kcarmody wrote:I have posted all these changes on my website, including the recompiled library and WordScribe executable, as a proposed patch to 3.4.3.

Zip for my current proposal http://kevincarmody.com/hmg/HmgChangeProposal.zip
List of changes for this proposal http://kevincarmody.com/hmg/Changes.txt

Thank you, Claudio, for 3.4.3!
I have just added more changes to this proposal. These changes enable SET HELPFILE, HELPID, and HELPBUTTON to properly support .CHM files. Currently they support only .HLP files, which have been obsolete for several years. I have also developed a new sample application which demonstrates these changes. See http://hmgforum.com/viewtopic.php?f=9&t=4759.

Thank you everyone for your great work!
jozef
Posts: 23
Joined: Sat Apr 02, 2016 4:53 pm
DBs Used: DBF
Location: Bratislava, Slovak Republic

Re: HMG 3.4.3

Post by jozef »

Hello,

when I compile program with HMG version 3.4.3, I got strange display of main menu - outside from main window (see attached picture).
How can I suppress this behavior?
Thanks

Jozef
Attachments
menu.png
menu.png (241.79 KiB) Viewed 6770 times
emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: HMG 3.4.3

Post by emzampi »

Grazie a tutti per questa nuova versione.
huiyi_ch
Posts: 172
Joined: Sat May 21, 2016 5:27 am

Re: HMG 3.4.3

Post by huiyi_ch »

Hi Dr. Claudio and Team:
我找到解决HMG ANSI模式下,编译运行APP,网格出现乱码的办法了!
修改函数SETGRIDQUERYDATA(文件 c_grid.c ,第746行):

I find the method to solve the issue when compiled app in ansi mode the grid display junk.
change the original function :SETGRIDQUERYDATA(file c_grid.c,line 746 ) for this:

HB_FUNC ( SETGRIDQUERYDATA )
{
LPARAM lParam = (LPARAM) HMG_parnl (1);
LV_DISPINFO* pDispInfo = (LV_DISPINFO*) lParam;

// HMG_Trace( __FILE__, __LINE__, __FUNCTION__, _TEXT(" %p |- %s -| %d "), pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax, NULL );
#ifdef COMPILE_HMG_UNICODE
if( hb_iswinvista() ) // Is Win Vista or newer // ADD3, September 2015
lstrcpyn(pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax); // ADD3, July 2015
else
pDispInfo->item.pszText = (TCHAR*) HMG_parc (2); // Is Win XP
#else
lstrcpyn(pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax); // ADD3, July 2015
#endif

}

Then rebuild libraries(ansi and Unicode). Now app works fine.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.4.3

Post by mol »

Browse control crashes when FORMATS are used to change display of numeric columns.
I've modified a little BrowseUpdate function h_browse.prg for good work.
Against at BROWSE is obsolete (I'm still using it...), it would be great to have it without errors.
I'm attaching sources
Attachments
h_browse.zip
(10.56 KiB) Downloaded 300 times
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: HMG 3.4.3

Post by quartz565 »

Thank you Marek
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
serge_girard
Posts: 3162
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG 3.4.3

Post by serge_girard »

Thanks Marek !

Serge
There's nothing you can do that can't be done...
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.4.3

Post by srvet_claudio »

huiyi_ch wrote:Hi Dr. Claudio and Team:
我找到解决HMG ANSI模式下,编译运行APP,网格出现乱码的办法了!
修改函数SETGRIDQUERYDATA(文件 c_grid.c ,第746行):

I find the method to solve the issue when compiled app in ansi mode the grid display junk.
change the original function :SETGRIDQUERYDATA(file c_grid.c,line 746 ) for this:

HB_FUNC ( SETGRIDQUERYDATA )
{
LPARAM lParam = (LPARAM) HMG_parnl (1);
LV_DISPINFO* pDispInfo = (LV_DISPINFO*) lParam;

// HMG_Trace( __FILE__, __LINE__, __FUNCTION__, _TEXT(" %p |- %s -| %d "), pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax, NULL );
#ifdef COMPILE_HMG_UNICODE
if( hb_iswinvista() ) // Is Win Vista or newer // ADD3, September 2015
lstrcpyn(pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax); // ADD3, July 2015
else
pDispInfo->item.pszText = (TCHAR*) HMG_parc (2); // Is Win XP
#else
lstrcpyn(pDispInfo->item.pszText, (TCHAR*) HMG_parc (2), pDispInfo->item.cchTextMax); // ADD3, July 2015
#endif

}

Then rebuild libraries(ansi and Unicode). Now app works fine.
I will check. Thanks
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply