Hello, world!
Every KUIML document is an XML file, so it traditionally begins with:
- <?xml version="1.0" encoding="utf-8" ?>
It must have a single root element, for example:
The SKIN element serves as the root for the entire skin (and also for any sub-skins loaded dynamically with the KUIML_WIDGET element). DUMMY serves as a root element for included files when your skin is split into multiple parts, and these parts can be included using INCLUDE or INCLUDE_ONCE.
A simple "Hello, world" example
You can save this as "my_script.kuiml" and place it alongside your DSP file "my_script.cxx".
Note that "my_script.cxx" should contain, at minimum, the script name:
- // minimal contents of .cxx file
- string name="My plugin";
Also, ensure that "Custom enabled" is checked in the default skin/Edition pane.

Now, when you load or reload this script in Plug'n Script, you should see something similar to the following:

Next, let's add some attributes to our SKIN.
The SKIN element supports the same attributes as the CELL element, along with some attributes unique to SKIN.

If you choose "Background: None" in the GUI Options and disable all decorations in the default skin, your .kuiml subskin can occupy nearly the entire available space (except for the fixed top menu).

To further customize the top menu, you can either develop your own main skin from scratch (a challenging but rewarding process) or use an existing skin, such as the highly customizable LM Skin.
Comments
Please, authorize to view and post comments.