PC SOFT

WINDEV的在线文档

  • Overview
  • Configuring the sidebar panes
  • Managing the panes
  • Managing the background image of the panes
  • States of the panes
  • Special case: image of 3-image panes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Characteristics of a sidebar

Overview
The main characteristics of a "Sidebar" control are configured:
  • in the "General" tab of the control description: you have the ability to configure each sidebar pane.
  • in the "GUI" tab of the control description: you have the ability to configure the management of panes.
  • in the "Details" tab of the control description: you have the ability to configure the background image of the panes.

Configuring the sidebar panes
The "General" tab of the description window of the "Sidebar" control is used to:
  • add, delete, insert new tabs.
  • configure for the pane selected in the preview:
    • the initial status of the pane.
    • its caption.
    • the image associated with the pane.
      Caution: This image does not correspond to the background image of the pane but to an image displayed on the left of the caption.
Note: No automatic scrollbar is found in the sidebar panes. If some controls cannot be displayed, the controls are truncated.

Managing the panes
The "GUI" tab in the description window of the "Sidebar" control is used to manage the display of the sidebar panes.

You have the ability to configure:

  • the animation when changing pane.
  • the storage of the active pane. If this option is selected, the active pane will be stored when closing the window. This pane will be automatically selected during the next window opening.

Managing the background image of the panes
The "Details" tab in the description of the "Sidebar" control is used to manage the background image of the panes. This image is used by all the pane buttons. This image can contain the different states of the button associated with the pane.

To get outstanding images, check the image catalog of WinDev/WinDev Mobile and select a button image with 5 states.

States of the panes

The different states of the pane can be managed via the image associated with the pane.

Each status corresponds to a specific drawing. All the drawings are saved in a single image. This image is associated with the pane: all you have to do is specify the number of states (or drawings) found in the image file.

Example: image file BluePane.gif

Normal, pressed, grayed, selected, rollover pane

Windows支持的图片格式为:
  • Bitmap (*.BMP)
  • 图形交换格式(*.gif)
  • 联合图像专家小组(*.jpg ; *.jpeg)
  • 柯达照片CD(*.pcd)
  • PaintBrush(*.pcx)
  • Adobe Photoshop格式(*.psd)
  • TrueVision TARGA(*.tga)
  • 标记图像文件格式(*.tif ; *.tiff)
    注意: 不支持tiff 6.0标准的"tiled tiff"选项。 在这种情况下,我们建议您以tiff 5.0标准储存图片。
  • Portable Network Graphics (*.png)
  • Windows元文件(*.emf ; *.wmf)
  • 图标(*.ico ; *.icw)
  • 光标(*.CUR) *.cur
  • Portable Document Format (*.pdf)
  • 15版本和更高版本
    Scalable Vector Graphics (*.svg)
    15新版本
    Scalable Vector Graphics (*.svg)
    Scalable Vector Graphics (*.svg)
注意: 若想管理pdf和svg格式,您必须为Windows 2000以及更低版本的计算机安装GDIPLUS.DLL。 对于更高的版本,该DLL由Windows默认提供。 想了解更多信息,请查阅GDI+框架

Special case: image of 3-image panes

The image of the panes will be automatically divided into 3 images by WinDev.

The dividing rule is as follows:

  • the image is divided into three sections
  • the section 1 corresponds to the left area
  • the section 3 corresponds to the right area
  • the section 2 corresponds to the middle area. The size of this section is equal to 16 pixels. If the tab pane is proportional to the caption, this section will be repeated as many times as necessary to contain the caption.

Note: If the section 2 of your image is smaller than 16 pixels, it is better not to use a pane proportional to the caption and to include (if necessary) the additional images and the caption in the image.