what is "window looses focus" -
1.mouse just moved outside your app window,
2.or mouse moved outside and something was clicked there?
imo window loses focus in case 2 only.
Search found 329 matches
- Tue Nov 12, 2019 9:16 pm
- Forum: C++ Development
- Topic: How to handle KILL_FOCUS globally
- Replies: 3
- Views: 796
- Tue Nov 12, 2019 8:54 pm
- Forum: General Development
- Topic: Fatal exceptions logging
- Replies: 20
- Views: 5234
Re: Fatal exceptions logging
cant solve the problem just now, but can explain a reason. when c++ exception is thrown, c++ runtime will search closest exception handler and unroll the stack. if there is no handler in current frame(try ..catch statement), it will call destructors and close the frame, if there is no handler in pre...
- Tue Nov 12, 2019 4:00 pm
- Forum: C++ Development
- Topic: wxRect doesnot have a copy constructor
- Replies: 5
- Views: 1014
Re: wxRect doesnot have a copy constructor
if you have not provided a copy constructor then you assume that default copy ctor works well. and byte-to-byte copy is what you need.
else you must write explicit trivial copy ctor, and invoke memcpy(...), or field to field copy, inside it.
is it good for programmer?
else you must write explicit trivial copy ctor, and invoke memcpy(...), or field to field copy, inside it.
is it good for programmer?
- Mon Nov 11, 2019 11:51 am
- Forum: C++ Development
- Topic: How to disable wxWebview border style ?
- Replies: 11
- Views: 1974
Re: How to disable wxWebview border style ?
"Create" in wxWIdgets is kinda postponed constructor, they call it - 2 stage creation, when you can allocate and somehow pre-initialize instance at first stage, but initialize completely later. Create is a method of object, you call create for existing instance: instance->Create(...) New -...
- Mon Nov 11, 2019 1:50 am
- Forum: C++ Development
- Topic: How to disable wxWebview border style ?
- Replies: 11
- Views: 1974
Re: How to disable wxWebview border style ?
first hint was - compiler shows you an error in function call. this means that something is wrong in this line. TEST.cpp:76:103: compiler gives you a cursor position of your error line- 103. just put cursor at this position and look what is it? diagnostics - hidden or non existent constructor of wxS...
- Mon Nov 11, 2019 1:28 am
- Forum: C++ Development
- Topic: How to disable wxWebview border style ?
- Replies: 11
- Views: 1974
Re: How to disable wxWebview border style ?
look at documentaion. function New prototype is New ( wxWindow *parent, wxWindowID id, const wxString &url=wxWebViewDefaultURLStr, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &backend=wxWebViewBackendDefault, long style=0, ... you missed con...
- Sun Nov 10, 2019 11:58 pm
- Forum: C++ Development
- Topic: How to disable wxWebview border style ?
- Replies: 11
- Views: 1974
Re: How to disable wxWebview border style ?
not working, or compiled with errors? in file included from D:/.../include/wx/memory.h:15:0, from D:/.../include/wx/object.h:19, from D:/.../include/wx/wx.h:15, from TEST.cpp:4: D:/.../include/wx/string.h: In constructor 'myfram::myfram()': D:/.../include/wx/string.h:303:3: error: 'wxString::wxStrin...
- Thu Nov 07, 2019 9:22 pm
- Forum: C++ Development
- Topic: wxRect doesnot have a copy constructor
- Replies: 5
- Views: 1014
- Tue Nov 05, 2019 4:00 pm
- Forum: C++ Development
- Topic: avoid static cast in payload
- Replies: 3
- Views: 696
Re: avoid static cast in payload
use dynamic_cast<>. at least it will raise an exception if actual cast was wrong.
dynamic cast checks at runtime if pointer can be really cast to given type.
dynamic cast checks at runtime if pointer can be really cast to given type.
- Tue Nov 05, 2019 7:47 am
- Forum: C++ Development
- Topic: wxDialog launched behind application
- Replies: 1
- Views: 435
Re: wxDialog launched behind application
if i remember this function makes a window the topmost, calling window manager.
virtual void wxWindow::Raise();
also you do not need to allocate dialog on the heap. just on the stack
added:
Raise works only for wxTopLevelWindow derived classes, but wxDialog is that derived.
virtual void wxWindow::Raise();
also you do not need to allocate dialog on the heap. just on the stack
added:
Raise works only for wxTopLevelWindow derived classes, but wxDialog is that derived.
- Thu Oct 31, 2019 1:34 pm
- Forum: C++ Development
- Topic: Memory leak with dialogs
- Replies: 4
- Views: 1239
Re: Memory leak with dialogs
to test memory leaks better you must override new and delete operators.
- Tue Oct 29, 2019 11:38 pm
- Forum: Compiler / Linking / IDE Related
- Topic: [SOLVED] CB or wxWidgets issue?
- Replies: 5
- Views: 1400
Re: [SOLVED] CB or wxWidgets issue?
CB, as i remember has his original build system. May be it somehow connected with it.
May be better to use cmake and custom build to avoid such errors.
In my builds i use cmake and it never failed or something. But i use custom IDE which generates cmake files automatically.
May be better to use cmake and custom build to avoid such errors.
In my builds i use cmake and it never failed or something. But i use custom IDE which generates cmake files automatically.
- Tue Oct 29, 2019 9:01 pm
- Forum: Compiler / Linking / IDE Related
- Topic: [SOLVED] CB or wxWidgets issue?
- Replies: 5
- Views: 1400
Re: CB or wxWidgets issue?
if everything is identical, could you try to run binary from machine 1 on machine 2? and vice versa. if effect is the same - then something is different on this machines. also you could compare two binaries, on size, symbols inside, binary equivalence, etc. and finally you could build app for testin...
- Mon Oct 28, 2019 8:55 pm
- Forum: wxWidgets Development (Russian)
- Topic: можно ли повысить приоритет основного процесса
- Replies: 5
- Views: 10319
Re: можно ли повысить приоритет основного процесса
если там самостройный интерпретатор самостройного языка, в язык надо вводить паралеллелизм, те же треды, и тогда их можно выполнять на копии виртуальной машины в другом потоке... ну и писать на этом языке в стиле паралельного исполнения.
- Mon Oct 28, 2019 8:51 pm
- Forum: wxWidgets Development (Russian)
- Topic: можно ли повысить приоритет основного процесса
- Replies: 5
- Views: 10319
Re: можно ли повысить приоритет основного процесса
приоритет менять бессмысленно. высокоприоритеные системные потоки и процессы перебивать нельзя, а потоки пользовательские там все твои. если конечно рядом не крутится браузер с видосом. и еще 10 приложений. если не хватает поизводительности, надо: 1. правильно писать саму аппу 2. паралеллить правиль...