Search found 51 matches

by Youka
Tue Apr 09, 2013 7:28 am
Forum: C++ Development
Topic: Toolbar EnableTool Not Working
Replies: 5
Views: 1364

Re: Toolbar EnableTool Not Working

In past i noticed that changing item attributes over the container often doesn't work. Try to disable the tool with the item.

Code: Select all

m_toolbarGoButton->FindById(ID_BUTTON_GO)->Enable(false);
by Youka
Tue Mar 26, 2013 10:27 am
Forum: C++ Development
Topic: 2D array wxString
Replies: 19
Views: 5361

Re: 2D array wxString

What prevents you to write wxString data[x][y] ?
by Youka
Sat Mar 16, 2013 5:55 am
Forum: C++ Development
Topic: How to Bold the Dialog title text
Replies: 3
Views: 1413

Re: How to Bold the Dialog title text

Wouldn't wxWindowDC (windows only) allow to draw over the titlebar to fake a styled title text?
by Youka
Sat Feb 23, 2013 8:59 pm
Forum: C++ Development
Topic: Convert wxString to char* and back to wxString
Replies: 4
Views: 4544

Re: Convert wxString to char* and back to wxString

Have a look at Converting everything to and from wxString . Your problem was, that stored data in wxCharBuffer are freed at the end of the function, so your foo pointer becomes invalid. I recommend: inline wxString ToWX(char* char_array, int length){ return wxString::FromUTF8(char_array, length); } ...
by Youka
Thu Feb 21, 2013 3:23 pm
Forum: C++ Development
Topic: How to translate the Dynamic get value using poedit
Replies: 1
Views: 629

Re: How to translate the Dynamic get value using poedit

Have a look at wxTranslations.
Create an instance of it, set loader (lookup prefix) & language, load your catalog and get translated strings.
by Youka
Mon Feb 18, 2013 9:39 pm
Forum: C++ Development
Topic: KeyUp event for wxComboBox
Replies: 3
Views: 1278

Re: KeyUp event for wxComboBox

You already tried to add style wxWANTS_CHARS to your wxComboBox?
by Youka
Fri Feb 01, 2013 10:13 am
Forum: C++ Development
Topic: Where to implement domain logic
Replies: 2
Views: 791

Re: Where to implement domain logic

Instead of overwriting the main loop, you could handle idle events in your infoscreen window. You can use wxIdleEvent::RequestMore to repeat idle events again and again, so it's similar to your infinite loop, but handles other events between.
by Youka
Thu Jan 31, 2013 9:43 am
Forum: C++ Development
Topic: How to draw a gradient path like qt?
Replies: 5
Views: 2207

Re: How to draw a gradient path like qt?

Core Graphics (Apple) seems not to support path gradients, so that could be the reason why wx doesn't support it too.
For windows and unix you can do it the way i described. A cross-platform solution would be using OpenGL.
by Youka
Wed Jan 30, 2013 9:17 am
Forum: C++ Development
Topic: How to draw a gradient path like qt?
Replies: 5
Views: 2207

Re: How to draw a gradient path like qt?

Looking into wxGraphicsContext it seems that just linear and radial gradients with multiple stops are available in wxWidgets. For a gradient path, you should use the native renderer directly, see wxGraphicsContext::GetNativeContext . In GDI+, PathGradientBrush is what you're looking for. In Cairo, c...
by Youka
Tue Jan 15, 2013 8:31 am
Forum: C++ Development
Topic: Image load save issues
Replies: 9
Views: 1946

Re: Image load save issues

You already installed other image handlers?
by Youka
Sat Jan 12, 2013 6:26 am
Forum: C++ Development
Topic: Encoding conversions - help req'd
Replies: 3
Views: 970

Re: Encoding conversions - help req'd

Have a look at wxMBConv Overview.
by Youka
Wed Jan 09, 2013 2:14 pm
Forum: C++ Development
Topic: Executables files
Replies: 24
Views: 4326

Re: Executables files

I guess on the other computers are library files missing.
How about posting your error messages?
by Youka
Tue Jan 01, 2013 6:34 pm
Forum: C++ Development
Topic: Show wxDialog when wxFrame is visible
Replies: 3
Views: 1058

Re: Show wxDialog when wxFrame is visible

How about using EVT_ACTIVATE for showing your frame at first and then your dialog.
by Youka
Sat Dec 29, 2012 10:26 pm
Forum: C++ Development
Topic: dynamically scaling font size with wxTextCtrl
Replies: 4
Views: 2229

Re: dynamically scaling font size with wxTextCtrl

textPrompt = new wxTextCtrl( this, TEXTBOX_PROMPT, _T(""), wxPoint(50, 10), wxSize(1100, 130), wxBORDER_NONE | wxTE_RICH2 | wxTE_READONLY | wxTE_NO_VSCROLL); textPrompt->SetSelection(0,0); textPrompt->SetDefaultStyle(wxTextAttr( COLOUR_FANCHEER_WHITE, COLOUR_BLACK, wxFont( 75, wxFONTFAMILY_SWISS, w...