HMG 3.4.3
Moderator: Rathinagiri
Re: HMG 3.4.3
各位老师您们好,
当我使用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
当我使用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 (74.79 KiB) Viewed 6912 times
Re: HMG 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.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!
Thank you everyone for your great work!
-
- Posts: 23
- Joined: Sat Apr 02, 2016 4:53 pm
- DBs Used: DBF
- Location: Bratislava, Slovak Republic
Re: HMG 3.4.3
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
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 (241.79 KiB) Viewed 6770 times
Re: HMG 3.4.3
Grazie a tutti per questa nuova versione.
Re: HMG 3.4.3
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.
我找到解决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.
Re: HMG 3.4.3
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
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
- serge_girard
- Posts: 3162
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG 3.4.3
I will check. Thankshuiyi_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.