Search found 14 matches

by ppsmurf
Fri Mar 15, 2019 10:18 am
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Are you sure the approach you use is robust enough to use? This is my first experience with wxWidgets, I'm not sure if my approach is correct. That's why I start this topic :). If I had to do something like this I would try something like 1. When initializing my library (this approach would require...
by ppsmurf
Fri Mar 15, 2019 8:35 am
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

What OSX version you are testing it under? How did you configured wxWidgets? I.e. what was the exact "configure" line you used? ../configure --with-osx_cocoa --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10...
by ppsmurf
Thu Mar 14, 2019 2:06 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Hi, does anyone have any idea please? I need to solve this, but I really don't know how. I have few more questions. 1) How "wx objects" are freed? MyDialog* dlg = new MyDialog(); // wxDialog dlg->ShowModal(); I didn't see "delete" in any example (or am I blind? :D). Do i need "delete dlg;" please? 2...
by ppsmurf
Wed Mar 13, 2019 3:22 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

The wxStaticText is shown as empty white box. There should be text inside, see attachment, this is with the call "wxGetApp().OnRun()".

Thank you.
by ppsmurf
Wed Mar 13, 2019 8:28 am
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Hi, Then that's it - just Show() the dialog without title and button(s) on show and then hide it on Hide(). No "wxGetApp" calls are necessary. Thank you. But only with Pinpad->Show() the dialog looks like this (viz. attachment), thats why I added wxGetApp.OnRun() I guess. (With wxGetApp.OnRun() dia...
by ppsmurf
Tue Mar 12, 2019 5:35 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

So out of curiosity - what happen when the user doesn't enter the PIN or enters it incorrectly? Will there be a confirmation dialog? Will he need to enter it again? Or how does the program can continue execution without valid PIN? There is probably a timer so if user doesn't enter the PIN on time, ...
by ppsmurf
Tue Mar 12, 2019 5:04 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

But independently of that - why the library should care? Think of PinPad as the same external device as the keyboard. There is absolutely no difference between them. From user point of view there is no difference, but from program view it is different (at least in my situation). I'm using library w...
by ppsmurf
Tue Mar 12, 2019 3:52 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Wait, what is the difference between those 2 scenarios - IsPinPad() == true and IsPinPad() == false? This is main problem. The diference is: IsPinPad() == false - user enters PIN in dialog on sreen (in GUI on PC :D), - the flow should stop until the user either enters the pin and click OK IsPinPad(...
by ppsmurf
Tue Mar 12, 2019 9:41 am
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Ok, I will try to explain what I'm trying to achieve. I'm working on cross-platform dynamic library. Which has C and C++ interface (C interface is primarily used). The library implements "PKI" (public key infrastructure), basically it works with smartcards, generates private/public key pairs, parsin...
by ppsmurf
Mon Mar 11, 2019 3:41 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Hi, sorry for my stupidity, I'm new in wxWidgets and GUI programming in general. What is the type of "SignConfirm" object? Why do you need to call "wxGetApp.OnRun()"? SignConfirm is wxFrame. (Besides wxFrame I use some wxDialogs too.) I don't know how to explain it correctly, but my library is not "...
by ppsmurf
Mon Mar 11, 2019 12:19 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

What do you mean by saying "one CreateFrame function is called at a time"? Remember - no GUI should be created/accessed in the secondary thread. Or you mean you want/need to execute the function twice? What problem did you encounter? Sometimes (not very often) library requiers some user confirmatio...
by ppsmurf
Mon Mar 04, 2019 1:41 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

Re: using wxWidgets in library

Thank you for your reply. Yes I check the DLL sample, but I dont think this is what i want. wxFrame is non-blocking, but in context of my lib is blocking because it waits in main loop i guess: PinPadDialog* pinpad= new PinPadDialog(...); // wxFrame pinpad->Show(true); wxGetApp().OnRun(); // program ...
by ppsmurf
Mon Mar 04, 2019 12:02 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 467

using wxWidgets in library

Hello, I'm currently writting a multiplatorm library to work with smartcards. The library itself does not have any main window, it just implements some "computing" functions. But in some situations user interaction is required (e.g. confirm or enter pin). So I want use wxWidgets in a non global way ...
by ppsmurf
Tue Jan 22, 2019 3:25 pm
Forum: Platform Related Issues
Topic: wxDialog ShowModal freeze on macOS
Replies: 10
Views: 248

wxDialog ShowModal freeze on macOS

Hi, I'm currently developing dynamic library used in other aplication (aplication has no GUI). In my lib I have used IMPLEMENT_APP_NO_MAIN macro. Lib can show few frames and dialogs. On Windows everything works fine, but on MacOs some dialog freezes (dialog is visible but not responding). But It fre...