Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 07-05-2008
vivamotos vivamotos is offline
Miembro
 
Registrado: ago 2006
Posts: 150
Poder: 18
vivamotos Va por buen camino
Cambiar fuente PopupMenu

Saludos,

Quisiera saber si puedo agrandar la fuente de un PopupMenu o bien cambiar su color o algo parecido.

Grácias.
Responder Con Cita
  #2  
Antiguo 07-05-2008
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Poder: 28
Lepe Va por buen camino
Así de forma fácil... no, ni la fuente ni el fondo ni el color. Aunque podrás usar un Popupmenu hecho por terceros www.torry.net y seguro que te permite modificar todos esos parámetros y algo más.

Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita
  #3  
Antiguo 07-05-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Poder: 20
cHackAll Va por buen camino
Código Delphi [-]
procedure TForm1.MenuItemDrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; Selected: Boolean);
begin
 ACanvas.Font.Name := 'Comic Sans MS';
 ACanvas.Font.Color := clGreen;
 ACanvas.FillRect(ARect);
 Inc(ARect.Left, 5);
 with Sender as TMenuItem do
  DrawText(ACanvas.Handle, PChar(Caption), Length(Caption), ARect, 0)
end;

DFM;
Código:
  object PopupMenu1: TPopupMenu
    OwnerDraw = True
    object MenuItem1: TMenuItem
      Caption = '&Cut'
      OnDrawItem = MenuItemDrawItem
    end
    object MenuItem2: TMenuItem
      Caption = '&Copy'
      OnDrawItem = MenuItemDrawItem
    end
    object MenuItem3: TMenuItem
      Caption = '&Paste'
      OnDrawItem = MenuItemDrawItem
    end
    object MenuItem4: TMenuItem
      Caption = '&Delete'
      OnDrawItem = MenuItemDrawItem
    end
  end
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
Cambiar fuente del menu VRO Varios 5 15-11-2007 19:48:58
Cambiar el estilo de fuente de un edit creus Varios 2 21-10-2006 20:34:47
cambiar Color de la fuente de un Tdbedit nenufer OOP 8 26-05-2006 16:30:52
Cambiar el color de la fuente chipsoni Varios 2 24-04-2006 13:52:12
cambiar fuente en TTreeView nicocer Varios 3 06-09-2004 02:46:04


La franja horaria es GMT +2. Ahora son las 15:44:29.


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