Page 1 of 1

Color in Tab Control HMG.4

Posted: Thu Dec 02, 2010 11:06 pm
by danielmaximiliano
Hola Muchachos :
hay posibilidad de introducir colores en las solapas del Control Tab? baje QT Opensource
y en el diseñador veo que se puede darle color a la solapa.
en HMG3.X solo tengo el palido gris :cry:

Translate Google

Hi Guys:
no possibility of introducing color in the lapels of Tab Control? QT lower Opensource
and the designer can see that color the flap.
in HMG3.X I have only the pale gray :cry:
Saludos
DaNiElMaXiMiLiAnO
PD: in frame also control

Re: Color in Tab Control HMG.4

Posted: Thu Jan 06, 2011 5:44 am
by danielmaximiliano
Hola a Todos:
Este es un ejemplo en QT 4.7.1 sobre color en los tab, el Qtabwidget permite cambiar la forma del tab,
el color del nombre y el backcolor.

en HMG trate de suplantar el Backcolor del tab con una imagen de fondo y arriba poner los controles. algo sucio pero mejor que el palido gris.
ah no me funciono el metodo AddPage en algo falle
Google Translate
Hi Everyone:
This is an example in QT 4.7.1 on the tab color, the Qtabwidget to change the shape of the tab,
the color's name and backcolor.

in HMG Backcolor try to supplant the tab with a background image and up to the controls. dirty but better than the pale gray.
ah I AddPage method works in something goes wrong

Saludos / Greetings
DaNiElMaXiMiLiAnO

Re: Color in Tab Control HMG.4

Posted: Thu Jan 06, 2011 7:29 pm
by danielmaximiliano
Hola a todos:
despues de publicar el anterior mensaje encontre algunas fallas en la programacion del Tab.
modifique Main.prg pero sigo sin interpretar AddControl
alguna sugerencia?

Google Translate

Hello everyone
after publishing the previous post I found some flaws in the programming of Tab.
Main.prg change but I still play AddControl
any suggestions?

DaNiElMaXiMiLiAnO

Re: Color in Tab Control HMG.4

Posted: Fri Jan 07, 2011 12:50 am
by Rathinagiri
In the above picture, the first controlname refers to the tab control and the next controlname (within parenthesis) refers to the control to be placed inside the tab on the specified location and page.

Re: Color in Tab Control HMG.4

Posted: Sun Jan 09, 2011 12:39 am
by danielmaximiliano
Hi Rathi:
as would be the example for this method AddControl?

I do not understand this method

I need to add some controls in MiniGUI is an example but just add a page
C: \ MiniGUI \ SAMPLES \ BASIC \ TAB

thanks for your help
DaNiElMaXiMiLiAnO

Re: Color in Tab Control HMG.4

Posted: Tue Jan 18, 2011 12:42 am
by danielmaximiliano
Hola a TODOS de nuevo :
despues de intentar varios dias el uso de los Metodos AddPage, AddControl pude
escribi algo de codigo simple para mi aplicacion en la empresa.
todavia hay algunos errores dentro del codigo fuente ... pero les presento algo manejable
no sabia que el Metodo Addcontrol necesita que el Control exista o este definido para poder agregarlo al "PAGE"
no esta documentado en el HMG Reference (c)2002-2010 Roberto Lopez y estaria bien que se incluya en el mismo.
tambien encontre nose si es un BUG o una falla de programacion mia
EJ:
Principal.Container_Tab.AddPage ( nPage, 'Add+','New.jpg' )
si en el primer "PAGE" esta incluido la imagen esta es agregada, sino es ignorada la imagen de dicho "PAGE"
EJ:

Code: Select all

PAGE 'Page 1' IMAGE "exit.bmp"
     ...
     PAGE 'Page &2' 
     ...
     PAGE 'Page 3' 
 END PAGE
no se incluye la imagen de esta forma

Code: Select all

PAGE 'Page 1' 
         .....
	PAGE 'Page &2'  IMAGE "exit.bmp"
         ..... 
	PAGE 'Page 3' 

END PAGE
se puede probar en el ejemplo: F:\hmg.3.0.35\SAMPLES\CONTAINERS\TAB
bueno les dejo este pequeño aporte, alguna mejora es bienvenida
Saludos / Greetings
DaNiElMaXiMiLiAnO

Re: Color in Tab Control HMG.4

Posted: Tue Jan 18, 2011 2:17 pm
by danielmaximiliano
PD: Me olvide comentar que el tab es AUTOZISE y la simulacion del Backcolor Tambien.
DaNiElMaXiMiLiAnO