程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> Delphi 2009 之 TBalloonHint

Delphi 2009 之 TBalloonHint

編輯:Delphi

本例相關圖片:

Delphi 2009 之 TBalloonHint

Delphi 2009 之 TBalloonHint

Delphi 2009 之 TBalloonHint Delphi 2009 之 TBalloonHint

  代碼文件:unit Unit1;
interface
uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, StdCtrls, ImgList;
type
 TForm1 = class(TForm)
  BalloonHint1: TBalloonHint;
  Button1: TButton;
  Edit1: TEdit;
  ImageList1: TImageList;
  procedure FormCreate(Sender: TObject);
 end;
var
 Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
 Button1.CustomHint := BalloonHint1;
 Edit1.CustomHint := BalloonHint1;
 BalloonHint1.Images := ImageList1;
 Button1.ShowHint := True;
 Edit1.ShowHint := True;
 Button1.Hint := '提示:|這是 Button1 的 Hint|0'; {標題|內容|ImageList 中的圖像序號}
 Edit1.Hint := '敬告:|這是 Edit1 的 Hint|1'; 
end;
end.
窗體文件:object Form1: TForm1
 Left = 0
 Top = 0
 Caption = 'Form1'
 ClIEntHeight = 127
 ClIEntWidth = 215
 Color = clBtnFace
 Font.Charset = DEFAULT_CHARSET
 Font.Color = clWindowText
 Font.Height = -11
 Font.Name = 'Tahoma'
 Font.Style = []
 OldCreateOrder = False
 OnCreate = FormCreate
 PixelsPerInch = 96
 TextHeight = 13
 object Button1: TButton
  Left = 32
  Top = 32
  Width = 75
  Height = 25
  Caption = 'Button1'
  TabOrder = 0
 end
 object Edit1: TEdit
  Left = 32
  Top = 80
  Width = 121
  Height = 21
  TabOrder = 1
  Text = 'Edit1'
 end
 object BalloonHint1: TBalloonHint
  Left = 161
  Top = 24
 end
 object ImageList1: TImageList
  Left = 161
  Top = 72
  Bitmap = {
   494C010102000400040010001000FFFFFFFFFF00FFFFFFFFFFFFFFFF424D3600
   0000000000003600000028000000400000001000000001002000000000000010
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000861A50094A6B5000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   00000000000000000000000000000000000000000000000000009CAECE002979
   E7000061EF000059EF000049EF000049EF000059EF000059EF0094AED6000000
   00000000000000000000000000000861A5000000000000000000000000000000
   000000000000000000000000000000000000C66D1800BD550800BD5508000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000005AA6DE00219EFF0031A6
   FF004AB6FF0042AEFF0042AEFF004AB6FF0073D7FF0073D7FF000061EF000000
   0000000000000861A50094AEB500000000000000000000000000000000000000
   0000000000000000000000000000BD550800FFA23900EF8A2900FFCF9C00D66D
   1800000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000000086E70073CFFF0073CF
   FF006BC7FF0063C7FF0052B6FF00298EF7000061EF000061EF000069EF009CB6
   D60000000000000000000861A500000000000000000000000000000000000000
   00000000000000000000BD5D1000FFAE5A00FFB25A00EF7D1800FFDBBD00D66D
   18000000000000000000EF9A4200000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000000086E7007BD7FF007BD7
   FF007BD7FF0073D7FF0073D7FF007BD7FF008CDFFF008CDFFF009CE7FF000079
   EF00000000000000000000000000000000000000000000000000000000000000
   000000000000C6611000FFBA6B00FFBA7300FFBA7300F77D0800FFDBBD00D66D
   180000000000EF9A420000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   00000000000000000000000000000000000000000000008EE7008CDFFF008CDF
   FF008CDFFF008CDFFF0073C7FF00399EF7000071EF000071EF000079EF000079
   E700000000000000000000000000000000000000000000000000BD5D1000BD5D
   1000BD5D1000FFC37B00FFC78400FFCB8C00FFCB8C00FF7D0000FFE3CE00DE75
   2100000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   00000000000000000000000000000000000000000000008EE70094E7FF0094E7
   FF009CE7FF009CE7FF009CE7FF009CE7FF00A5EFFF00A5EFFF00ADF7FF000086
   EF000000000000000000000000000000000000000000C6611000E78A4A00FFAE
   7B00FF963100FFCF9400FFD39C00FFDBB500FFDBBD00FF8A1000FFF3E700DE75
   2100000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000000086E7009CEFFF009CEF
   FF00A5EFFF00A5EFFF008CD7FF0039A6F700008EE700008EE700008EEF00008E
   E700008EE7000096E7000096E7009CC7DE0000000000D66D1800FFD3B500FFDF
   CE00FFA65200FFDBB500FFEFDE00FFF7EF00FFF7EF00FF922100FFFBF700DE79
   210000000000EF9A4200EF9A4200000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000003996E70073CFFF008CE7
   FF00A5F7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7
   FF00ADF7FF00ADF7FF00ADF7FF000096E70000000000D66D1800FFFFFF00FFFF
   FF00FFB67300FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF9E3100FFFFFF00DE79
   210000000000EF9A4200EF9A4200000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   00000000000000000000000000000000000000000000CED7DE003196EF002986
   DE0063C7FF00ADF7FF0063C7FF00109EEF000096E7000096E7000096E7000096
   E7000096E7000096E7000096E7009CCFE70000000000E7752100EFAE8400FFFF
   FF00FFDBBD00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFA64200FFFFFF00E77D
   2100000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000000000000000000000000000B5C7
   DE00108EE700ADF7FF006BCFFF0052AEE7000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000E77D2100E77D
   2100EF862900FFEFDE00FFFFFF00FFFFFF00FFFFFF00FFB24A00FFFFFF00E77D
   2100000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000052AEE70042B6F7009CE7FF00189EE7000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000E77D2100FFF7EF00FFFFFF00FFFFFF00FFBA5A00FFFFFF00E782
   290000000000EF9A420000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000C6DFE700008EE700ADF7FF000096E7000000000000000000000000000000
   00000861A5000000000000000000000000000000000000000000000000000000
   00000000000000000000E77D2100FFF3E700FFFBF700FFBE6300FFFFFF00EF86
   29000000000000000000EF9A4200000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000096E700ADF7FF000096E7000000000000000000000000000861
   A500ADBED600000000000861A500000000000000000000000000000000000000
   0000000000000000000000000000E77D2100FFF7EF00FFC76B00FFFFFF00EF86
   2900000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000009CCFEF000096E7009CCFEF000000000000000000000000000000
   0000000000000861A500ADC7D600000000000000000000000000000000000000
   000000000000000000000000000000000000E78E3900E77D2100E77D21000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000
   000000000000000000000000000000000000424D3E000000000000003E000000
   2800000040000000100000000100010000000000800000000000000000000000
   000000000000000000000000FFFFFF00FFFCFFFF00000000C01EFF1F00000000
   8019FE0F00000000800DFC0D00000000800FF80B00000000800FC00F00000000
   800F800F00000000800080090000000080008009000000008000800F00000000
   E0FFC00F00000000F0FFF80B00000000F0F7FC0D00000000F8E5FE0F00000000
   F8F9FF1F00000000FFFFFFFF00000000}
 end
end


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved