Search found 211 matches

by lester
Wed May 14, 2008 4:21 pm
Forum: C++ Development
Topic: how to display a button in grid ?
Replies: 3
Views: 979

You can use Renderer for draw cell as button and catch mouse events, that's not simple, but it work,

my example of wxGrid that don't look as wxGrid:
by lester
Tue May 13, 2008 2:09 pm
Forum: C++ Development
Topic: How to get selected rows of wxGrid?
Replies: 6
Views: 2121

Code: Select all

	wxArrayInt res;
	
	for( int i = 0 ; i < pGrid->GetNumberRows() ; ++i )
	{
		if( pGrid->IsInSelection( i, 0 ) )
			res.Add( i );
	}
by lester
Sun May 11, 2008 4:10 pm
Forum: C++ Development
Topic: How to show modal dialog in this way on Mac OSX ?
Replies: 6
Views: 1391

No, I just use wxTopLevelWindow::SetTransparent( 240 )
by lester
Sun May 11, 2008 3:49 pm
Forum: C++ Development
Topic: How to show modal dialog in this way on Mac OSX ?
Replies: 6
Views: 1391

Thanks, Your solution is great, but I have already write my own wxDialog child class for sheets
by lester
Thu May 08, 2008 2:57 pm
Forum: C++ Development
Topic: wxWidgets Executable Size
Replies: 4
Views: 738

maybe on windows You have static linked .exe?
by lester
Wed May 07, 2008 12:23 am
Forum: C++ Development
Topic: How to create a transparent bitmap with wxWidgets ?
Replies: 9
Views: 2529

You can use wxMask, fill background of bitmap with some unused colour, and then:

bitmap.SetMask( new wxMask( bitmap, unused_colour ) );
by lester
Sat May 03, 2008 10:59 am
Forum: C++ Development
Topic: Sizerproblems with wxComboBox
Replies: 3
Views: 614

Re: Sizerproblems with wxComboBox

cbb_filename->SetMaxSize( wxSize( 130, -1 ) );
cbb_filename->GetParent()->GetSizer()->Layout();
by lester
Wed Apr 30, 2008 3:43 pm
Forum: C++ Development
Topic: wxRichTextCtrl problem
Replies: 3
Views: 515

Add wxWANTS_CHARS to style
by lester
Wed Apr 30, 2008 3:39 pm
Forum: C++ Development
Topic: WX_DECLARE/DEFINE_OBJARRAY fails to link
Replies: 2
Views: 503

header: #include <wx/dynarray.h> // we must forward declare the array because it is used inside the class class MyDirectory; // now used as shown below WX_DECLARE_OBJARRAY(MyDirectory, ArrayOfDirectories); .cpp file: #include <wx/arrimpl.cpp> // this is a magic incantation which must be done! WX_DEF...
by lester
Wed Apr 30, 2008 10:20 am
Forum: C++ Development
Topic: wxTextCtrl text-highlight
Replies: 3
Views: 1133

for this under Windows wxTE_RICH style is required
by lester
Tue Apr 29, 2008 9:36 pm
Forum: C++ Development
Topic: wxTextCtrl text-highlight
Replies: 3
Views: 1133

No, You can try wxStyledTextCtrl or wxRichTextCtrl
by lester
Tue Apr 29, 2008 6:05 pm
Forum: C++ Development
Topic: SetValue and SetStringSelection in a wxComboBox
Replies: 1
Views: 454

You can use such code:

For set value:

int selection = combo->FindString( _("2") );
if( selection != wxNOT_FOUND )
combo->SetSelection( selection );
else
combo->SetValue( _("2") );

....

For get selection:

int selection = combo->FindString( _("2") );

That's ugly but must work
by lester
Mon Apr 28, 2008 10:25 pm
Forum: C++ Development
Topic: alpha blended windows
Replies: 1
Views: 584

virtual bool wxTopLevelWindow::SetTransparent(int alpha) ?
by lester
Mon Apr 28, 2008 5:29 pm
Forum: wxWidgets Development (Russian)
Topic: Как изменить порядок виджетов?
Replies: 10
Views: 3398

Эээ,... клиент ДЦ это мм.. странно. Я вобще смутно себе представляю ситуацию где его юзание оправдано. Хотя хз конечно. Там я помню с Клиент ДЦ проблема если поверх что-то само по себе ездит, например скринмэйт какой-нить, Neko например или там Virtual Girl. В общем если окна сами ездят по экрану, ...
by lester
Mon Apr 28, 2008 1:18 pm
Forum: C++ Development
Topic: Silverlight controls in wxHtmlWindow
Replies: 7
Views: 1144

for gecko I have found sample for wxWidgets:

http://gnuzilla.gnu.org/fulltree/icecat ... s/wxEmbed/