Search found 12 matches

by happywilma
Fri Dec 02, 2011 1:46 am
Forum: C++ Development
Topic: \src\msw\window.cpp(643): 'SetFocus' failed with error 0x000
Replies: 3
Views: 552

Re: \src\msw\window.cpp(643): 'SetFocus' failed with error 0

when I delete "SetAppName(**)" ,everything is ok. But I don't know why?
by happywilma
Thu Dec 01, 2011 2:11 pm
Forum: C++ Development
Topic: \src\msw\window.cpp(643): 'SetFocus' failed with error 0x000
Replies: 3
Views: 552

\src\msw\window.cpp(643): 'SetFocus' failed with error 0x000

at first , everything was ok, but suddenly I restarted my program and UI couldn't display , and I close the ".exe" ," \src\msw\window.cpp(643): 'SetFocus' failed with error 0x000" ,saw this error. I searched a lot,but didn't find an effect method to solve it . anybody happened to it?
by happywilma
Tue Nov 22, 2011 12:21 pm
Forum: C++ Development
Topic: about sizer
Replies: 4
Views: 1020

Re: about sizer

Thank you very much, I learned a lot .
by happywilma
Tue Nov 22, 2011 11:46 am
Forum: C++ Development
Topic: about sizer
Replies: 4
Views: 1020

Re: about sizer

I have added some spacer, like this : int w,h; GetClientSize(&w,&h); user_sizer->Add(w*0.6,-1); and the effect like : 11.jpg but when I cliked the maximize button, the distance didn't change , like this: 12.jpg I want to make the distance changed with the whole panel size changing, what can I do?
by happywilma
Tue Nov 22, 2011 3:21 am
Forum: C++ Development
Topic: about sizer
Replies: 4
Views: 1020

about sizer

5 (2).jpg I want to create a top sizer, and a left sizer and a right sizer embedded onto it , but I want that left sizer locates the leftmost and right sizer locates the rightmost ,but they are in the same line. I use wxFlexGridsizer as top_sizer and wxBoxSizer as left or right sizer ,but that's no...
by happywilma
Mon Nov 21, 2011 1:45 pm
Forum: C++ Development
Topic: how to set the size of every control parts on diaplay
Replies: 4
Views: 714

Re: how to set the size of every control parts on diaplay

I will try it . thanks for your answers
by happywilma
Mon Nov 21, 2011 1:20 pm
Forum: C++ Development
Topic: how to set the size of every control parts on diaplay
Replies: 4
Views: 714

Re: how to set the size of every control parts on diaplay

wxaui can match some sizer like wxBoxsizer to make some layout?
by happywilma
Mon Nov 21, 2011 8:10 am
Forum: C++ Development
Topic: how to set the size of every control parts on diaplay
Replies: 4
Views: 714

how to set the size of every control parts on diaplay

I use wxAuiPaneInfo to layout some controls, but when startup, every contrls'size is not coordinated, I want to adjust the controls in the middle ,and make it bigger ,make the bottom controls smaller, how to do? thanks!
by happywilma
Mon Nov 21, 2011 8:04 am
Forum: wxWidgets Development (Chinese)
Topic: wxAuiPaneInfo初始时 各控件大小的设置
Replies: 1
Views: 2320

wxAuiPaneInfo初始时 各控件大小的设置

我用wxAuiMnager布局页面如下 : 如何调整各部份初始显示的大小??我想使得中间两个控件大一些 下面的小一些 谢谢
by happywilma
Sat Nov 19, 2011 12:18 pm
Forum: wxWidgets Development (Chinese)
Topic: 关于wxToolBar的布局
Replies: 2
Views: 2928

关于wxToolBar的布局

[img]C:\Users\wilma\Desktop\1.jpg[/img]
我想设计一个toolbar左边是一些wxbitmap 右边实时显示时间, 时间要在wxtoolbar的最右边, 我想问下 在wxToolBar上怎样布局tool or contorl
实现效果类似如下:
by happywilma
Thu Nov 17, 2011 8:14 am
Forum: wxWidgets Development (Chinese)
Topic: wxAuiInfoPane如何管理控件大小?
Replies: 1
Views: 1907

wxAuiInfoPane如何管理控件大小?

我想在一个面板上左边设置一个wxTreeCtrl 右边有一个图片展示,随着右边图片数量的增多 左边控件是变化的,我想让wxTreeCtrl长度只占整个窗口长度的20%,宽度随窗口变化 用wxAuiInfoPane如何办到呢?
by happywilma
Thu Nov 17, 2011 7:05 am
Forum: wxWidgets Development (Chinese)
Topic: 请问 在wxAuimanager中 怎么固定一个控件的大小
Replies: 1
Views: 2297

请问 在wxAuimanager中 怎么固定一个控件的大小

我向面板中左边添加一个wxTreeCtrl控件,右边添加多个图片,用wxAuiManager管理,wxTreeCtrl大小随着图片个数增加变化,我想固定wxTreeCtrl的大小,用了wxAuiPaneInfo中的MaxSize也不管用,想请教应该怎么弄呢?

就是类似附件中的图