Search found 207 matches

by spectrum
Thu Oct 22, 2009 10:55 am
Forum: C++ Development
Topic: wxTextCtrl Selected Text
Replies: 4
Views: 721

i would try to reselect all, inside the "change" event.

See:
wxTextCtrl documentation,
EVT_TEXT(id, func),
wxTextCtrl samples.

regards,
by spectrum
Thu Oct 22, 2009 9:08 am
Forum: C++ Development
Topic: wxSkin, issue with modal dialogs
Replies: 3
Views: 736

wxSkin, issue with modal dialogs

Hi all, maybe someone or <<upCase>> can help me, when i do a wxDialog::ShowModal from a wxSkinSimpleFrame, the OnPaint seem not working/processed anymore, buttons and skin controls in the wxSkinSimpleFrame below the dialog are no more updated, even if they get immediatly updated at dialog close. Am ...
by spectrum
Thu Oct 22, 2009 8:10 am
Forum: C++ Development
Topic: Distinguishing between IPs
Replies: 4
Views: 579

hello miclus, what does it mean 2 pepole with same ip ? If you mean that 2 different people use the pc, well there is no magic way to know who is using it, unless you develop a specific protocol that transmit the name. If you mean instead that there are 2 PC with the same ip: 1)both togheter cannot ...
by spectrum
Wed Oct 21, 2009 4:49 pm
Forum: C++ Development
Topic: special semi-modal dialog
Replies: 3
Views: 697

special semi-modal dialog

Hello All, i am looking for a special dialog, but maybe there is already some chance, or an easy way to implement it: If you loow at Wireshark, there are some warning popup dialogs (done trough gtk), for example if you write a wrong filter in the filter bar, an error dialog popup. These dialogs allo...
by spectrum
Tue Oct 20, 2009 8:46 pm
Forum: C++ Development
Topic: wxDialog modal/modeless
Replies: 0
Views: 452

wxDialog modal/modeless

Hello All, just an easy question probably: If i do a wxDialog::ShowModal, the listviews in the wxFrame under the dialog are not correctly graphically updated/refreshed on some events. If i use wxDialog::Show, the frame below get correctly updated, but i need to avoid the user to click on it. Is ther...
by spectrum
Fri Oct 16, 2009 8:44 am
Forum: C++ Development
Topic: SetBellOnError inverted logic?
Replies: 3
Views: 524

hello ikolev,

the iussue has someway fixed, please find the comments in the track bugreport

http://trac.wxwidgets.org/ticket/11318#comment:2

many thanks to have reported it.
regards,
by spectrum
Mon Oct 12, 2009 8:58 pm
Forum: C++ Development
Topic: Socket data download problem :S
Replies: 3
Views: 718

1) download all, is not garantee that \r\n\r\n is in the same packet.
2) wxString all=buf
3) on "all", do wxString::Find "\r\n\r\n"
4) on "all", do wxString::Remove ..
by spectrum
Mon Oct 12, 2009 2:49 pm
Forum: C++ Development
Topic: SetBellOnError inverted logic?
Replies: 3
Views: 524

yes, that's true,

i added a ticket with the fix.

http://trac.wxwidgets.org/ticket/11312

Many thanks
by spectrum
Mon Oct 12, 2009 1:44 pm
Forum: C++ Development
Topic: Socket data download problem :S
Replies: 3
Views: 718

Hello, i can't figure out exactly where is the problem, but i would try the following: 1) dont allocate a buffer everytime you receive a packet, but do it just once. 2) terminate to 0 after received it. 3) Append it to the previous data received. something like (didn't check teh syntax, but should w...
by spectrum
Thu Oct 08, 2009 6:25 am
Forum: C++ Development
Topic: SetBackgroundColour on wxDataViewCtrl
Replies: 0
Views: 374

SetBackgroundColour on wxDataViewCtrl

Hello All, i am using 2.9.0, last snapshot, On a class derived from wxDataViewCtrl SetBackgroundColour(wxColor(255,0,0)); is not working, color stay white only. looking the library 2.9.0 code: void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) { wxDataViewModel *model = GetOwner()->...
by spectrum
Mon Oct 05, 2009 3:42 pm
Forum: C++ Development
Topic: Multiple Event Tables
Replies: 3
Views: 932

You have to declare correctly the event tables, please see the samples. In every derived frame class you need: class YourFrame : public wxFrame { .... DECLARE_EVENT_TABLE(); }; in every cpp you need: BEGIN_EVENT_TABLE (YourFrame , wxFrame) EVT_BUTTON (wxID_OK, YourFrame ::OnOk) EVT_CLOSE (YourFrame ...
by spectrum
Mon Oct 05, 2009 3:14 pm
Forum: C++ Development
Topic: Multiple Event Tables
Replies: 3
Views: 932

every wxFrame or wxWindow derive from other classes, one of them is "wxEvtHandler". So the answer is yes, you have always an event handler for every window. Then, decalring an event table for every frame you can have multiple event table. About declaring and using the tables,sSee the samples include...
by spectrum
Fri Oct 02, 2009 3:45 pm
Forum: C++ Development
Topic: Can I get admin privileges?
Replies: 2
Views: 721

by spectrum
Fri Oct 02, 2009 3:19 pm
Forum: C++ Development
Topic: checksum
Replies: 2
Views: 938

no as part of the official library,

crc is really easy to write, for an md5,
look at this class

http://wxcode.sourceforge.net/docs/webu ... wxMD5.html

regards,
by spectrum
Fri Oct 02, 2009 1:54 pm
Forum: C++ Development
Topic: OnPaint Problem in windows
Replies: 3
Views: 584

just to understand better could you simply try

void iFusionFrame::OnPaintPreview( wxPaintEvent& event )
{
wxPaintDC dc(this);
dc.DrawBitmap( *bmp, 0, 0, false );
}

and then commenting

dc.DrawBitmap( *bmp, 0, 0, false );

thanks