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

迷你框架是一個帶有小標題列的框架。

它適用於不應佔用太多螢幕空間的浮動工具列。

迷你框架的範例可以在 page_samples_dialogs 中,使用「通用對話框」子選單的「迷你框架」命令看到。

樣式

此類別支援以下樣式

  • wxICONIZE: 將框架圖示化(最小化)(僅限 Windows)。

  • wxCAPTION: 在框架上放置標題。

  • wxMINIMIZE: 與 wxICONIZE 相同。

  • wxMINIMIZE_BOX: 在框架上顯示最小化方塊(僅限 Windows 和 Motif)。

  • wxMAXIMIZE: 將框架最大化顯示(僅限 Windows)。

  • wxMAXIMIZE_BOX: 在框架上顯示最大化方塊(僅限 Windows 和 Motif)。

  • wxCLOSE_BOX: 在框架上顯示關閉方塊。

  • wxSTAY_ON_TOP: 保持在其他視窗之上(僅限 Windows)。

  • wxSYSTEM_MENU: 顯示系統選單(僅限 Windows 和 Motif)。

  • wxRESIZE_BORDER: 在視窗周圍顯示可調整大小的邊框。

備註:此類別在 Windows 和 GTK 下具有迷你框架功能,也就是說,迷你框架的存在不會在工作列中顯示,並且焦點行為也不同。在其他平台上,它的行為就像一個普通的框架。

參見

此類別衍生自,並且可以使用以下類別的函式

wxWidgets 文件:wxMiniFrame

摘要

函式

用於兩步驟框架建構。

銷毀物件

預設建構子。

建構子,建立視窗。

類型

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

函式

連結到此函式

create(This, Parent, Id, Title)

檢視原始碼
-spec create(This, Parent, Id, Title) -> boolean()
                when
                    This :: wxMiniFrame(),
                    Parent :: wxWindow:wxWindow(),
                    Id :: integer(),
                    Title :: unicode:chardata().

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

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

用於兩步驟框架建構。

請參閱 new/4 以了解更多詳細資訊。

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

銷毀物件

-spec new() -> wxMiniFrame().

預設建構子。

連結到此函式

new(Parent, Id, Title)

檢視原始碼
-spec new(Parent, Id, Title) -> wxMiniFrame()
             when Parent :: wxWindow:wxWindow(), Id :: integer(), Title :: unicode:chardata().

等同於 new(Parent, Id, Title, [])

-spec new(Parent, Id, Title, [Option]) -> wxMiniFrame()
             when
                 Parent :: wxWindow:wxWindow(),
                 Id :: integer(),
                 Title :: unicode:chardata(),
                 Option ::
                     {pos, {X :: integer(), Y :: integer()}} |
                     {size, {W :: integer(), H :: integer()}} |
                     {style, integer()}.

建構子,建立視窗。

備註:在非 Windows 平台上,框架的行為就像一個普通的框架。

參見:create/5