Brockmann: "Creating Rich Web
Applications Gets a Ton Easier"

e-grou chooses Visual WebGui
over standard ASP.NET

Quick migration of VB 6.0
Applications to the Web

Fully functional software versions
for 30 days evaluation period

Download the free edition of the
Visual WebGui Studio
 

Code Snippets

lufe posted on December 01, 2009 :: 317 views

This sample shows how to change the loading icon layout behavior, such as image,location and background by using the theme editor (available from from v6.4 and above).

To change the loading icon just open the theme,navigate to the "Loading" node on the skins three. Select the "images" option on teh Resources panel and override the Loading.gif by right clicking it and selecting the Override menu item. After that you just need to change the Theme.LoadingSkin.Loading.gif to the new icon you want to display.

To change the icon location and background, select the "Style Sheets" option on the Resources panel, override the Loading.css file and edit the .Loading-AnimationBox session to reflect the layout you want. On the sample below the session was changed so that the icon is centered and the background is grayed out in the same manner as it happens when a modal form is displayed:

.Loading-AnimationBox
{
 [Skin.LoadingAnimationStyle];
}

to

.Loading-AnimationBox
{
 BACKGROUND-IMAGE: url(Resources.Gizmox.WebGUI.Forms.Skins.LoadingSkin.Loading.gif.wgx);
 BACKGROUND-REPEAT: no-repeat;
 BACKGROUND-POSITION: center center;
 FILTER: alpha(opacity=50); BACKGROUND-COLOR: black
}

 

 

Download Code

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners