was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews
 sonstiges ¦  tutorials ¦  Add&Win Gewinnspiel

Tips (1541)

Dateien (137)
Datenbanken (90)
Drucken (35)
Grafik (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Mathematik (76)
Multimedia (45)
Oberfläche (107)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (126)
Strings (83)
System (266)
VCL (242)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

34 Visitors Online


 
...einen mit einer Editbox verknüpften Ballontip anzeigen?
Autor: Chrystoffer Kugler Horochovec
Homepage: http://www.hurricane.com.br
[ Tip ausdrucken ]  

Tip Bewertung (22):  
     


//Windows +XP
//Form witch one button and one editbox

type 
  
tagEDITBALLOONTIP = record
    
cbStruct: Longword;
    pszTitle: PWChar;
    pszText: PWChar;
    ttiIcon: Integer;
  end;
type 
  
PEDITBALLOONTIP = ^tagEDITBALLOONTIP;

const
  
ECM_FIRST         = $00001500;
  EM_SHOWBALLOONTIP = ECM_FIRST + 3;

procedure TForm1.Button1Click(Sender: TObject);
var
  
ebt: tagEDITBALLOONTIP;
  title, Text: Widestring;
  icon: Integer;
begin
  
title := 'tooltip!!';
  Text  := 'in editbox :)';
  icon  := 1; //0,1,2,3
  
with ebt do
  begin
    
cbStruct := SizeOf(ebt);
    pszTitle := PWideChar(title);
    pszText  := PWideChar(Text);
    ttiIcon  := icon;
  end;
  SendMessage(Edit1.Handle, EM_SHOWBALLOONTIP, 0, Longint(@ebt));
end;


 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners