Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
ONEEYEMAN
Part Of The Furniture
Posts: 7459 Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine
Post
by ONEEYEMAN » Thu Jan 14, 2021 10:19 pm
Hi,
cutecode wrote: ↑ Thu Jan 14, 2021 9:46 pm
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
Weird.
Are you saying that its doing a recursion with OnFrameMove()?
Because according to your message this is a flow:
Code: Select all
SetPosition()
OnFrameMove()
OnFrameMove()
Thank you.
cutecode
Super wx Problem Solver
Posts: 425 Joined: Fri Dec 09, 2016 7:28 am
Contact:
Post
by cutecode » Thu Jan 14, 2021 10:26 pm
see this
Code: Select all
OnFrameMove2
1x27
OnFrameMove
0x0
OnFrameMove
ONEEYEMAN
Part Of The Furniture
Posts: 7459 Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine
Post
by ONEEYEMAN » Thu Jan 14, 2021 11:26 pm
Hi,
Why do you have OnFrameMove2() and OnFrameMove()?
Thank you.
cutecode
Super wx Problem Solver
Posts: 425 Joined: Fri Dec 09, 2016 7:28 am
Contact:
Post
by cutecode » Fri Jan 15, 2021 6:37 am
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()
cutecode
Super wx Problem Solver
Posts: 425 Joined: Fri Dec 09, 2016 7:28 am
Contact:
Post
by cutecode » Fri Jan 15, 2021 6:44 am
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
Code: Select all
void MyFrame::OnFrameMove(wxMoveEvent& event)
{
if (!m_bFinishedLoading)
return;
...
Setposition() is called only after aplication full load
Thank you