Search found 120 matches

by Cursor
Mon Apr 04, 2005 7:12 am
Forum: C++ Development
Topic: Linux - MDI - tabs??
Replies: 16
Views: 3180

I don't think the MDI solutions must be really developped any more (any wx developper can speak about this) because MDI is an old interface-style witch is considered by human-coputer interface specialist as deprecated : 1 - You lost lot of frame surface. 2 - You can lose child windows. ... The speci...
by Cursor
Mon Apr 04, 2005 7:05 am
Forum: C++ Development
Topic: [wxCHoixe] How detect when it is "opened"
Replies: 1
Views: 622

There is no event to detect this because it is very platform-dependant.
But if you really want this, you can look at plateform documentation.

You can look at general wxCommandEvent wxEVT_COMMAND_LEFT_CLICK but I am not sure about the result.
by Cursor
Sun Apr 03, 2005 4:42 pm
Forum: C++ Development
Topic: Scroll event callback is not called
Replies: 3
Views: 858

The wxScrollEvent is generated by a simple wxScrollBar.
You must intercept wxScrollWinEvent if you use the default scrollbars of a window.
by Cursor
Sun Apr 03, 2005 2:50 pm
Forum: General Development
Topic: PNG Icons
Replies: 4
Views: 1935

Windows icon (.ico) file supports alpha. It's just, most of the developers first makes a bitmap (.bmp) file wich doesn't support alpha, then converts it to the windows icon (.ico) file, thus icon file doesn't have alpha information, because bitmap file didn't. It was true before windows XP. .ico an...
by Cursor
Sat Apr 02, 2005 3:23 pm
Forum: C++ Development
Topic: How to achieve on mouse over on the wxBitmapButton?
Replies: 1
Views: 528

You can derivate wxBitmapButton and intercept the wxEVT_ENTER_WINDOW event to do what you want.

http://www.wxwidgets.org/manuals/2.5.4/ ... mouseevent
by Cursor
Sat Apr 02, 2005 9:02 am
Forum: C++ Development
Topic: Event Processing Question
Replies: 3
Views: 1061

Yes, the wxThread is the best solution. If you are processing a socket server query in the same thread than you listen the incoming query, you block the lisening processing. You can implement your code in a wxThread [1] than you can start in the core of the custom socket you implement [2] for the so...
by Cursor
Sat Apr 02, 2005 8:56 am
Forum: C++ Development
Topic: Strange problem about event
Replies: 5
Views: 1107

As the wxPostEvent "post" the event (process the event when no other event are processing [1][2]) and not process it directly, the event is perhaps lost IMHO. Can you use wxEvtHandler::ProcessEvent directly instead of wxProcessEvent. mSearchPanel->ProcessEvent(event) [1] wxPostEvent : http://www.wxw...
by Cursor
Fri Apr 01, 2005 10:41 am
Forum: C++ Development
Topic: How to emulate a button click ?
Replies: 6
Views: 1573

You can emulate all event with create one (a wxMouseEvent for exemple). You must just create an instance of the event, correctly initialize it and process it with wxEvtHandler::ProcessEvent (wxWindow and derivates are wxEvtHandler-based).
by Cursor
Fri Apr 01, 2005 10:38 am
Forum: C++ Development
Topic: Background for wxWindow
Replies: 3
Views: 917

You cant directly assign bitmap but you can override the background drawing to set your own image.

Intercept the wxEraseEvent event with EVT_ERASE_BACKGROUND. Get the device context from the event and draw you own bitmap.

http://www.wxwidgets.org/manuals/2.5.4/ ... eraseevent
by Cursor
Thu Mar 31, 2005 6:47 am
Forum: C++ Development
Topic: wxDateTime assert only in non-debug mode
Replies: 1
Views: 570

Could you dump a part of your code here ?

Have you initialize your object (or your pointer) before use it ? Generaly, the debug mode autoinitialize them but not in release mode.
by Cursor
Wed Mar 30, 2005 6:15 am
Forum: C++ Development
Topic: Flipped blits
Replies: 5
Views: 1275

wxImage::Mirror in wx254 (I dont think it exists before).
by Cursor
Tue Mar 29, 2005 10:04 am
Forum: C++ Development
Topic: popup menu
Replies: 2
Views: 773

You can intercept the right clic (or any other) using EVT_LIST_ITEM_RIGHT_CLICK(id, func).

In this function, you can construct a menu (or reuse another menu) and pop it using wxWindow::PopupMenu.

The infos about the selected item can be retrieved via the event object.
by Cursor
Tue Mar 29, 2005 8:05 am
Forum: C++ Development
Topic: wxTextCtrl and mouse events
Replies: 2
Views: 905

To retrieve the text position from the mouse, you can use the wxTextCtrl::HitTest function.
by Cursor
Mon Mar 21, 2005 8:45 pm
Forum: C++ Development
Topic: Press wxSpinButton
Replies: 3
Views: 831

It is a wxSpinEvent (derived from wxCommandEvent).
Each control class documentation notes the event type generated by the control.
http://www.wxwidgets.org/manuals/2.5.4/ ... spinbutton
by Cursor
Mon Mar 21, 2005 2:00 pm
Forum: General Development
Topic: sizer-troubles
Replies: 2
Views: 864

Are you using a wxGridSizer or wxFlexGridSizer to align them ?
They will align you controls line-by-line and column-by-column. I think they are the good sizer to align a simple form like your.