Page 6 of 30
Re: HMG 3.4.3
Posted: Sat May 21, 2016 6:09 am
by mol
Thank you!
Re: HMG 3.4.3
Posted: Sat May 21, 2016 2:59 pm
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
Re: HMG 3.4.3
Posted: Sun May 22, 2016 8:47 pm
by kcarmody
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!
Re: HMG 3.4.3
Posted: Tue May 24, 2016 6:17 pm
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
Re: HMG 3.4.3
Posted: Tue May 24, 2016 6:27 pm
by emzampi
Grazie a tutti per questa nuova versione.
Re: HMG 3.4.3
Posted: Wed May 25, 2016 2:08 am
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.
Re: HMG 3.4.3
Posted: Wed May 25, 2016 9:13 am
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
Re: HMG 3.4.3
Posted: Wed May 25, 2016 10:18 am
by quartz565
Thank you Marek
Re: HMG 3.4.3
Posted: Wed May 25, 2016 11:39 am
by serge_girard
Thanks Marek !
Serge
Re: HMG 3.4.3
Posted: Wed May 25, 2016 1:01 pm
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