Color in Tab Control HMG.4

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Color in Tab Control HMG.4

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Color in Tab Control HMG.4

Post 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
Attachments
TabHMG3.rar
Example
(82.12 KiB) Downloaded 531 times
Tab HMG3
Tab HMG3
Capture4.jpg (24.52 KiB) Viewed 6596 times
QTabWidget
QTabWidget
Capture5.jpg (19.39 KiB) Viewed 6596 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Color in Tab Control HMG.4

Post 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
Attachments
Main.rar
main.prg and main.fmg
(1.45 KiB) Downloaded 475 times
I do not understand this
I do not understand this
Capture6.jpg (31.07 KiB) Viewed 6580 times
Error
Error
Capture8.jpg (21.56 KiB) Viewed 6580 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Color in Tab Control HMG.4

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Color in Tab Control HMG.4

Post 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
Attachments
Method.jpg
Method.jpg (27.59 KiB) Viewed 6523 times
example mgw
example mgw
Capture4.jpg (30.14 KiB) Viewed 6523 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Color in Tab Control HMG.4

Post 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
Attachments
Mi Aporte
Mi Aporte
DEMO.JPG (36.84 KiB) Viewed 6378 times
Archive.rar
Sorce Code DEMO Addpage addControls
and Simulate Backcolor
(87.97 KiB) Downloaded 529 times
Page1.jpg
Page1.jpg (28.41 KiB) Viewed 6378 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Color in Tab Control HMG.4

Post by danielmaximiliano »

PD: Me olvide comentar que el tab es AUTOZISE y la simulacion del Backcolor Tambien.
DaNiElMaXiMiLiAnO
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply