C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Changing web dialog scheme in runtime

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 10
shovaly Posted: Mon, Oct 6 2008 3:56 AM

 Hi I saw that you can modify the webdialog schemes in design time via auto format to cool windows templates

is there a way to do it programatically in runtime mode

Thanks

Yaniv

Not Ranked
Posts 10
shovaly replied on Mon, Oct 6 2008 6:14 AM

 Nevermind i found my answer

 

for setting a webdialog window as vista style do the following

C1WebDialog wd = new C1WebDialog();

wd.DialogBorder.LeftTopUrl = "res:Schemes.Vista.TitleLeft.gif";
            wd.DialogBorder.TopUrl = "res:Schemes.Vista.TitleCenter.gif";
            wd.DialogBorder.RightTopUrl = "res:Schemes.Vista.TitleRight.gif";
            wd.DialogBorder.RightUrl = "res:Schemes.Vista.ContentRight.gif";
            wd.DialogBorder.RightBottomUrl ="res:Schemes.Vista.StatusRight.gif";
            wd.DialogBorder.BottomUrl = "res:Schemes.Vista.StatusCenter.gif";
            wd.DialogBorder.LeftBottomUrl = "res:Schemes.Vista.StatusLeft.gif";
            wd.DialogBorder.LeftUrl ="res:Schemes.Vista.ContentLeft.gif";
            wd.CaptionButtons.CloseButton.HoverImageUrl = "res:Schemes.Vista.CloseOver.gif";
            wd.CaptionButtons.CloseButton.ImageUrl = "res:Schemes.Vista.Close.gif";
            wd.CaptionButtons.CloseButton.Tooltip = "Close";
            wd.CaptionButtons.Icon.Visible = false;

            wd.CaptionButtons.MaximizeButton.HoverImageUrl = "res:Schemes.Vista.MaximizeOver.gif";
            wd.CaptionButtons.MaximizeButton.ImageUrl = "res:Schemes.Vista.Maximize.gif";
            wd.CaptionButtons.MaximizeButton.Tooltip = "Maximize";
            

            wd.CaptionButtons.CloseButton.HoverImageUrl = "res:Schemes.Vista.MinimizeOver.gif";
            wd.CaptionButtons.CloseButton.ImageUrl = "res:Schemes.Vista.Minimize.gif";
            wd.CaptionButtons.CloseButton.Tooltip = "Minimize";

            wd.CaptionButtons.RestoreButton.HoverImageUrl = "res:Schemes.Vista.NormalizeOver.gif";
            wd.CaptionButtons.RestoreButton.ImageUrl = "res:Schemes.Vista.Normalize.gif";
            wd.CaptionButtons.RestoreButton.Tooltip = "Restore";

 

wd.ContentUrl = "Some Url";
wd.ShowOnLoad = true;

 

Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.