[Solved] wxFrame.SetPosition flickering
BlitzMax Forums/Brucey's Modules/[Solved] wxFrame.SetPosition flickering
| ||
I have a problem with wxFrame.SetPosition When I call wxFrame.SetPosition it set the position and then it draw the original size when application startup So I until now I call fix it like this: MFrame = New wxFrame.Create(po, b, _title, _x, _y, 500, 300, _style) ... MFrame.GetSize(_w, _h) MFrame.SetPosition(_x, _y) ' Here it draw the window width 500 and window height 300 (start values) MFrame.SetSize(_w, _h) ' Here I redraw the old current valueI start irritate that I get this flickering, when I call: MFrame.SetPosition wx.mod\wxwindow.mod\wxwindow.bmx Method SetPosition(x:Int, y:Int) bmx_wxwindow_setposition(wxObjectPtr, x, y) End Method wx.mod\wxwindow.mod\common.bmx: Function bmx_wxwindow_setposition(handle:Byte Ptr, x:Int, y:Int) wx.mod\wxwindow.mod\glue.cpp: void bmx_wxwindow_setposition(wxWindow * window, int x, int y) { window->SetSize(x, y, -1, -1); }I don't know where I find: window->SetSize? |
| ||
I been sitting the whole day, and realize I don't really need to use MFrame.SetPosition So I can just make a new function and only use MFrame.GetPosition instead! But according to me it's something wrong with wxFrame.SetPosition When you call SetPosition it also SetSize the initziation values too! But I am not clever enough to figure out what, the problem is! |
| ||
I can't fix wxFrame.SetPosition flickering but I find a work around, use: wxFrame.Move instead of wxFrame.SetPosition |