HMG 3.0.29 TEST (another boring story about a control:)
Posted: Sun Apr 11, 2010 8:07 pm
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:
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:
Download/Descarga: site- 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.