我正在開發一個UI應用程序,並嘗試使用CAlertDialogPtr
與IwNUI
系統。我遇到了一個我無法解讀的錯誤,我嘗試添加其他庫和系統,但仍然沒有用。錯誤是:使用Marmalade的AlertDialog錯誤IwNUI
IwAssert failure (GX, 1339). Message: Could not find resource named alertdialog (of type CIwUIElement)
Callstack: CIwResManager::GetResNamed
請幫我/給一些反饋,我需要解決這個問題。這裏是我的一些代碼:
class AppPorBen {
//public attribute
CAlertDialogPtr home_aTest;
//this comes from my main method
home_aTest = CreateAlertDialog(CAttributes()
.Set("name", "AlertDialog")
.Set("title", "s3eNUIAlertDialog")
.Set("message", "Quiere cerrar esta alerta?")//.Set("message", scrollPosition.m_Y)
.Set("positiveButtonCaption", "Yes")
.Set("negativeButtonCaption", "No")
.Set("neutralButtonCaption", "Maybe")
);
//this uses the alert dialog on a handler
home_aTest->Show();
};
謝謝!
雖然我只是將警報對話框的使用改爲S3eDialog低級別的方法,並停止嘗試使用IwNUI方法,但我會嘗試它,它只是立即工作,正如我想的那樣。 – chaotive
從長遠來看,也許這是比我發佈的更好的解決方案,但我已經改變了我的代碼,並且更簡單的方法專注於我的問題的解決方案,這正是我所需要的。反正非常感謝! – chaotive