Search found 396 matches

by cutecode
Fri Jul 02, 2021 6:02 am
Forum: wxWidgets Development (Russian)
Topic: WebView и google.ru login
Replies: 10
Views: 7379

Re: WebView и google.ru login

да
by cutecode
Wed Jun 30, 2021 1:14 pm
Forum: Platform Related Issues
Topic: wxListCtrl after moving to wx3.1.6
Replies: 1
Views: 2155

wxListCtrl after moving to wx3.1.6

Debian 9 after moving to wx3.1.6 images in wxListCtrl in icon view look different from wx3.1.4 If image list has size 32x32 m_imageListNormal = new wxImageList(32, 32, true); I have good look 11.png but if change it to 32x64 m_imageListNormal = new wxImageList(32, 64, true); I have this 2.png On Win...
by cutecode
Sun Jun 27, 2021 8:51 pm
Forum: wxWidgets Development (Russian)
Topic: WebView и google.ru login
Replies: 10
Views: 7379

Re: WebView и google.ru login

hello. I called MSWSetEmulationLevel(wxWEBVIEWIE_EMU_DEFAULT) And still java scrypt is not enabled and still have this response Возможно, этот браузер или приложение небезопасны. Подробнее… Попробуйте сменить браузер. Если вы уже используете поддерживаемый браузер, обновите страницу и попробуйте вой...
by cutecode
Tue Mar 09, 2021 4:49 pm
Forum: wxWidgets Development (Russian)
Topic: WebView и google.ru login
Replies: 10
Views: 7379

WebView и google.ru login

Приветствую! Из примера WebView в samples не могу залогиниься в google.ru. Выдает ошибку Попробуйте сменить браузер. Если вы уже используете поддерживаемый браузер, обновите страницу и попробуйте войти ещё раз. Хотя в других браузерах такой ошибки нет. Можно ли как то обойти эту проблему? Спасибо
by cutecode
Sat Feb 13, 2021 9:57 am
Forum: wxWidgets Development (Russian)
Topic: wxString to cp866
Replies: 2
Views: 3903

Re: wxString to cp866

doublemax!
Grate Thanks!!!
by cutecode
Fri Feb 12, 2021 6:46 pm
Forum: wxWidgets Development (Russian)
Topic: wxString to cp866
Replies: 2
Views: 3903

wxString to cp866

Подскажите как перевести wxString to char* cp866

спасибо
by cutecode
Fri Jan 15, 2021 6:44 am
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

Does that code prevent the high CPU load? If yes, you could try to use wxRecursionGuard to do the same. https://docs.wxwidgets.org/trunk/classwx_recursion_guard.html Yes, it prevents, but it overlods for some seconds at startup of aplication. It seems to me I found a solution adding one more flag v...
by cutecode
Fri Jan 15, 2021 6:37 am
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

ONEEYEMAN wrote:
Thu Jan 14, 2021 11:26 pm
Hi,
Why do you have OnFrameMove2() and OnFrameMove()?

Thank you.
OnFrameMove2() is called after exiting from OnFrameMove()
I can't call SetPosition() inside OnFrameMove()
by cutecode
Thu Jan 14, 2021 10:26 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

see this

Code: Select all

OnFrameMove2
1x27
OnFrameMove
0x0
OnFrameMove
by cutecode
Thu Jan 14, 2021 10:08 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

The only solution I see, is setting the flag twice. Just tested on windows, move event is called twice too, after setting SetPissition() wxPoint pt(0, 0); m_nIsMoving++; SetPosition(pt); m_nIsMoving++; } } void MyFrame::OnFrameMove(wxMoveEvent& event) { if(m_nIsMoving > 0) { m_nIsMoving--; return; }...
by cutecode
Thu Jan 14, 2021 9:46 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

This won't help.
After calling SetPosition() - OnFrameMove() is called twice.
The first time immediately after calling SetPosition(), and second time after exiting from OnFrameMove2()

Not sure if this behaver would be all linux distributions
by cutecode
Thu Jan 14, 2021 12:36 am
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

yes, you can check it on my demo virtual server.
Ther's no titlebar, but menuebar behaves like captionbar

https://dentasoft.ru/download.php

Thank you
by cutecode
Wed Jan 13, 2021 10:50 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

As sugested here https://forums.wxwidgets.org/viewtopic.php?f=1&t=26794&p=114388&hilit=wxMoveEvent#p114388 I set timer for every wxMoveEvent This code is working, and prcessor is taking 85% only for 5-10 seconds void MyFrame::OnFrameMove2() { printf("OnFrameMove2\n"); int x, y; GetPosition(&x, &y); ...
by cutecode
Wed Jan 13, 2021 10:17 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

no,
After setting possition to (0, 0)
the real possition is set to (6, 43)

linux gtk3
by cutecode
Wed Jan 13, 2021 9:50 pm
Forum: wxWidgets Development (Russian)
Topic: How to Privent wxFrame from Move and stay it maxsized
Replies: 20
Views: 7756

Re: How to Privent wxFrame from Move and stay it maxsized

Обнаружил проблему с wxMoveEvent Прога "жрет" процессор на 100%. оказалось, что при установке позиции окна в wxPoint(0, 0) опять вызывается wxMoveEvent, и так все в цикле один вызов вызывает другой вызов рекурсивно. Как лучше предотвращать перемещения окна? void MyFrame::OnFrameMove2() { wxPoint pt(...