檢視原始碼 wxStaticLine (wx v2.4.3)

靜態線只是一條線,可用於對話框中分隔控制項群組。

此線條可能僅為垂直或水平。此外,並非所有埠(特別是 wxGTK)都支援指定線條的橫向方向(例如,水平線的高度),因此為了獲得最大的可移植性,您應該將其指定為 wxDefaultCoord。

樣式

此類別支援以下樣式

  • wxLI_HORIZONTAL:建立水平線。

  • wxLI_VERTICAL:建立垂直線。

請參閱:wxStaticBox

此類別繼承自以下類別,並可使用其函式:

wxWidgets 文件:wxStaticLine

摘要

函式

建立用於兩步驟建構的靜態線。

銷毀物件

此靜態函式返回將賦予靜態線較小尺寸的大小,即

如果線條為垂直則返回 true,如果為水平則返回 false。

預設建構函式。

建構函式,用於建立並顯示靜態線。

類型

-type wxStaticLine() :: wx:wx_object().

函式

-spec create(This, Parent) -> boolean() when This :: wxStaticLine(), Parent :: wxWindow:wxWindow().

等同於 create(This, Parent, [])

-spec create(This, Parent, [Option]) -> boolean()
                when
                    This :: wxStaticLine(),
                    Parent :: wxWindow:wxWindow(),
                    Option ::
                        {id, integer()} |
                        {pos, {X :: integer(), Y :: integer()}} |
                        {size, {W :: integer(), H :: integer()}} |
                        {style, integer()}.

建立用於兩步驟建構的靜態線。

有關詳細資訊,請參閱 new/2

-spec destroy(This :: wxStaticLine()) -> ok.

銷毀物件

-spec getDefaultSize() -> integer().

此靜態函式返回將賦予靜態線較小尺寸的大小,即

水平線的高度或垂直線的寬度。

-spec isVertical(This) -> boolean() when This :: wxStaticLine().

如果線條為垂直則返回 true,如果為水平則返回 false。

-spec new() -> wxStaticLine().

預設建構函式。

-spec new(Parent) -> wxStaticLine() when Parent :: wxWindow:wxWindow().

等同於 new(Parent, [])

-spec new(Parent, [Option]) -> wxStaticLine()
             when
                 Parent :: wxWindow:wxWindow(),
                 Option ::
                     {id, integer()} |
                     {pos, {X :: integer(), Y :: integer()}} |
                     {size, {W :: integer(), H :: integer()}} |
                     {style, integer()}.

建構函式,用於建立並顯示靜態線。

請參閱:create/3