Ver Mensaje Individual
  #7  
Antiguo 11-04-2016
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 11
aguml Va por buen camino
La StatusBar la tengo de forma que muestra los hint de todos los componentes al ponerse encima así que creo que con cambiar el hint me valdría ¿no? Seria algo asi:
Código PHP:
void __fastcall TForm1::AppIdle(TObject *Senderbool &done)
{
TPoint pt;
HWND HWL;

GetCursorPos( &pt );
HWL WindowFromPointpt );

* if ( 
HWL != )
* {
*** 
char buff[128];
*** 
GetClassNameHWLbuffsizeofbuff ) );
*** if ( 
StrICompbuff"ComboLBox" ) == )
*** {
*******
TComboBoxCB = (TComboBox*)FindControl(GetParent(HWL)); 
********if (
CB->Name == "ComboBox1"){
*********** ::
ScreenToClientHWL, &pt );
*********** 
int inx LOWORDSendMessageHWLLB_ITEMFROMPOINT0, (LPARAM)MAKELONG(pt.xpt.y)) );

*********** if ( 
inx >= )
************** 
CB->Hint=ListaStrings[inx];
***** }
*** }
* }

Responder Con Cita