Search found 15 matches

by keyser
Sun May 24, 2009 2:06 pm
Forum: C++ Development
Topic: I need documentation about wxTreeListCtrl
Replies: 5
Views: 1062

Re: I need documentation about wxTreeListCtrl

Hi, I am using wxPython 2.8.10.1. I am using wx.gizmos.TreeListCtrl. But the documentation of this class has *ONLY ONE* statement: Proxy of C++ TreeListCtrl class . No method documentation, no argument documentation, no constant documentation, nothing. I try to find something like wxTreeListCtrl in...
by keyser
Sun May 24, 2009 1:46 pm
Forum: C++ Development
Topic: I need documentation about wxTreeListCtrl
Replies: 5
Views: 1062

I am very confused when i tried to use wxTreeListCtrl. Here is my code, written in python: self.view = gizmos.TreeListCtrl(id=-1, parent=self, style=wx.TR_DEFAULT_STYLE) self.view.AddColumn(text=u"Name1", width=120) self.view.AddColumn(text=u"Name2", width=100) self.view.AddColumn(text=u"Name3", wid...
by keyser
Sat May 23, 2009 1:02 pm
Forum: C++ Development
Topic: Why SetSize doesn't work ?
Replies: 6
Views: 1570

I am not using sizers. You really should be. Using sizers means that your app will still look sensible when it's resized, with different fonts, in different locales. Yes, sure. I tried it. I create my panel in a wxBoxSizer. Something like this: wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); MyPane...
by keyser
Sat May 23, 2009 12:41 pm
Forum: C++ Development
Topic: I need documentation about wxTreeListCtrl
Replies: 5
Views: 1062

I need documentation about wxTreeListCtrl

I am using wxPython 2.8.10.1. I am using wx.gizmos.TreeListCtrl. But the documentation of this class has *ONLY ONE* statement: Proxy of C++ TreeListCtrl class . No method documentation, no argument documentation, no constant documentation, nothing. I try to find something like wxTreeListCtrl in wxWi...
by keyser
Sat May 23, 2009 12:33 pm
Forum: C++ Development
Topic: Why SetSize doesn't work ?
Replies: 6
Views: 1570

Hi, Then I try something like this: panel.SetSize(this->GetClientSize()); But it does not work at all!!! That probably won't work if it's done before the dialog is shown, as GetClientSize() will return something like 20,20 at that time. Are you using sizers? If so, is the panel parented by the dial...
by keyser
Sat May 23, 2009 11:02 am
Forum: C++ Development
Topic: Why SetSize doesn't work ?
Replies: 6
Views: 1570

Here i captured one picture to show the situation.

I found that wxFrame will work fine, but wxDialog not.
by keyser
Sat May 23, 2009 10:59 am
Forum: C++ Development
Topic: How to control text position inside wxTextCtrl
Replies: 8
Views: 3672

Can you show code and screenshot? Granted, I'm not using wxPython on windows, but I never had issues with default sizes not working Here i captured one picture. The first wxTextCtrl with no border is vertical-centered. The second one is cool, it have default size and default border. But what i need...
by keyser
Sat May 23, 2009 10:49 am
Forum: C++ Development
Topic: Why SetSize doesn't work ?
Replies: 6
Views: 1570

Why SetSize doesn't work ?

I have a sub class of wxPanel (MyPanel). In the constructor method i create some child controls. I have a sub class of wxDialog (MyDialog). In the constructor method i create only one child which is an instance of MyPanel. I hope that the panel will automatically fit the size of MyDialog. But it doe...
by keyser
Sat May 23, 2009 10:42 am
Forum: C++ Development
Topic: Why wxBufferedPaintDC doesn't work ?
Replies: 11
Views: 3275

I was gonna give you the same advice as Infinity_77 but he was first :) You need to do something about the ERASE BACKGROUND event. By default, your window get's filled with the standard background colour just before anything else is drawn onto it. That's what's causing the flicker you see. You will...
by keyser
Thu Apr 30, 2009 2:42 am
Forum: C++ Development
Topic: Why wxBufferedPaintDC doesn't work ?
Replies: 11
Views: 3275

Hi, Thank you for your advise. I am using wxPython with wxWidgets 2.8.9.2 and i found that there is no such function of "SetDoubleBuffered". Of course there is. Try this: import wx help(wx.Window.SetDoubleBuffered) I once tried to set the DOUBLE_BUFFER variable to True before anything is done. I go...
by keyser
Thu Apr 30, 2009 2:40 am
Forum: C++ Development
Topic: How to control text position inside wxTextCtrl
Replies: 8
Views: 3672

Second i found lot's of program which has vertical-centered text control. Such as the input box of Windows Caculator. Nearly *EVERY* program's text ctrl *ARE* vertical-centered. Sorry for my ignorance, I suppose those are single-line text controls? In this case, the easiest might be to simply don't...
by keyser
Wed Apr 15, 2009 4:28 pm
Forum: C++ Development
Topic: Why wxBufferedPaintDC doesn't work ?
Replies: 11
Views: 3275

Thank you for your advise. I am using wxPython with wxWidgets 2.8.9.2 and i found that there is no such function of "SetDoubleBuffered". I once tried to set the DOUBLE_BUFFER variable to True before anything is done. I got nothing but an very *UGLY* in text vendering window (I am using Chinese font)...
by keyser
Wed Apr 15, 2009 4:22 pm
Forum: C++ Development
Topic: How to control text position inside wxTextCtrl
Replies: 8
Views: 3672

Thank you for your answers. First i try to set the height of wxTextCtrl to the exact height of the text inside. That's actully working fine. But the window very *UGLY* because of the wxTextCtrl. Second i found lot's of program which has vertical-centered text control. Such as the input box of Window...
by keyser
Sun Apr 05, 2009 3:02 am
Forum: C++ Development
Topic: Why wxBufferedPaintDC doesn't work ?
Replies: 11
Views: 3275

Why wxBufferedPaintDC doesn't work ?

I create a subclass of wxFrame, in handler of wxEVT_PAINT, i created an wxBufferedPaintDC to avoid flicker, but the flicker is STILL there. The drawing code is quite simple, it draw a background and than draw some text in it. When mouse moved on the window, i use Refresh() to make the window redraw,...
by keyser
Sun Apr 05, 2009 2:58 am
Forum: C++ Development
Topic: How to control text position inside wxTextCtrl
Replies: 8
Views: 3672

How to control text position inside wxTextCtrl

I create a single-line wxTextCtrl, but i found that the text inside wxTextCtrl is vertical-top-aligned. I capture an image from Outlook Express, it's text ctrl have the similar size and font with mine, but it's text position looks like vertical-center-aligned. How can i do that ? Why i cannot post m...