Windows Form Controls in Fluid

Mar 23, 2010 at 3:52 PM

Hallo,

I just want to know, is it possible to add windows form controls in FluidControl. I am interested in RadioButton, ComboBox, CheckedListBox etc

I tried to with RadioButton but no success.

Here is my Code

  public class FluidRadio : FluidControl
    {
        RadioButton radio;
        public FluidRadio(string name, string text, int x, int y, int w, int h )
            : base(x, y, w, h)
        {
            radio = new RadioButton();
            radio.Text = text;
            radio.Location = new Point(x, y);
            radio.Size = new Size(w, h);
            this.radio.Name = name;            
            this.Bounds = new Rectangle(x, y, w, h);

        }
        protected override void InitControl()
        {
            BackColor = Color.Transparent;
        }
        public bool Checked
        {
            get { return this.radio.Checked; }
            set { this.radio.Checked = value; }
        }
        public override void OnPaint(FluidPaintEventArgs e)
        {
            base.OnPaint(e);
        }
        public bool Visiblity
        {
            set
            {
                this.radio.Visible = true;
                this.Visible = value;
            }
        }
        public override Color ForeColor
        {
            get
            {
                return foreColor.IsEmpty ? Container.ForeColor : foreColor;
            }
            set
            {
                foreColor = value;
                this.radio.ForeColor = value;
            }
        }
       

Any help will be appreciatable.

Kind regards

 

 

Apr 1, 2010 at 2:51 PM
Edited Apr 1, 2010 at 2:52 PM

Did you solve that problem or had anybody the same issue? I'am trying to use a FluidLabel as Base but  I have no clue.

Jun 1, 2010 at 4:55 PM

Hello,

I worked on a WebView control that shows the Windows Mobile WebBrowser natvie control into a FluidPanel control. I'll release the code for it tomorrow.

I'm working on a more generic control that would allow to embed any native control into a FluidPanel. It's almost finished, I'll then release it too.

Hope that Tom69 reads this and put my patches into the main source code so it'd be easier to get.

 

Best regards,

 

Jul 19, 2010 at 2:29 PM
Hi, I just uploaded a patch (#6354) with a WebBrowser control. You can use it as a base to build your own set of Native Control containers. I was working on a generic control to do the job for every type of control but didn't had time to finish it yet (lack of testing and debugging as the code should be complete). Best regards,