Search found 120 matches

by Cursor
Fri Jun 02, 2006 7:12 am
Forum: C++ Development
Topic: Working with event between classe
Replies: 5
Views: 1068

You can manipulate and send events directly. You just have to create an event object and send it [1] to your target object. Like that witch simulate a clicked button event: wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, WIDGET_ID); pWidget->ProcessEvent(evt); Note that all wxEvtHandler derived cla...
by Cursor
Thu Jun 01, 2006 5:01 am
Forum: Announcements and Discoveries
Topic: wxWdigets new controls
Replies: 8
Views: 2625

Ok cool.
Good job.
by Cursor
Wed May 31, 2006 3:56 pm
Forum: Announcements and Discoveries
Topic: wxWdigets new controls
Replies: 8
Views: 2625

Re: wxWdigets new controls

Looks nice !

I have just a little question :
eistware wrote: Future releases, will include Pre build distribution for Linux.
As yours widgets looks like standard windows widgets, how will you implement thoses widgets under linux ? corresponding GTK+ widgets or completly rewrited ?
by Cursor
Wed May 31, 2006 3:50 pm
Forum: C++ Development
Topic: ComboBox problem
Replies: 3
Views: 715

Please dump your setState function code.
by Cursor
Wed May 31, 2006 1:57 pm
Forum: C++ Development
Topic: ComboBox problem
Replies: 3
Views: 715

What about setting the combobox label directly with wxComboBox::SetValue [1] ??

[1] : http://www.wxwidgets.org/manuals/2.6.3/ ... oxsetvalue
by Cursor
Tue May 30, 2006 9:23 am
Forum: C++ Development
Topic: Images/Controls + Text Boxes - transparent background colour
Replies: 9
Views: 1401

Perhaps it do that beacause you use wxCLIP_CHILDREN style for your frame.
Indeed, this style force to not repaint the background under children.
test without this style.
by Cursor
Mon May 29, 2006 10:06 am
Forum: C++ Development
Topic: how would I diplay small emoticons in a wxTreeCtrl item???
Replies: 8
Views: 1082

You can use wxStaticBitmap as treectrl child to show the imoticon, you just have to place it. You can retrieve the text coordinates of an item with wxTreeCtrl::GetBoundingRect [1]. You can calculate position of you imoticon in your text with wxDC::GetTextExtent [2] (you can set the item font to the ...
by Cursor
Mon May 29, 2006 5:17 am
Forum: C++ Development
Topic: how would I diplay small emoticons in a wxTreeCtrl item???
Replies: 8
Views: 1082

You cant do it directly, you calculate imoticon place in the wxTreeCtrl and manually place corresponding wxStaticImage (or other) on it.
by Cursor
Thu May 25, 2006 1:20 pm
Forum: C++ Development
Topic: animated images
Replies: 2
Views: 470

You can use wxMediaCtrl but it is designed for video more than light animations.
http://www.wxwidgets.org/manuals/2.6.3/ ... xmediactrl
by Cursor
Thu May 25, 2006 8:18 am
Forum: C++ Development
Topic: wxStatusBar updating statustext on listener
Replies: 2
Views: 526

A simple way to modify status text from anywhere is to use wxLogStatus.
http://www.wxwidgets.org/manuals/2.6.3/ ... xlogstatus
by Cursor
Thu May 25, 2006 7:43 am
Forum: C++ Development
Topic: wxDynamicLibrary and class
Replies: 1
Views: 530

Do I understand correctly ? You want to create a dll with a class implementation. You want to load this dll at runtime, create an instance of this class (by a factory function) and call functions from this instance from the main program ? If it is that, you must declare the class prototype (or at le...
by Cursor
Thu May 25, 2006 7:33 am
Forum: C++ Development
Topic: Drawing Order
Replies: 2
Views: 815

Simply, render is done in the order you write. So if you write : dc.DrawRectangle(origin,wxSize(delta.x,delta.y)); dc.DrawBitmap(wxBitmap(img),wxPoint(100,100)); The rectangle is drawn before the image and will be drawn below the image. So if you want an image with a rectangle on it, you must write ...
by Cursor
Thu May 25, 2006 7:22 am
Forum: C++ Development
Topic: displaying wxImage
Replies: 2
Views: 587

If you want to disply your image in your dialog box, you must handle wxPaintEvent for the dialog and not for the frame.

So derive wxDialog and handle the wxPaintEvent with the same code.
by Cursor
Wed May 24, 2006 2:39 pm
Forum: C++ Development
Topic: doc/view madness
Replies: 3
Views: 704

If you just want to check menu item, you should use wxUpdateUIEvent [1] events to check-it on or off. BEGIN_EVENT_TABLE() EVT_UPDATE_UI(yourid, AFrame::OnUpdateItem) END_EVENT_TABLE() void AFrame::OnUpdateItem(wxUpdateUIEvent event){ event.Check(true); } [1] : http://www.wxwidgets.org/manuals/2.6.3/...
by Cursor
Wed May 24, 2006 2:09 pm
Forum: C++ Development
Topic: WxListBox1->Append(const wxString &Item, void *client
Replies: 4
Views: 1005

IMHO wxListBox (or others) dont copy any data.
If you want to save a data, you must allocate it on the heap and assign the address as data.
If your data is just an integer, you can assign it direclyt with casting.