HMG 3.3.0 (Stable)

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Re: HMG 3.3.0 (Stable)

Post by vagblad »

Nikos(Quartz565) and I found a temporary solution to the problem with the image control handling the bitmaps under Windows Server 2003.
We tested it under Windows 2003 server, Windows Xp and Windows 7 so far and it seems to work ok.

We added a small check inside the image.c code, to see if the windows version running is a server OS or not.

Inside the HMG_LoadPicture function we added the following:

1) at Line 221:

Code: Select all

OSVERSIONINFOEX osvi;
GetVersionEx((LPOSVERSIONINFO )&osvi);
2) at Line 272:

Code: Select all

if (osvi.wProductType == VER_NT_SERVER)
{
hBitmap_New = bt_bmp_create_24bpp (New_Width, New_Height);
}
else
{
hBitmap_New = CreateCompatibleBitmap (hDC, New_Width, New_Height);
}
After building the libraries again the image control works just fine.

We will keep testing it in our application and in case we notice something we will post in the forums.
I hope it will be useful to someone else maybe who had the same or a similar problem.

Once more thanks again to everyone for their help.

Update: The problem still persists when we build the libraries with ANSI. The above solution doesn't work.
If we build the libraries with UNICODE there is no problem at all.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.3.0 (Stable)

Post by srvet_claudio »

danielmaximiliano wrote:
srvet_claudio wrote: Daniel podrías subir un par de las imágenes del ToolBar que no se ven en tu ejemplo.
HMG.3.2 compila ok.
2014-05-28 23_22_36-Autoservicio Los Tilos 2014.jpg

BMP del Toolbar
Bmp.rar
Thanks, I fixed.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.3.0 (Stable)

Post by srvet_claudio »

Pablo César wrote:Dear Rathi,

In _HMG_HPDF_INIT function we can count with lLog argument when developper wish to have a details of fonts applied for ttf and UNICODE ones. But this argument always is false, I mean there was not any parameter option at C:\hmg.3.3.0\INCLUDE\hmg_hpdf.ch.

Probably was has lost the include file due so many details and hard work for release composing. Please note below:
Screen.PNG
This do you think is possible to be included ? Please confirm.

File C:\hmg.3.3.0\SAMPLES\HPDF\Demo2_UniCode\Demo.prg is with error at compiling by this missing parameter.
Ok
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.0 (Stable)

Post by tonton2 »

Hi to all,
When I want to save in *. PDF, I receive that Way
Thank's for your Works
Attachments
Doc1_PDF.jpg
Doc1_PDF.jpg (125.78 KiB) Viewed 9938 times
L'Algerie vous salut
Y.TABET
User avatar
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.3.0 (Stable)

Post by Rathinagiri »

Can you give a small sample?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.0 (Stable)

Post by tonton2 »

bonsoir
l'exemple est dans C:\SAMPLES\PrintSystem\reporttest
Merci beaucoup Thank's
Attachments
PrintSystem.rar
(1.06 MiB) Downloaded 555 times
L'Algerie vous salut
Y.TABET
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.3.0 (Stable)

Post by Pablo César »

tonton2 wrote:bonsoir
l'exemple est dans C:\SAMPLES\PrintSystem\reporttest
Merci beaucoup Thank's
Dear friend Rathi,

According all the examples under of C:\hmg.3.3.0\SAMPLES\Controls\ReportAdvanced and C:\hmg.3.3.0\SAMPLES\PrintSystem which making use of ExecuteReport function, located at C:\hmg.3.3.0\SOURCE\h_rptgen.prg. The array _HMG_SYSDATA [ 150 ] is in conflict with different array structure comparing what is creating at _HMG_HPDF_INIT function at C:\hmg.3.3.0\SOURCE\h_HMG_HPDF.Prg.

In C:\hmg.3.3.0\SOURCE\h_rptgen.prg is with single logical value and in C:\hmg.3.3.0\SOURCE\h_HMG_HPDF.Prg it is with a big structure like this:

Code: Select all

