Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 18-01-2011
Avatar de vroa74
vroa74 vroa74 is offline
Miembro
 
Registrado: jul 2006
Posts: 254
Poder: 18
vroa74 Va por buen camino
Question Problemas con el Hint y ComboBox

Estoy usando el procedimiento para mostrar los hint

Código Delphi [-]
function Tmainx.RevealHint (Control: TControl): THintWindow;
 var
   ShortHint: string;
   AShortHint: array[0..255] of Char;
   HintPos: TPoint;
   HintBox: TRect;
 begin
   { Create the window: }
   Result := THintWindow.Create(Control);
   { Get first half of hint up to '|': }
   ShortHint := GetShortHint(Control.Hint);
   { Calculate Hint Window position & size: }
   HintPos := Control.ClientOrigin;
   Inc(HintPos.Y, Control.Height + 6);
   HintBox := Bounds(0, 0, Screen.Width, 0);
   DrawText(Result.Canvas.Handle,
       StrPCopy(AShortHint, ShortHint), -1, HintBox,
       DT_CALCRECT or DT_LEFT or DT_WORDBREAK or DT_NOPREFIX);
   OffsetRect(HintBox, HintPos.X, HintPos.Y);
   Inc(HintBox.Right, 6);
   Inc(HintBox.Bottom, 2);
   { Now show the window: }
   Result.ActivateHint(HintBox, ShortHint);
 end; {RevealHint}
////////////////////////////////////////////////////////////

Cuando el cursor pasa por el cuadro de texto del combobox el hint aparece y desaparece rapido y provoda un error. Como puedo solucionar este error ??????
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
Hint en items de un ComboBox yusnerqui Varios 12 14-12-2017 16:45:19
Problemas con combobox.items PABECO Varios 5 12-07-2010 20:44:50
Problemas con combobox de opciones GooD OOP 1 28-08-2008 22:00:27
problemas con combobox gelitus OOP 12 23-10-2007 23:58:06
Problemas con un combobox pyanqn Firebird e Interbase 1 27-10-2005 19:20:59


La franja horaria es GMT +2. Ahora son las 11:26:20.


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