Search found 144 matches

by zhouhao
Thu Dec 27, 2007 7:48 am
Forum: C++ Development
Topic: Question about wxDirPickerCtrl and wxDirDialog
Replies: 6
Views: 1112

priyank_bolia wrote:O! you mean this:

Code: Select all

m_dirPickerSrc->GetWindowChildren()[1]->SetLabel(wxT("Priyank"));
I didn't try this. I tried this one because I though wxDirPicker itself is a control which can has a label.

Code: Select all

    m_dirPickerSrc->SetLabel(wxT("Priyank"));
Anyway I'll try your method.
by zhouhao
Thu Dec 27, 2007 4:50 am
Forum: C++ Development
Topic: Question about wxDirPickerCtrl and wxDirDialog
Replies: 6
Views: 1112

[quote="priyank_bolia"]check the fourth parameter of the wxDirPickerCtrl constructor.[/quote]

It doesn't work. Still show "Browse" on button.
by zhouhao
Wed Dec 26, 2007 4:11 am
Forum: C++ Development
Topic: Question about wxDirPickerCtrl and wxDirDialog
Replies: 6
Views: 1112

Question about wxDirPickerCtrl and wxDirDialog

My application need to open a dir. I tried wxDirDialog first. I passed wxDD_CHANGE_DIR in the constructor to it. But it doesn't work. The last opened dir can never be saved. So I changed to use wxDirPickerCtrl. It did work when I passed wxDIRP_CHANGE_DIR. The problem is I want to change the label fr...
by zhouhao
Tue Nov 20, 2007 7:08 am
Forum: C++ Development
Topic: Open a file by a default application
Replies: 2
Views: 1322

Open a file by a default application

I want to open a file by the default application. For example, I want to open a .htm file from my wxWidgets application. It could be opened by IE or Firefox etc. I'm calling something like "c:\test\test.htm" in cmd line, the default browser will be popped up and the contents will be displayed correc...
by zhouhao
Sun Nov 18, 2007 2:55 pm
Forum: C++ Development
Topic: Right click on a menu item
Replies: 1
Views: 502

Right click on a menu item

Is there a simpler way to detect a right click on menu item?

What I'm going to do is to capture mouse click event and menu highlight event to decide whether the right click is on a highlighted menu.
by zhouhao
Fri Sep 14, 2007 7:20 am
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 6043

I have simular problem when I use 32-bit png in a toolbar if the system depth is 16-bit. The transparent background turns into black.
by zhouhao
Sun Aug 26, 2007 1:41 am
Forum: Platform Related Issues
Topic: Layered window
Replies: 4
Views: 1693

It works if I did this on top most frame. But that is not what I want because the whole window including title bar will be transparent. I think maybe I misunderstood "Layered Window". I thought it supports multiple layers. So let me rephase my question. What I need is something support 2 windows. On...
by zhouhao
Fri Aug 24, 2007 1:11 pm
Forum: Platform Related Issues
Topic: Layered window
Replies: 4
Views: 1693

On what kind of window are you calling that code? From MSDN: WS_EX_LAYERED Windows 2000/XP: Creates a layered window. Note that this cannot be used for child windows . Also, this cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC. Thanks for you reply. I didn't notice i...
by zhouhao
Fri Aug 24, 2007 1:44 am
Forum: Platform Related Issues
Topic: Layered window
Replies: 4
Views: 1693

Layered window

I searched whole web site. There are quite a lot of question regarding with transparent window/panel. But none of them meet my requirement. There is a style in win32 called WS_EX_LAYERED which support alpha channel and blend effect for a window. Since I'm working under win32 so it's should be no pro...
by zhouhao
Thu Aug 23, 2007 5:25 am
Forum: C++ Development
Topic: Drawing on a activex container
Replies: 3
Views: 616

if you have or can get a wxWindow* to the activex container you should be able to use a wxClientDC to draw on it. http://www.wxwidgets.org/manuals/stable/wx_wxclientdc.html#wxclientdc Not sure if that helps, -Max Thanks for your reply. But id doesn't work. No matter I use wxClientDC or use wxPaintDC.
by zhouhao
Tue Aug 21, 2007 5:21 am
Forum: C++ Development
Topic: Drawing on a activex container
Replies: 3
Views: 616

Drawing on a activex container

I have an application which includes a activex container showing a flash movie. My question is how I can draw some objects such as bitmaps on it directly in my wxWidgets program? I know windows supports Layered window. But wxWidgets doesn't support it although I set the window's style to WS_EX_LAYER...
by zhouhao
Wed Jul 25, 2007 3:01 am
Forum: C++ Development
Topic: event handling for wxactivex
Replies: 4
Views: 732

When I add event table in a panel which is contain of my Flash Window, the event is triggered without any problem. The m_activeX->GetParent()->AddPendingEvent(event) is called in the same way as I add event table inside my flash window. It means the problem might be in event table of my flash window...
by zhouhao
Tue Jul 24, 2007 2:39 pm
Forum: C++ Development
Topic: event handling for wxactivex
Replies: 4
Views: 732

Anybody knows?
by zhouhao
Tue Jul 24, 2007 3:26 am
Forum: C++ Development
Topic: event handling for wxactivex
Replies: 4
Views: 732

When I debug into wxActiveX source code, I found the m_activeX->GetParent()->AddPendingEvent(event) is called. Than means the event has been added. But somehow it's not triggered. Any suggestion?
by zhouhao
Tue Jul 24, 2007 12:41 am
Forum: C++ Development
Topic: event handling for wxactivex
Replies: 4
Views: 732

It doesn't work even I use Connect() like this:

Code: Select all


	Connect(RegisterActiveXEvent(wxT("FlashCall")),		(wxObjectEventFunction) (wxEventFunction) (wxActiveXEventFunction)&wxFlashWin::onFlashCall,(wxObject*) NULL,this);
Why it works if I use event handling in its parent panel?