My app is working fine now. The GDI32.DLL error I encountered came from a defective memory module. I don't have any problem now.Hi Danny.
Please post a small example.
Best regards,
Sorry if I caused any trouble.

Thanks,
Danny
Moderator: Rathinagiri
My app is working fine now. The GDI32.DLL error I encountered came from a defective memory module. I don't have any problem now.Hi Danny.
Please post a small example.
Best regards,
srvet_claudio wrote:Hi all.
Please unzip this file and replace c:\hmg.3.1.5\IDE\IDE.EXE for this attachment file.
I fixed language problem and empty resource problem.
Best regards,
Claudio.
Hello Claudiosrvet_claudio wrote:Hi all.
Please unzip this file and replace c:\hmg.3.1.5\IDE\IDE.EXE for this attachment file.
I fixed language problem and empty resource problem.
Best regards,
Claudio.
I have prepared my "Improvements and corrections" for this versions and I did not publish earlier for fear that the list can be misunderstood, that is, that the list is just look like criticism or just to show bugs since the last (3.1.4) I got no answer or did not provide any discussion of some of the items as I expected and in fact this list aims to promote improvements and all to present ideas and solutions in certain items. But now I'm understanding that this list helped mcuh to surround some defects. In new versions is increasingly difficult to introduce new items and this is a sign that the version releases are getting better ...Rathinagiri wrote:Guys, what are all the points/bugs there to be solved before releasing a HMG Unicode Stable version?
2. C:\hmg.3.1.5\SAMPLES\MainDemo\MAIN.AUTOADJUST, This samples is crashing when make many resizing. Please replace actual sample with ( this one ). Because, not all components in actual samples are reziseble, then is crashing. This was indicated from HMG 3.1.3 version.@Echo off
SET temp1=%~dp0
SET temp2=%temp1%
SET pos=0
:loop
SET /a pos+=1
echo %temp2%|FINDSTR /b /c:"SAMPLES" >NUL
IF ERRORLEVEL 1 (
SET temp2=%temp2:~1%
IF DEFINED temp2 GOTO loop
SET pos=0
)
SETLOCAL EnableDelayedExpansion
set "temp3=%temp1%"
set /a pos=pos-2
set temp1=!temp3:~0,%pos%!
set PATH=%temp1%\harbour\bin;%temp1%\mingw\bin;%PATH%
if "%1"=="" for %%x in (*.hbp) do (hbmk2 %%x -i%temp1%\include)
Code: Select all
#define BASEDEF_MYBUTTON
#xcommand @ <row>,<col> MYBUTTON <name> ;
OF <parent> ;
CAPTION <caption> ;
ACTION <action> ;
=>;
_DefineMyButton(<"name">,<row>,<col>,<caption>,<{action}>,<"parent">)
#undef BASEDEF_MYBUTTON
#xcommand DECLARE CUSTOM COMPONENTS <Window> ;
=>;
_dummy() ;;
#define SOOP_MYBUTTON ;;
#xtranslate <Window> . \<Control\> . Disable => Domethod ( <"Window">, \<"Control"\> , "Disable" ) ;;
#xtranslate <Window> . \<Control\> . Enable => Domethod ( <"Window">, \<"Control"\> , "Enable" ) ;;
#xtranslate <Window> . \<Control\> . Handle => GetProperty ( <"Window">, \<"Control"\> , "Handle" ) ;;
#xtranslate <Window> . \<Control\> . Handle := \<v\> => SetProperty ( <"Window">, \<"Control"\> , "Handle" , \<v\> ) ;;
#undef SOOP_MYBUTTON ;;
Code: Select all
/*
* HMG Grid Demo
* (c) 2005 Roberto Lopez
*
* ListView SORT ORDER COLUMN
* Author: BADIK <badik@mail.ru>
*/
#include "hmg.ch"
Memvar fColor
Function Main()
Local aRows [20] [3]
Private fColor := { || if ( This.CellRowIndex/2 == int(This.CellRowIndex/2) , { 0,0,255 } , { 0,255,0 } ) }
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 640 ;
HEIGHT 400 ;
TITLE 'Mixed Data Type Grid Test' ;
MAIN
DEFINE MAIN MENU
DEFINE POPUP 'File'
MENUITEM 'Set New Columns Order' ACTION SetOrder()
MENUITEM 'Get Columns Order' ACTION GetOrder()
MENUITEM 'Refresh Grid' ACTION Form_1.Grid_1.Refresh
SEPARATOR
MENUITEM 'Exit' ACTION Form_1.Release
END POPUP
END MENU
aRows [1] := { 113.12,date(),1,1 , .t. }
aRows [2] := { 123.12,date(),2,2 , .f. }
aRows [3] := { 133.12,date(),3,3, .t. }
aRows [4] := { 143.12,date(),1,4, .f. }
aRows [5] := { 153.12,date(),2,5, .t. }
aRows [6] := { 163.12,date(),3,6, .f. }
aRows [7] := { 173.12,date(),1,7, .t. }
aRows [8] := { 183.12,date(),2,8, .f. }
aRows [9] := { 193.12,date(),3,9, .t. }
aRows [10] := { 113.12,date(),1,10, .f. }
aRows [11] := { 123.12,date(),2,11, .t. }
aRows [12] := { 133.12,date(),3,12, .f. }
aRows [13] := { 143.12,date(),1,13, .t. }
aRows [14] := { 153.12,date(),2,14, .f. }
aRows [15] := { 163.12,date(),3,15, .t. }
aRows [16] := { 173.12,date(),1,16, .f. }
aRows [17] := { 183.12,date(),2,17, .t. }
aRows [18] := { 193.12,date(),3,18, .f. }
aRows [19] := { 113.12,date(),1,19, .t. }
aRows [20] := { 123.12,date(),2,20, .f. }
@ 10,10 GRID Grid_1 ;
WIDTH 620 ;
HEIGHT 330 ;
HEADERS {'Column 1','Column 2','Column 3','Column 4','Column 5'} ;
WIDTHS {140,140,140,140,140} ;
ITEMS aRows ;
EDIT ;
COLUMNCONTROLS { ;
{'TEXTBOX' , 'NUMERIC' , '$ 999,999.99'} , ;
{'DATEPICKER' , 'DROPDOWN'} , ;
{'COMBOBOX' , {'One' , 'Two' , 'Three'}} , ;
{ 'SPINNER' , 1 , 20 } , ;
{ 'CHECKBOX' , 'Yes' , 'No' } ;
} ;
COLUMNWHEN { ;
{ || This.CellValue > 120 } , ;
{ || This.CellValue = Date() } , ;
Nil , ;
Nil , ;
Nil ;
} ;
DYNAMICFORECOLOR { fColor , fColor, fColor, fColor, fColor }
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return Nil
Function SetOrder()
Local aColumns := { 5, 4, 3, 2, 1 }
_SetColumnOrderArray( "Grid_1", "Form_1", aColumns )
Form_1.Grid_1.Refresh
Return Nil
Function GetOrder()
Local a := _GetColumnOrderArray( "Grid_1", "Form_1" )
// msgdebug(a)
aEval( a, {|x,i| MsgInfo ( "Column " + ltrim( str ( x ) ), ltrim( str ( i ) ) )} )
Return Nil
Function _GetColumnOrderArray( ControlName , ParentForm )
Local i, nColumn, aSort
i := GetControlIndex( ControlName , ParentForm )
nColumn := len(_HMG_SYSDATA [ 33 ] [i])
aSort := array(nColumn)
My_ListView_GetColumnOrderArray( _HMG_SYSDATA [ 3 ] [i], nColumn, @aSort )
Return aSort
Function _SetColumnOrderArray( ControlName , ParentForm, aSort )
Local i, nColumn
i := GetControlIndex( ControlName , ParentForm )
nColumn := len(_HMG_SYSDATA [ 33 ] [i])
ListView_SetColumnOrderArray( _HMG_SYSDATA [ 3 ] [i], nColumn, aSort )
Return Nil
#pragma BEGINDUMP
#define _WIN32_IE 0x0500
#include <windows.h>
#include <commctrl.h>
#include "hbapi.h"
#include "hbvm.h"
HB_FUNC ( MY_LISTVIEW_GETCOLUMNORDERARRAY )
{
int nColumn = hb_parni(2);
LPINT pnOrder = (LPINT) malloc(nColumn*sizeof(int));
int i;
ListView_GetColumnOrderArray( (HWND) hb_parnl(1), nColumn, pnOrder );
for (i=0; i<nColumn; i++)
{
hb_storvni(pnOrder[i]+1, 3, i+1);
}
}
#pragma ENDDUMP
Ok Danny, thanks for report.dhaine_adp wrote:Hi Dr. Claudio,
My app is working fine now. The GDI32.DLL error I encountered came from a defective memory module. I don't have any problem now.Hi Danny.
Please post a small example.
Best regards,
Sorry if I caused any trouble.But it took time for me to realize that the problem is hardware and not software.
Thanks,
Danny
It's done, I opted for the suggestion of Esgici because I think is the best, the title bar of the IDE is already full and no longer fits more text.Pablo César wrote: 10. From HMG Wishlist Project Path in IDE, this is an Esgici indication that shall need a third avaliation, because are two different suggestions and we have to see what is the best for all of us.
Do not you think the title of the IDE is not necessary to be so large ? New ideas can be useful, improved and can be combined, may not ? Could accept both suggestions ?srvet_claudio wrote:It's done, I opted for the suggestion of Esgici because I think is the best, the title bar of the IDE is already full and no longer fits more text.
I think so... but it could be changed ?srvet_claudio wrote:the title bar of the IDE is already full and no longer fits more text.