楼主可真是新手!对C++也不熟悉吧!
evt.GetPosition() 取得鼠标当前坐标,想对于父窗口的坐标系
ClientToScreen() 转换坐标系到屏幕坐标系
GetPosition() 取得窗口坐标,想对于父窗口的坐标系
Search found 53 matches
- Wed Sep 17, 2008 3:48 am
- Forum: wxWidgets Development (Chinese)
- Topic: 新手求教
- Replies: 2
- Views: 2505
- Mon Sep 15, 2008 12:58 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 新建类的问题
- Replies: 2
- Views: 2093
- Mon Sep 15, 2008 12:56 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 关于wxWidgets绘图
- Replies: 5
- Views: 3953
- Wed Sep 10, 2008 5:17 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何在win和linux下能编译同一个程序?
- Replies: 5
- Views: 4387
- Mon Sep 01, 2008 7:22 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxListCtrl中文本长度?
- Replies: 0
- Views: 1353
wxListCtrl中文本长度?
我用wxListCtrl时,发现其文本长度最大到511。超过这个数量,自动截断字符,如何解决?
DeleteAllItems 函数会不会删除Data中的堆内存?
DeleteAllItems 函数会不会删除Data中的堆内存?
- Thu Aug 14, 2008 3:16 am
- Forum: wxWidgets Development (Chinese)
- Topic: CB中编绎wxWidgets时突然出现这个错误
- Replies: 4
- Views: 3055
- Tue Aug 12, 2008 3:59 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxFileDialog 错误??
- Replies: 2
- Views: 2274
- Tue Aug 12, 2008 3:48 am
- Forum: wxWidgets Development (Chinese)
- Topic: CB中编绎wxWidgets时突然出现这个错误
- Replies: 4
- Views: 3055
- Fri Aug 08, 2008 11:57 pm
- Forum: wxWidgets Development (Chinese)
- Topic: wxFileDialog 错误??
- Replies: 2
- Views: 2274
wxFileDialog 错误??
我的代码很简单 void helloDialog::OnAbout(wxCommandEvent &event) { wxFileDialog dlg(this); dlg.ShowModal(); } 正常运行,没问题。 debug跟踪,到 showmodal时,出现错误: Program received signal SIGILL, Illegal instruction. wxFileDialog 窗口可以显示,但鼠标移到wxFileDialog窗口一二秒后,就出现这个错误? 在我编译的wxWidget2.88和wxWidget2.87都出现这个错误,我用的是gcc 3.4.5...
- Tue Aug 05, 2008 7:44 am
- Forum: wxWidgets Development (Chinese)
- Topic: 窗口边框和任务栏?
- Replies: 4
- Views: 3356
- Tue Aug 05, 2008 7:40 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何更改wxStaticText 和wxTextCtrl的字体和颜色?
- Replies: 4
- Views: 5074
- Sun Aug 03, 2008 6:32 am
- Forum: wxWidgets Development (Chinese)
- Topic: 窗口边框和任务栏?
- Replies: 4
- Views: 3356
- Tue Jul 29, 2008 2:06 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何更改wxStaticText 和wxTextCtrl的字体和颜色?
- Replies: 4
- Views: 5074
我设置字体是成功的,但改完字体后,颜色变了,这个如何解决Loaden wrote:这是设置按钮字体的代码,或许可以参考:Code: Select all
wxButton* pShow = new wxButton(this, ID_BTN_SHOW, _T("Start")); wxFont font(50, wxFONTFAMILY_ROMAN, wxNORMAL, wxBOLD, false, _T("Comic Sans MS"), wxFONTENCODING_ISO8859_1); pShow->SetFont(font);
- Mon Jul 28, 2008 6:27 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何更改wxStaticText 和wxTextCtrl的字体和颜色?
- Replies: 4
- Views: 5074
如何更改wxStaticText 和wxTextCtrl的字体和颜色?
在程序运行中如何更改wxStaticText 和wxTextCtrl的字体和颜色?
我使用的是SetFont SetForegroundColour
SetForegroundColour还正常,但使用SetFont后,出现问题
1. wxStaticText的对齐方式变成默认,左对齐,我设的是中间
2. wxTextCtrl的颜色变了,变成黑色。
如何处理?
我使用的是SetFont SetForegroundColour
SetForegroundColour还正常,但使用SetFont后,出现问题
1. wxStaticText的对齐方式变成默认,左对齐,我设的是中间
2. wxTextCtrl的颜色变了,变成黑色。
如何处理?
- Wed Jul 23, 2008 5:49 am
- Forum: wxWidgets Development (Chinese)
- Topic: 不更改继承关系如何通过其他方式更改外观
- Replies: 2
- Views: 2511