Changing web dialog scheme in runtime

Legacy

A description has not yet been added to this group.

Changing web dialog scheme in runtime

  • rated by 0 users
  • This post has 1 Reply |
  • 1 Follower
  •  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

  •  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)