HMG 3.0.36 (Test)
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 3.0.36 (Test)
Thank you Roberto.
Actually it is mess.
I will clean and update with a single build.bat and list out the problems.
Actually it is mess.
I will clean and update with a single build.bat and list out the problems.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 3.0.36 (Test)
Regarding MultiSelect grid setvalue, I think it is the same as before.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
Relevant code related with that is very simple and remained the same for many time.rathinagiri wrote:Regarding MultiSelect grid setvalue, I think it is the same as before.
Maybe this is a problem related with changes in the Harbour-C interface that were not considered?
The C code involved is the following:
Code: Select all
HB_FUNC ( LISTVIEWSETMULTISEL )
{
HWND hwnd = (HWND) hb_parnl(1) ;
int i ;
int l ;
int n ;
l = hb_parinfa( 2, 0 ) - 1 ;
n = SendMessage( hwnd , LVM_GETITEMCOUNT , 0 , 0 );
// CLEAR CURRENT SELECTIONS
for( i=0 ; i<n ; i++ )
{
ListView_SetItemState((HWND) hb_parnl (1), (WPARAM) i ,0 , LVIS_FOCUSED | LVIS_SELECTED );
}
// SET NEW SELECTIONS
for ( i=0 ; i <= l ; i++ )
{
ListView_SetItemState( (HWND) hb_parnl (1), hb_parvni ( 2 , i ) - 1 ,LVIS_FOCUSED | LVIS_SELECTED , LVIS_FOCUSED | LVIS_SELECTED ) ;
}
}
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
Re: HMG 3.0.36 (Test)
Roberto,Roberto Lopez wrote: Relevant code related with that is very simple and remained the same for many time.
Maybe this is a problem related with changes in the Harbour-C interface that were not considered?
...
Any help is welcome.
Please be so kind to revise the following updated function:
Code: Select all
HB_FUNC( LISTVIEWSETMULTISEL )
{
PHB_ITEM wArray;
HWND hwnd = ( HWND ) hb_parnl( 1 );
int i;
int l;
int n;
wArray = hb_param( 2, HB_IT_ARRAY );
l = hb_parinfa( 2, 0 ) - 1;
n = SendMessage( hwnd, LVM_GETITEMCOUNT, 0, 0 );
// CLEAR CURRENT SELECTIONS
for( i = 0; i < n; i++ )
ListView_SetItemState( ( HWND ) hb_parnl(1), ( WPARAM ) i, 0, LVIS_FOCUSED | LVIS_SELECTED );
// SET NEW SELECTIONS
for( i = 0; i <= l; i++ )
ListView_SetItemState( ( HWND ) hb_parnl(1), hb_arrayGetNI(wArray, i + 1) - 1, LVIS_FOCUSED | LVIS_SELECTED, LVIS_FOCUSED | LVIS_SELECTED );
}
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
So... I gues that the origin for a new batch is that the old one stopped working with updated Harbour...rathinagiri wrote:Thank you Roberto.
Actually it is mess.
I will clean and update with a single build.bat and list out the problems.
Another possibility is try to fix it since IDE relies on it to create apps...
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
I'm sure it does!gfilatov wrote: Please be so kind to revise the following updated function:
<...>
Hope that helps
Thanks!
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
It works smoothly.gfilatov wrote:Please be so kind to revise the following updated function:
<...>
Hope that helps
Thnaks again!
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
I wanted to upgrade to 3.0.36 but the problem is that I'm developing an application that is already being using (I'm adding changes daily) and I'm using IDE to work on it.rathinagiri wrote:Thank you Roberto.
Actually it is mess.
I will clean and update with a single build.bat and list out the problems.
So, at the moment, I've patched my current 3.0.35 with the Grigory's path for multiselect grid and your .36 code for memory leaks.
When I find enough free time, my goal is to make it work with current Harbour binaries.
Any clue that you can give me to accelerate the process is greately welcome.
TIA.
PS:
This is the way that IDE uses to handle call to vuild.bat:
Where cParams are the command line parameters that build.bat recognize and IDE could need to send to it.cParams := ' /n ' + cParams
if file ( cHmgFolder + "\BUILD.BAT" )
EXECUTE FILE cHmgFolder + "\BUILD.BAT " + cParams + cProjectBaseName + '.hbp ' + cProjectBaseName + '.hbc' WAIT HIDE
else
msgstop (cHmgFolder + "\BUILD.BAT " + 'Not Found!','HMG-IDE')
endif
So, if we are able to restore the build.bat original functionality, then we will able to use it with updated Harbour binaries.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: HMG 3.0.36 (Test)
Does anyone knows what were exactly the changes in hbmk2 between Harbour build included in .35 and .36 to make it incompatible?Roberto Lopez wrote:So, if we are able to restore the build.bat original functionality, then we will able to use it with updated Harbour binaries.
TIA.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG 3.0.36 (Test)
Hi Roberto,,
No, the latest build.bat as mentioned here is working fine.
Please change the build.bat with this code (with slight modifications) in 3.0.36.
But it has some specific problems. I will list them tomorrow.
No, the latest build.bat as mentioned here is working fine.
Please change the build.bat with this code (with slight modifications) in 3.0.36.
But it has some specific problems. I will list them tomorrow.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.