Difference between revisions of "How to use smart docking sd content"

m
(Set Position commands)
Line 32: Line 32:
 
*set_auto_hide
 
*set_auto_hide
  
This feature will make our SD_CONTENT auto hide at one side of main window. See figure 6.
+
This feature make our SD_CONTENT auto hide at one side of main window. See figure 6.
  
 
[[Image:How_to_use_smart_docking_sd_content_figure_6.png]]
 
[[Image:How_to_use_smart_docking_sd_content_figure_6.png]]
  
 
*set_floating
 
*set_floating
 +
 +
This feature make our SD_CONTENT floating at a position. See figure 7.
 +
 +
[[Image:How_to_use_smart_docking_sd_content_figure_7.png]]
  
 
*set_tab_with
 
*set_tab_with

Revision as of 00:27, 10 April 2007

This page explain features in SD_CONTENT.

Set Position commands

Before we call these commands, we assume our widgets' layout look like figure 1.

How to use smart docking sd content figure 1.png

  • set_relative

Remember what's the widgets' layout looks like in figure 1, now we call "content_1.set_relative (content_2, {SD_ENUMERATION}.left)", the result is showing as figure 2.

How to use smart docking sd content figure 2.png

This time, assume our widgets layout looks like figure 1, we change the set_relative second parameter to {SD_ENUMERATION}.top. The result is showing as figure 3.

How to use smart docking sd content figure 3.png

Now, we can image what will the results look like if we change second parameter of SD_CONTENT.set_relative to {SD_ENUMERATION}.right or {SD_ENUMERATION}.bottom. ;)

  • set_top

Assume our widgets layout looks like figure 1, we call "content_1.set_top ({SD_ENUMERATION}.top)". The result is showing as figure 4.

How to use smart docking sd content figure 4.png

We go on from figure 4, we call "content_2.set_top ({SD_ENUMERATION}.top)". See figure 5.

How to use smart docking sd content figure 5.png

You may noticed that there is a grey blank area in the main window, that the editor place holder area. For more informations please see Not added yet.

  • set_auto_hide

This feature make our SD_CONTENT auto hide at one side of main window. See figure 6.

How to use smart docking sd content figure 6.png

  • set_floating

This feature make our SD_CONTENT floating at a position. See figure 7.

How to use smart docking sd content figure 7.png

  • set_tab_with
  • set_default_editor_position
  • set_split_proportion