Kryptonized SmartClientContrib-Release1.5

Share your code snippets, controls and screenshots.

Moderators: Phil Wright, Chris Porter

Kryptonized SmartClientContrib-Release1.5

Postby gedisoft » Fri Jun 13, 2008 6:51 am

Hi All,

I'm using the CAB (or better the SCSF) and was looking for an outlook bar. On codeplex you can find the "SmartClientContrib-Release1.5-src", including an outlookbar (from matias woloski), but since I'm a great krypton fan, I wanted it kryptonized.... So now I'm doing just that, and I want to share it with you all.

Since I don't know about the licencing and so, I'm only publishing my own work.... So if you want to use it, first download it from codeplex and then insert my code. This is the first part, (others will follow), the headerstrip. Just copy my code in the headerstrip.cs file, and your almost done: there's no items collection (used for the labels in the title) so comment that out in the designer code of the inbox/mail example, and replace it with a title/description of the krypton header
Code: Select all
using System;
using System.Collections.Generic;
using System.Text;

using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Diagnostics;

using System.Windows.Forms;

using ComponentFactory.Krypton.Toolkit;

namespace SCSFContrib.CompositeUI.WinForms.Workspaces
{
   [ToolboxItem(false)]
    public partial class HeaderStrip : KryptonHeader
    {
#region ObsoleteAttribs
        //These attribs were in use with the original headerstrip
        //But since the KryptonHeader does not have them, I obsoleted them
        [ObsoleteAttribute]
        public System.Windows.Forms.ToolStripGripStyle GripStyle { get; set; }
     
        [ObsoleteAttribute]
        public System.Windows.Forms.AutoScaleMode AutoScaleMode { get; set; }
#endregion
 
 #region Overrides
        // I've override the Dock so that the Headerstrip is always docked on the top
        public override DockStyle Dock
        {
            get { return base.Dock; }
            set { base.Dock = DockStyle.Top; }
        }

        // I've override the AutoSize so that the Headerstrip is always high enough
        public override bool  AutoSize
        {
            get { return base.AutoSize ; }
            set { base.AutoSize  = true ; }
        }
 #endregion
 #region Constructor
        public  HeaderStrip()
        {
            this.Dock = DockStyle.Top;
            this.HeaderStyle = HeaderStyle.Primary;
            this.AutoSize = true;
            this.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.Global;
        }
#endregion
    }
}


Greetz
Geert
gedisoft
 
Posts: 27
Joined: Thu Sep 13, 2007 7:45 am
Location: Belgium

Re: Kryptonized SmartClientContrib-Release1.5

Postby terranovatg » Sat Feb 27, 2010 9:10 am

Has anybody done any work Kryptonizing the Smart Client Software Factory?

Care to share?

Thanks.
terranovatg
 
Posts: 4
Joined: Thu Dec 03, 2009 4:47 pm

Re: Kryptonized SmartClientContrib-Release1.5

Postby gedisoft » Sat Feb 27, 2010 6:15 pm

Hi,

As promised, I'm still looking into my repository to find my code again....but you should/could also take a look at viewtopic.php?f=6&t=387&p=1124&hilit=SCSF#p1124.

A reference I know I've used is : http://devlynx.livejournal.com/ (He is/was "CAB'inizing ;) the components of an other vendor (very bad one 8) , but you can learn from his code....One problem I still remember, is that some events weren't present at the time in the Krypton toolkit....

greetz
Geert
gedisoft
 
Posts: 27
Joined: Thu Sep 13, 2007 7:45 am
Location: Belgium

Re: Kryptonized SmartClientContrib-Release1.5

Postby terranovatg » Sun Feb 28, 2010 5:24 am

Thank you!
terranovatg
 
Posts: 4
Joined: Thu Dec 03, 2009 4:47 pm


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest

cron