Basic ways to skin a dialog box using the Skinmagic tool

Source: Internet
Author: User

First, Making skin Files

The first thing to learn is to use the Skinmagicbuilder tool to make skin files.

1. Create/ remove skin window

There are two ways to create a new skin window in Skinmagic Toolkit:

(1) using the "Object" item in the menu bar, select "Window"-〉 "Skinframewindow";

(2) Use the Skin Object toolbar. First, select Object Bar under the View menu to make the Skin Object toolbar appear in the window. Next, in the toolbar, select the skin Object under the Skinmagic folder, right-click the mouse, and select "Window"-〉 "Skinframewindow" in the Popup shortcut menu.

To remove a skin window, select the window you want to delete, and choose the Delete option under the Edit menu.

Skinmagic uses an image-cutting method in all skin windows, where we call it the nine map. The so-called nine diagram, is to divide an object into the upper left (1) (topleft), Upper Middle (2) (middletop), upper right (3) (topleft), center left (4) (Middleleft), client area (5) (client), right (6) (middleright), lower left (7) (bottomleft), lower Middle (8) (bottommiddle), lower right (9) (BottomRight) nine parts. The size of each of these palaces can be adjusted by setting the parameters of the nine graph.

2. size of Skin - setting window

Double-click the left mouse button on the skin window of the workspace to eject the Settings window.

3. setting the skin skin window property values

The Skinmagic default setting displays the Object Inspector toolbar in the window. If not, you can do so by selecting the Object Inspector item under the View menu.

4. Nine - palace image set for skin Skin window

Before you set a nine picture for a skin window, you need to add a picture object. There are several ways to add, just one: Select the load image item under the Object menu and select the image (JPG format not supported) to add. Once added, the picture is displayed under the Image object item in the Skin Object toolbar. There are a number of ways to delete pictures, just one: Select the image name in the Skin object, right-click the mouse, and select the Unload image item in the Popup shortcut menu.

After the picture is loaded, when you edit the program's main interface or control, click the Image property value area to pop up the image editing window. In the Picture editing window, you can drag and drop to determine the selected area, you can set whether to stretch the properties, for a single color, a single picture, you can choose to stretch properties, otherwise it is best to use non-extruded properties.

5. Add skin Control

There are two ways to add skin controls:

(1) In the Skin Object toolbar to add the control's Skins window, right click on the mouse, in the Popup shortcut menu, select Standard Control, in the submenu select the appropriate control name.

(2) Another way is to select the Object menu option in the menu bar, select Standard control from the drop-down menu, and select the appropriate control name in the submenu.

Second, using skin files

After the production of the skin file, save the. smf file and store it in the project's resource directory to make the interface change skin. The steps are as follows:

(1) Add the header file SkinMagiclib.h in the Skinmagic Toolkit to the current workspace.

(2) Use libraries provided by Skinmagic Toolkit: skinmagic.dll,skinmagic.lib (using SkinMagicU.lib and SkinMagicU.dll under Unicode encoding).

(3) Initialize the library in the project's dialog initialization function by:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.