_HMG_SYSDATA[ 150 ] := { ;
                        Nil, ;                  //  1.PDF Object
                        cPDFFile,;              //  2.PDF File to Save
                        0,;                     //  3.PDF PaperSize
                        0,;                     //  4.PDF PaperWidth
                        0,;                     //  5.PDF PaperHeight
                        nOrientation,;          //  6.PDF Orientation
                        Nil, ;                  //  7.PDF Current Page
                        'Helvetica',;           //  8.PDF default font
                        12,;                    //  9.PDF default fontsize
                        "StandardEncoding",;    // 10.PDF default encoding
                        {},;                    // 11.PDF Outlines Array                           
                        {},;                    // 12.PDF Pages Array
                        0;                      // 13.PDF Current Page Number 
                        }
It is for this reason there presenting an error when try to convert Metafile to PDF. This when calling _HMG_HPDF_SetCompression( 'ALL' ) at C:\hmg.3.3.0\SOURCE\h_controlmisc.prg.

Please confirm if this difference is correct or this address for Generator Flag should be changed, in order to avoid misperceived :?:

IMHO, this Generator Flag should be stored at _HMG_SYSDATA [ 151 ] (Current Report PDF Object Variable, I checked and I see is not use at anywhere, non at all HMG source code) and changing from _HMG_SYSDATA [ 150 ]. This will be easy solved to change at C:\hmg.3.3.0\SOURCE\h_rptgen.prg (and nowhere else).
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
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.3.0 (Stable)

Post by Rathinagiri »

We shall fix in the next patch. Thanks for the report friends.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

HMG 3.3.0 - Grid

Post by danielmaximiliano »

Hola a todos :

Una reforma en mi aplicacion requieres que pueda seleccionar un artículo dentro del grid, pero solo eso.. seleccionarlo pero que regrese al TextBox que es el unico lugar donde se ingresan datos al GRID.

A pesar que indico en la definicion del GRID "ON Click Form_1.TextBox_1.Setfocus" el mismo toma foco un instante y regresa al elemento que fúe seleccionado anteriormente en el Grid con el mouse.

use un ejemplo basico "c:\hmg.3.3.0\Samples\Controls\Grid\Demo_40 eliminando algunos controles para este demo.

necesito que el TextBox siempre tenga el foco a pesar que haga click sobre el GRID; no entiendo en que fallo o porque falla el demo y mi aplicacion.

Translate Google

Hello everyone:

A reform in my application require that you can select an item in the grid, but only select that .. but to return to the TextBox which is the only place where data is input to the GRID.

Although indicated in the definition of GRID "ON Click Form_1.TextBox_1.Setfocus" it takes a moment and returns focus to the item that was selected earlier in the grid with the mouse.

use a basic example "c:\hmg.3.3.0\Samples\Controls\Grid\Demo_40" removing some controls for this demo.

always need the TextBox has focus though click on the GRID; I do not understand that fault or that fails and my application demo.

thanks
GRID_41.rar
(2.93 KiB) Downloaded 470 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.3.0 - Grid

Post by Pablo César »

Hola Daniel,

Entonces lo que quieres es siempre mantener el foco en el TEXTBOX mismo que sea clicado dentro del GRID. Esto serviria para capturar alguna informacion de las células ?

Si te fijás en C:\hmg.3.3.0\SOURCE\h_grid.prg hay una nueva funcion llamada _GridOnClickAndOnKeyEvent que es reponsable por ese click y eventos del teclado como: WM_KEYDOWN y WM_KEYUP dentro del grid. Este hace gatillo en C:\hmg.3.3.0\SOURCE\h_init.prg.

En mi opinion esta función, precisaria tener alguna opcion de escape para que no retorne al grid. Faltaria implementar algo. Talvez Dr. Soto pueda dar una opinion ya que recientemente parece que estubo implementando algo en torno de events del grid.

Image
Hi Daniel,

So what you want is to always to keep the focus on the same TEXTBOX even if is clicked within the GRID. This would serve to capture some information from the cells?

If you look in C:\hmg.3.3.0\SOURCE\h_grid.prg there is a new function called _GridOnClickAndOnKeyEvent which is responsible for that click and keyboard events as WM_KEYDOWN and WM_KEYUP within the grid. This does trigger in C:\hmg.3.3.0\SOURCE\h_init.prg.

IMHO this function would need to have some option for fails returning or make escape from the grid. Most probably Dr. Soto could give us an opinion, because quite recently I read something that he has implemented around, see this message about events of the grid from Claudio.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply