Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Gráficos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 21-07-2008
Avatar de MAXIUM
MAXIUM MAXIUM is offline
Miembro
 
Registrado: may 2005
Posts: 1.488
Poder: 21
MAXIUM Va camino a la fama
Exclamation Cambiar color del formulario

Hola, quisiera saber como cambiar el color de mi formulario en formato RGB hexadecimal tipo #FF55FF ya que solo puedo usar los colores preestablecidos del tipo clRed. Uso Delphi 7, pero tambien sería bueno saber como usarlo en Delphi 6.
Responder Con Cita
  #2  
Antiguo 21-07-2008
Avatar de eduarcol
[eduarcol] eduarcol is offline
Miembro Premium
 
Registrado: ago 2003
Ubicación: En los estados Zulia y Merida de Venezuela
Posts: 4.151
Poder: 25
eduarcol Va por buen camino
igual como lo tienes pero le agregas dos ceros luego del numeral:

#00


perdón hay que sustituir el # por el $
__________________
...Yo naci en esta ribera del arauca vibr@d0r
Soy hermano de la espuma,
de la garza, de la rosa y del sol...
Viva Venezuela

Última edición por eduarcol fecha: 21-07-2008 a las 17:16:03.
Responder Con Cita
  #3  
Antiguo 21-07-2008
Avatar de felipe88
[felipe88] felipe88 is offline
Miembro Premium
 
Registrado: may 2007
Ubicación: Mi Valle del Cauca... Colombia!!!
Posts: 1.120
Poder: 19
felipe88 Va por buen camino
Cita:
Empezado por eduarcol Ver Mensaje
igual como lo tienes pero le agregas dos ceros luego del numeral:

#00


perdón hay que sustituir el # por el $
Debo decir Gracias por ese aporte
__________________
Web
Responder Con Cita
  #4  
Antiguo 21-07-2008
Avatar de MAXIUM
MAXIUM MAXIUM is offline
Miembro
 
Registrado: may 2005
Posts: 1.488
Poder: 21
MAXIUM Va camino a la fama
mmm... tonces esos 2 últimos digitos deben corresponder al canal Alpha. Muchas gracias.
Responder Con Cita
  #5  
Antiguo 21-07-2008
[coso] coso is offline
Miembro Premium
 
Registrado: may 2008
Ubicación: Girona
Posts: 1.678
Poder: 0
coso Va por buen camino
Hola maxium, no corresponden al canal alpha (al menos en delphi5). Te dejo aqui la ayuda

Cita:
Color is used to specify the color of an object.

Unit

Graphics

type TColor = -(COLOR_ENDCOLORS + 1)..$02FFFFFF;

Description

TColor is used to specify the color of an object. It is used by the Color property of many components and by a number of other properties that specify color values.

The Graphics unit contains definitions of useful constants for TColor. These constants map either directly to the closest matching color in the system palette (for example, clBlue maps to blue) or to the corresponding system screen element color defined in the Color section of the Windows Control panel (for example, clBtnFace maps to the system color for button faces).

If you specify TColor as a specific 4-byte hexadecimal number instead of using the constants defined in the Graphics unit, the low three bytes represent RGB color intensities for blue, green, and red, respectively. The value $00FF0000 represents full-intensity, pure blue, $0000FF00 is pure green, and $000000FF is pure red. $00000000 is black and $00FFFFFF is white.

If the highest-order byte is zero ($00), the color obtained is the closest matching color in the system palette. If the highest-order byte is one ($01), the color obtained is the closest matching color in the currently realized palette. If the highest-order byte is two ($02), the value is matched with the nearest color in the logical palette of the current device context.


The following table lists the color constants from the Graphics unit. The first two columns list the colors that map to the closest matching color in the system palette, while the last two columns list the colors that are defined in the Windows Control panel.
saludos
Responder Con Cita
  #6  
Antiguo 21-07-2008
[FGarcia] FGarcia is offline
Miembro Premium
 
Registrado: sep 2005
Ubicación: Cordoba, Veracruz, México
Posts: 1.123
Poder: 20
FGarcia Va por buen camino
¿y esto no vale?

Código Delphi [-]
{Declarando en el evento OnCreate del formulario
  Form.color := RGB(rrr,ggg,bbb);}
 
Form.color := RGB(120,180,65);
Responder Con Cita
  #7  
Antiguo 22-07-2008
Avatar de MAXIUM
MAXIUM MAXIUM is offline
Miembro
 
Registrado: may 2005
Posts: 1.488
Poder: 21
MAXIUM Va camino a la fama
Ven, siempre se aprenden cosas.
Responder Con Cita
  #8  
Antiguo 03-08-2008
[FGarcia] FGarcia is offline
Miembro Premium
 
Registrado: sep 2005
Ubicación: Cordoba, Veracruz, México
Posts: 1.123
Poder: 20
FGarcia Va por buen camino
Hace ya tiempo que tenia esto, le hice unos retoques y se puede mejorar, espero comentarios y aportes.
Archivos Adjuntos
Tipo de Archivo: zip Generador de Colores.zip (4,7 KB, 64 visitas)
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
como cambiar el color de la barra de titulo de mi formulario kurono Varios 2 09-04-2008 00:53:41
Mantener color verde olivo de las ventanas, al cambiar el color en windows mancurnino Varios 6 11-03-2008 15:39:47
Cambiar propiedad de componente del formulario padre al cerrar el formulario hijo jzginez OOP 5 22-06-2007 21:40:51
Color Claro en Componentes Del Formulario sflexas Varios 1 10-03-2007 11:51:55
Como cambiar color de Formulario,Etc Gustavo Gowdak OOP 2 20-01-2005 21:36:47


La franja horaria es GMT +2. Ahora son las 18:11:14.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi