Hello, after long brake I found a few minutes to post an answer. I used these methods with ordinary windows and I was surprised that it works. Though You can only change the order of one window, and only to top or bottom. And I have one more problem. I tried to use xrc library and I got these warnings.
[Warning] duplicate section `.data$_ZTV16wxTopLevelWindow' has different size
.../Program Files/Dev-Cpp/lib/libwxmsw.a(framecmn.o) C:Program FilesDev-Cppmingw32binld.exe: C
[Warning] duplicate section `.data$_ZTV19wxTopLevelWindowMSW' has different size
/Program Files/Dev-Cpp/lib/libwxmsw.a(toplevel.o) C:Program FilesDev-Cppmingw32binld.exe: C
[Warning] duplicate section `.data$_ZTV19wxTopLevelWindowMSW' has different size ... and many many more.
My xrc file looks like below.<?xml version="1.0" encoding="utf-8"?>
<resource xmlns="http://www.wxwindows.org/wxxrc" rel="nofollow" target="_blank" class="bt">http://www.wxwindows.org/wxxrc" version="2.3.0.1">
<object name="B1" class="wxButton">
<pos>10, 10</pos>
<size>100, 30</size>
</object>
</resource> I should get a button on the frame but I don't. Offcourse I put these two functions into the frame constructor
wxXmlResource::Get()->InitAllHandlers();
wxXmlResource::Get()->Load("resource.xrc");
ps. Thank's for Your help, UpCase. rem. |