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

wxFindReplaceData 保存了 wxFindReplaceDialog 的資料。

它用於初始化對話框的預設值,並在對話框關閉時保留最後的值。 它也會在每次產生 wxFindDialogEvent(在 wx 中未實作)時更新,因此您可以直接查詢此物件,而無需使用 wxFindDialogEvent(在 wx 中未實作)的方法。

請注意,所有 SetXXX() 方法只能在顯示對話框之前呼叫,之後呼叫它們沒有任何效果。

wxWidgets 文件:wxFindReplaceData

摘要

函式

銷毀物件

取得要搜尋的字串。

取得 wxFindReplaceFlags 值的組合。

取得替換字串。

等同於 new([])

建構子將旗標初始化為預設值 (0)。

設定要搜尋的字串(作為對話框的初始值)。

設定要用於初始化對話框控制項的旗標。

設定替換字串(作為對話框的初始值)。

型別

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

函式

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

銷毀物件

-spec getFindString(This) -> unicode:charlist() when This :: wxFindReplaceData().

取得要搜尋的字串。

-spec getFlags(This) -> integer() when This :: wxFindReplaceData().

取得 wxFindReplaceFlags 值的組合。

連結到此函式

getReplaceString(This)

檢視原始碼
-spec getReplaceString(This) -> unicode:charlist() when This :: wxFindReplaceData().

取得替換字串。

-spec new() -> wxFindReplaceData().

等同於 new([])

-spec new([Option]) -> wxFindReplaceData() when Option :: {flags, integer()}.

建構子將旗標初始化為預設值 (0)。

連結到此函式

setFindString(This, Str)

檢視原始碼
-spec setFindString(This, Str) -> ok when This :: wxFindReplaceData(), Str :: unicode:chardata().

設定要搜尋的字串(作為對話框的初始值)。

-spec setFlags(This, Flags) -> ok when This :: wxFindReplaceData(), Flags :: integer().

設定要用於初始化對話框控制項的旗標。

連結到此函式

setReplaceString(This, Str)

檢視原始碼
-spec setReplaceString(This, Str) -> ok when This :: wxFindReplaceData(), Str :: unicode:chardata().

設定替換字串(作為對話框的初始值)。