My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
HImageCheckbox  
HImageCheckbox widget information
Updated Feb 4, 2010 by fr.dan...@gmail.com

Introduction

A checkbox widget that allows you to use custom icons for checked/unchecked states.

Details

Properties:

HPosition TextPosition gets/sets the text position
bool Checked gets/sets if the checkbox is checked
Pixbuf CheckedImage gets/sets the checked image
Pixbuf UncheckedImage gets/sets the unchecked image
string Text the text displayed

HPosition enum: Top, Bottom, Left, Right, TopLeft, TopRight, BottomLeft, BottomRight, Center

Code sample:

    HImageCheckBox chk = new HImageCheckBox("Holly widgets are the best");
    chk.CheckedImage   = GraphUtil.pixbufFromStock( "gtk-yes", Gtk.IconSize.Button );
    chk.UncheckedImage = GraphUtil.pixbufFromStock( "gtk-no" , Gtk.IconSize.Button );
    chk.TextPosition   = HPosition.Center;
    this.Add( chk );
Powered by Google Project Hosting