Search found 350 matches

by Lloyd
Fri Nov 02, 2007 9:30 am
Forum: C++ Development
Topic: Is something like wxMessageBox thread safe?
Replies: 4
Views: 1136

Hi, I would like to know one thing in this regard. The user posts an event from the thread and before processing the event the the thread gets finished. In the event handler it has to do something on the thread object. Though the therad object does not exist, in this case wont the application get cr...
by Lloyd
Tue Oct 23, 2007 12:36 pm
Forum: C++ Development
Topic: GUI update from another thread
Replies: 6
Views: 1190

My above post just means that in GTK, threads cannot create a top level window (Frame and Dialog) even if you use wxMutexGuiEnter/wxMutexGuiLeave
by Lloyd
Tue Oct 23, 2007 11:27 am
Forum: C++ Development
Topic: GUI update from another thread
Replies: 6
Views: 1190

But now I need to port the code to Linux with GTK+ and I get deadlock when wxMutexGuiEnter/wxMutexGuiLeave is used. I am not able to get the dialog running from another thread. I would like to quote this from the documentation void ::wxMutexGuiEnter() .... ... Note that under GTK, no creation of to...
by Lloyd
Tue Oct 23, 2007 4:15 am
Forum: C++ Development
Topic: wxStaticText Wrap
Replies: 6
Views: 1873

#include <wx/wx.h> #include<iostream> using namespace std; enum { Menu_File_Quit = wxID_HIGHEST, Menu_File_About, ID_TEXT, ID_PANEL }; class QuestionPanel:public wxPanel { public: QuestionPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); void OnQuestionSi...
by Lloyd
Tue Oct 16, 2007 6:59 am
Forum: C++ Development
Topic: wxStaticText Wrap
Replies: 6
Views: 1873

Why do you want to catch the size event of the static text? If you remove this line, it would work as expected...

Code: Select all

m_staticText1->Connect( wxEVT_SIZE, wxSizeEventHandler( QuestionPanel::OnQuestionSize ), NULL, this );
regards,
Lloyd
by Lloyd
Sat Oct 13, 2007 5:25 am
Forum: C++ Development
Topic: wxStaticText Wrap
Replies: 6
Views: 1873

Code: Select all

bSizer1->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 ); 
Did you try changing the proportion?
by Lloyd
Thu Oct 11, 2007 10:29 am
Forum: C++ Development
Topic: How to show a bitmap image when start my program?
Replies: 2
Views: 667

You mean this class?

wxSplashScreen

Regards,
Lloyd
by Lloyd
Thu Oct 11, 2007 4:17 am
Forum: C++ Development
Topic: Multi Selection Check/List Box
Replies: 1
Views: 538

If you mean it with a list control, it must be possible. you can use the wxListCtrl::OnGetItemColumnImage() function to show a bitmap of multiple check boxes. Then you can use wxListCtrl::HitTest() to check and uncheck the check boxes. For this you would have to catch mouse click events. These are s...
by Lloyd
Wed Oct 03, 2007 3:59 am
Forum: C++ Development
Topic: Crashes when used with wxGtk
Replies: 4
Views: 488

tan, Thanks again for clarifying it....

Regards,
Lloyd
by Lloyd
Mon Oct 01, 2007 3:16 pm
Forum: C++ Development
Topic: Crashes when used with wxGtk
Replies: 4
Views: 488

Thank you tan it works. I thought reserve() would allocate the necessary space and we can directly access it. was I wrong?

Thanks and regards,
Lloyd
by Lloyd
Mon Oct 01, 2007 7:00 am
Forum: C++ Development
Topic: Crashes when used with wxGtk
Replies: 4
Views: 488

Crashes when used with wxGtk

Hi, Am using wxGtk2.8.4 on RHEL I am using the following structure to make a 3 dimensional array which grows in all the directions dynamically... struct structSip { int32 sip; struct structDip { int32 dip; vector<SessionListRaw> sDetails; }; vector<structDip> vectDip; }; But the code crashes when I ...
by Lloyd
Mon Oct 01, 2007 6:00 am
Forum: C++ Development
Topic: Screen Resolution
Replies: 4
Views: 756

Thanks upCase and bigpilot.
I am using sizers. I have a custom written Hex viewer and it uses the system font. But in lower resolution systems it takes more area... I think I have to manage it in my HexViewer.

Thank you very much...

regards,
Lloyd
by Lloyd
Fri Sep 28, 2007 8:38 am
Forum: C++ Development
Topic: Screen Resolution
Replies: 4
Views: 756

Thanks,

But the font sizes are bigger in low resolution systems. What step is used in professional softwares to avoid this?

Thanks,
lloyd
by Lloyd
Thu Sep 27, 2007 9:29 am
Forum: C++ Development
Topic: Screen Resolution
Replies: 4
Views: 756

Screen Resolution

Hi,
Should I be cautious (while coding) about the resolution of the system in which my application would be deployed? In which are all the places I have to be cautious?

Thanks and Regards,
Lloyd
by Lloyd
Tue Sep 25, 2007 6:43 am
Forum: C++ Development
Topic: Inherit from wxString
Replies: 3
Views: 650

I think wxString is a concrete class and deriving classes from it is not supposed to do. So I would suggest you to write a method to take the string to be trimmed as a parameter and return the processed result, or something like this as per your requirement. Even you can write an independent class f...