Exemplo n.º 1
0
 public HToolTip()
     : base(Gtk.WindowType.Popup)
 {
     this.AppPaintable       = true;
     this.TypeHint           = Gdk.WindowTypeHint.Tooltip;
     this.Build();
     instance                = this;
     Spacer.HeightRequest    = tail_height;
     SpacerLeft.WidthRequest = round_rect_angle;
     SpacerRight.WidthRequest= round_rect_angle;
 }
Exemplo n.º 2
0
 public HToolTip() :
     base(Gtk.WindowType.Popup)
 {
     this.AppPaintable = true;
     this.TypeHint     = Gdk.WindowTypeHint.Tooltip;
     this.Build();
     instance                 = this;
     Spacer.HeightRequest     = tail_height;
     SpacerLeft.WidthRequest  = round_rect_angle;
     SpacerRight.WidthRequest = round_rect_angle;
 }
 private void SetImage(ImageType type)
 {
     if (type == ImageType.Error)
     {
         ErrorImage.Show();
         HToolTip.SetToolTip(EbIcon, "Error", ErrorMessage, "gtk-dialog-warning");
         ErrorImage.Stock = "gtk-dialog-warning";
     }
     else
     {
         ErrorImage.Hide();
     }
 }
Exemplo n.º 4
0
 private void SetImage(ImageType type)
 {
     if (type == ImageType.Error)
     {
         HToolTip.SetToolTip(EbErrorImage, "Error", errorMessage, "gtk-dialog-warning");
         ErrorImage.Stock = "gtk-dialog-warning";
     }
     else
     {
         HToolTip.SetToolTip(EbErrorImage, "Ok", okMessage, "gtk-yes");
         ErrorImage.Stock = "gtk-yes";
     }
 }