Page 1 of 3

HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 8:07 pm
by Roberto Lopez
Hi All,

The first months of HMG (minigui library at that time) were about experimentation and learning, so I've made many serious mistakes on code and design that were fixed (mostly:) from the first year since the first release.

One of the most notorious mistakes was the PANEL control.

It was aimed to group controls.

It was merely a static child window (a label) with a border. The 'contained' controls were superimposed over the static. This not worked well, since that is not the right way to do it.

I've noticed about the problems when 'someone' made laugh of me in a forum saying something like 'he don't know what is doing' :)

Obviously, the prominent notices saying 'this is an experiment to learn about Windows API and Harbour-C interface' present in my site and library docs were not enough :).

I've retired PANEL and replaced by FRAME control (a proper, but different alternative).

Some days ago, I've remembered PANEL thing while developing an application and said myself: 'Hey... it could be extremely easy to do a PANEL now!'.

It started as a control, but I've finally realized that could be easier to use, understand and more consistent as a new window type.

So, here it is:
- HMG 3.0.29 Changelog:

English:

- New: PANEL Window type.

Panel windows can be embedded in other windows.
You can define a PANEL window inside a DEFINE WINDOW / END WINDOW structure or outside specifiying Parent's name (exactly as a control).
Panel windows are automatically activated through its parent, so explicit activation is not required.

DEFINE WINDOW Win_1 ;
ROW 0 ;
COL 0 ;
WIDTH 400 ;
HEIGHT 400 ;
TITLE 'HMG Panel Window Demo' ;
WINDOWTYPE MAIN

DEFINE WINDOW Win_2 ;
ROW 30 ;
COL 30 ;
WIDTH 300 ;
HEIGHT 200 ;
VIRTUALWIDTH 400 ;
VIRTUALHEIGHT 400 ;
WINDOWTYPE PANEL

<...>

END WINDOW

END WINDOW

ACTIVATE WINDOW Win_1

Samples: \samples\panel.* and \samples\external.windows\panel.

- New: Chinese language support for IDE. Contributed by ouyang.

- Fixed: data-bound grid refresh method problems introduced in 3.0.28. Reported by Sudip and Czarny_Pijar.

- Fixed: data-bound grid 'BackColor' and 'FontColor' properties not working. Reported by mustafa.

Español:

- Nuevo: Ventana tipo PANEL.

Las ventanas tipo PANEL pueden estar contenidas por otras ventanas.

Una ventana tipo PANEL puede definirse dentro de una estructura DEFINE WINDOW / END WINDOW o fuera de ella, simplemente especificando el nombre de su ventana 'parent' (de la misma forma que un control).
Las ventanas tipo PANEL, son autom'áticamente activadas a través de su 'parent', por lo cual una activación explícita no es requerida.

DEFINE WINDOW Win_1 ;
ROW 0 ;
COL 0 ;
WIDTH 400 ;
HEIGHT 400 ;
TITLE 'HMG Panel Window Demo' ;
WINDOWTYPE MAIN

DEFINE WINDOW Win_2 ;
ROW 30 ;
COL 30 ;
WIDTH 300 ;
HEIGHT 200 ;
VIRTUALWIDTH 400 ;
VIRTUALHEIGHT 400 ;
WINDOWTYPE PANEL

<...>

END WINDOW

END WINDOW

ACTIVATE WINDOW Win_1

Ejemplos: \samples\panel.* and \samples\external.windows\panel.

- Nuevo: IDE. Soporte para lenguaje Chino. Contribucón de ouyang.

- Solucionado: Problemas con el método 'refresh' del data-bound grid (introducidos en 3.0.28) Reportado por Sudip y Czarny_Pijar.

- Solucionado: Problemas con las propiedades 'BackColor' and 'FontColor' de data-bound grid. Reportado por mustafa.
Download/Descarga: site

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 8:47 pm
by srvet_claudio
Que grande Roberto,
ya me lo estoy bajando y voy a empezar a jugar con el chiche nuevo.
FELICITACIONES y GRACIAS.
Saludos,
Claudio Soto

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 9:16 pm
by esgici
Thanks a lot Roberto for this new toy (as Claudio said) :)

Best Regards

--

Esgici

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 11:33 pm
by esgici
Hi

Tested, no problem found :)

This new control is extremely handy :D

I guess we will wait a few for designing it via IDE ;)

Again, thanks a lot Roberto

--

Esgici

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 11:36 pm
by fchirico
Excelente Roberto, un control re-piola!

Lo probé sin problemas.

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 11:46 pm
by Roberto Lopez
esgici wrote: I guess we will wait a few for designing it via IDE ;)
It's already done!

samples\external.window\panel

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Sun Apr 11, 2010 11:53 pm
by esgici
Sorry, my hastiness and awkwardness :(

Regards

--

Esgici

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Mon Apr 12, 2010 12:08 am
by luisvasquezcl
Muchas Gracias Roberto,
nuevamente sorprendiendonos con novedades.
saludos cordiales,
Luis Vasquez

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Mon Apr 12, 2010 12:28 am
by Vanguarda
Thanks master for this new version.

My best regards,

Re: HMG 3.0.29 TEST (another boring story about a control:)

Posted: Mon Apr 12, 2010 2:07 am
by Rathinagiri
I am so happy to see the new version coming with new things. Thanks.