Search found 15 matches

by ExxEnos
Wed Dec 10, 2008 1:36 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

int argc = 0; wxChar **argv = NULL; int res = wxEntryStart(argc, argv); if(res){ wxDialog dlg(NULL, wxID_ANY, _T("Dialog"),wxPoint(200,200), wxSize(450,150), wxCLOSE_BOX); dlg.ShowModal(); } wxEntryCleanup(); wxMessageBox works well. wxDialog, parent of wxMessageBox works once. wxDialog allows resi...
by ExxEnos
Wed Dec 03, 2008 6:21 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

standart wxDialog has same problems with second constructions.
by ExxEnos
Wed Dec 03, 2008 5:08 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

wxMessageDialog mdlg(NULL, wxT("Ы"), wxT("Ы"), wxYES_NO, wxPoint(200,200)); mdlg.ShowModal(); standart wxMessageDialog works well My dialog code here: header: #ifndef __about__ #define __about__ #include <wx/wx.h> #include <wx/defs.h> #include <wx/string.h> #include <wx/stattext.h> #include <wx/gdi...
by ExxEnos
Sat Oct 25, 2008 6:52 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

Auria wrote:Try using EndModal() before destroying to close them gracefully.
I tried.
Auria wrote: When you say ".Applications on Mac with my dialogs works well.", do you mean that the same code works fine when it's not used within a photoshop plugin?
Yes.
by ExxEnos
Sat Oct 25, 2008 6:29 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

I don't think you can create two modal dialogs at once, the idea is generally that a modal dialog is single and one at a time only. Some platforms may allow this, but others may not. This dialogs displays one after other, but they displays correctly. If I show two (or more) dialogs in one Init-UnIn...
by ExxEnos
Sat Oct 25, 2008 1:34 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

Why do you call ShowModal() twice? Also, do you dismiss it with EndModal() when you're done? It's just example. int argc = 0; char **argv = NULL; wxEntryStart(argc, argv); dlgAbout1 = new AboutDialog(NULL, wxID_ANY, _T("About"),wxPoint(200,200), wxSize(446,150), wxSTAY_ON_TOP|wxCLOSE_BOX); dlgAbout...
by ExxEnos
Fri Oct 24, 2008 3:04 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

What do you mean with "crates without redrawing" ? Have you seen the same problem outside photoshop filters? If it's somethin that happens only when doing photoshop filters it's harder for people to help I attached two files. First is screenshot of first "dlgAbout->ShowModal();", second of second. ...
by ExxEnos
Fri Oct 24, 2008 11:47 am
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

I'm may be wrong, but replace the "delete dlgAbout" call with: dlgAbout->EndModal(wxID_OK|wxID_CANCEL) dlgAbout->Destroy() which will free the memory correctly for you. Regards. This code works like mine. I'm think that problem somewhere else. This code (mine and you) works correctly on Windows, bu...
by ExxEnos
Wed Oct 22, 2008 2:04 pm
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 2901

Problem with wxDialog on Mac OS X

I'm writing a photoshop plugin for mac os x in XCode. And I have a problem with dialogs. For example: #include "Dissolve.h" #include "Dialog.h" #include "About.h" #include "DissolveScripting.h" #include "FilterBigDocument.h" bool started = false; FilterRecord *gFilterRecord = NULL; int32 *gDataHandl...
by ExxEnos
Wed Oct 22, 2008 12:28 pm
Forum: wxWidgets Development (Russian)
Topic: Повторная активация диалога
Replies: 4
Views: 1740

Re: Повторная активация диалога

Нет, не помогло. Вот немного измененный код который, работает также как описывалось в первом посте. #include "Dissolve.h" #include "Dialog.h" #include "About.h" #include "DissolveScripting.h" #include "FilterBigDocument.h" bool started = false; FilterRecord *gFilterRecord = NULL; int32 *gDataHandle ...
by ExxEnos
Mon Oct 20, 2008 10:41 am
Forum: wxWidgets Development (Russian)
Topic: Повторная активация диалога
Replies: 4
Views: 1740

borr_1 wrote:Так пальцем в небо что делаешь перед закрытием этих диалогов?

Типа там ShowModal(false) делаешь?
Пробовал следующее (в том числе и вместе):
Close(false);
EndModal(wxID_OK);
Destroy();
Резульатат одинаковый.

Кнопка закрытия диалога во второй раз просто не срабатывает.
by ExxEnos
Fri Oct 17, 2008 1:51 pm
Forum: wxWidgets Development (Russian)
Topic: Повторная активация диалога
Replies: 4
Views: 1740

Повторная активация диалога

Пишу фотошопный плагин под Mac Проблема следующая: любой созданный мной диалог (наследник wxDialog) кроме самого первого создается криво (контролы есть, но они не перерисовываются и не реагируют на события), сам диалог на события реагирует. Следующий код работает так как нужно: int argc = 0; char **...
by ExxEnos
Mon Sep 29, 2008 2:34 pm
Forum: Platform Related Issues
Topic: Cross platform filter plugin for Adobe Photoshop
Replies: 2
Views: 439

Auria wrote:I'm not sure what you meen by "prevent an access violation". Do you mean "cause an access violation" ?

A line that prevents access violations sounds like a good thing to me :)
Sorry, it's really "cause":oops:
by ExxEnos
Mon Sep 29, 2008 1:15 pm
Forum: Platform Related Issues
Topic: Cross platform filter plugin for Adobe Photoshop
Replies: 2
Views: 439

Cross platform filter plugin for Adobe Photoshop

Hi all! I'm developing a cross platform photoshop plugin for Mac OS and WinXP. Systems configuration: - WinXP sp2 : MSVS 2005 , wxWidgets-2.8.8, Adobe Photoshop CS, CS2, CS3; - Mac OS 10.4.8 : XCode 2.4.1 , wxWidgets-2.8.8, Adobe Photoshop CS3. During development process I had a problem: int argc = ...
by ExxEnos
Mon Sep 29, 2008 1:00 pm
Forum: wxWidgets Development (Russian)
Topic: Photoshop filter Win32 Mac OS X
Replies: 0
Views: 799

Photoshop filter Win32 Mac OS X

Всем доброго времени суток. Занимаюсь разработкой кроссплатформенного фильтра для фотошопа, графический интерфейс решил сделать на wxWidgets. Разработка ведется на следующих платформах: - WinXP sp2 : MSVS 2005 , wxWidgets-2.8.8, Adobe Photoshop CS, CS2, CS3; - Mac OS 10.4.8 : XCode 2.4.1 , wxWidgets...