Search found 70 matches

by saifcoder
Sun Nov 17, 2019 9:24 pm
Forum: Platform Related Issues
Topic: wxIEHtmlWin (IWebBrowser2) steals focus
Replies: 3
Views: 1287

Re: wxIEHtmlWin (IWebBrowser2) steals focus

this topic was created on 2011, now 2019 and still have the same problem !!
by saifcoder
Sun Nov 17, 2019 9:15 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

maybe this is the problem: IProtectFocus interface https://docs.microsoft.com/en-us/previo ... dfrom=MSDN
by saifcoder
Sun Nov 17, 2019 8:11 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

Yes, but I didn't find focus event for the wxWebview in the documentation! is there one?
by saifcoder
Sun Nov 17, 2019 7:28 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

I searching how to show the Webview and set it not clickable like mywxWebview->SetEditable(false) but no effect!

Is there any way to create an transparent object (like toSizer) on the top of the window and it hold full form to block any click on the webview !!
by saifcoder
Sun Nov 17, 2019 7:24 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

after updating wxWebView you need to call setFocus to your wxSTC Yes it's work, but when user just click on the wxWebView so no update event created and the focus still on the wxWebView! try wxStyledTextCtrl::SetSTCFocus I don't know what this function do, but I use SetSTCFocus(true) everywhere! an...
by saifcoder
Sun Nov 17, 2019 6:07 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

I search a way to get the event when wxWebview is focused, selected, left click.. to set back the focus to the code editor.

any idea ?
by saifcoder
Sun Nov 17, 2019 5:24 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

Ops, when user Click on Webview, then back to code editor (STC) the Setfocus() stop working!

Anyone have an idea how to use MyWebView->SetPage() without losing focus ?
by saifcoder
Sun Nov 17, 2019 5:21 pm
Forum: C++ Development
Topic: wxStyledTextCtrl for HTML + CSS + JS
Replies: 3
Views: 196

Re: wxStyledTextCtrl for HTML + CSS + JS

got you, so I need to wait for the next version, or I will try adding new lexer!

Thank you,
by saifcoder
Sun Nov 17, 2019 12:33 am
Forum: C++ Development
Topic: wxStyledTextCtrl for HTML + CSS + JS
Replies: 3
Views: 196

wxStyledTextCtrl for HTML + CSS + JS

Is possible to coloris keywords of multiple language in the same time ? ( I mean without clear style or create new object ) HTML + CSS // Set Lexer to HTML MyStyledTextCtrl->SetLexer(wxSTC_LEX_HTML); // HTML Tags obj_CODE->StyleSetForeground (wxSTC_H_TAG,... // CSS Tags obj_CODE->StyleSetForeground ...
by saifcoder
Sat Nov 16, 2019 11:52 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

Re: wxWebView::SetPage() without losing focus

I fixed it by MyTextCtrl->Setfocus(), but is this is the best solution? I mean Setfocus() after every char added (OnKeyDown) ?
by saifcoder
Sat Nov 16, 2019 11:36 pm
Forum: C++ Development
Topic: wxWebView::SetPage() without losing focus
Replies: 10
Views: 334

wxWebView::SetPage() without losing focus

I'm working on a WYSIWYG ( https://en.wikipedia.org/wiki/WYSIWYG ) project, I'm trying to show the result immediately after any change happened to wxTextCtrl, the problem is when I update the wxWebView by SetPage(), cursor focus set automatically to the wxWebView, so user need to click again on wxTe...
by saifcoder
Fri Nov 15, 2019 10:57 pm
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 468

Re: How to disable wxWebview border style ?

got it, thank you so much for this clarification, I appreciate that.
by saifcoder
Mon Nov 11, 2019 11:15 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 468

Re: How to disable wxWebview border style ?

Yes exactly you are right, the problem yesterday is I look at this page https://docs.wxwidgets.org/3.0/classwx_web_view.html Create ( wxWindow *parent, wxWindowID id, const wxString &url=wxWebViewDefaultURLStr, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, con...
by saifcoder
Mon Nov 11, 2019 1:38 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 468

Re: How to disable wxWebview border style ?

I read the exact documentation section thousand times today, but I never noticed that I miss a parameter! #-o
Thank you so much for your help [-o<
by saifcoder
Mon Nov 11, 2019 1:04 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 468

Re: How to disable wxWebview border style ?

I just tested the official wxWebview sample and it's shown the same error, that mean maybe wxBORDER_NONE it's not supported at all by wxWebview! //m_browser = wxWebView::New(this, wxID_ANY, url); m_browser = wxWebView::New(this, wxID_ANY, url, wxPoint(1,1), wxSize(100, 100), wxBORDER_NONE); Any one ...