Search found 1471 matches

by tan
Tue Dec 07, 2010 12:04 pm
Forum: C++ Development
Topic: Image in cell of wxGrid?
Replies: 5
Views: 3036

Hi,
i think it is better to use wxListCtrl for that.
by tan
Mon Nov 22, 2010 8:34 am
Forum: C++ Development
Topic: Problem when using wxGenericColourDialog
Replies: 3
Views: 853

Hi, well, wxGenericColourDialog is built only in UNIVERSAL build mode (WXUNIV=1, it, in turn, defines __WXUNIVERSAL__). Use wxColourDialog instead (it will work for UNIVERSAL mode too). From colordlg.h ... #if wxUSE_COLOURDLG #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) #include "wx/msw/color...
by tan
Wed Oct 27, 2010 12:44 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 5821

briceandre, In this case, it is a bad idea because his dll seems to use wxWidgets. yes, you are right. I also meant it (probably implicitly) mael15, this dynamic/static linking with wxlibs is new to me, do you some resource that explains to me what to do? first of all, you have to build WX with opti...
by tan
Wed Oct 27, 2010 11:56 am
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 5821

Re: wxString already defined in dll

Hi, hi everybody! i am about to despair over this error: 1>wxbase29ud.lib(object.obj) : error LNK2005: "public: __thiscall wxFormatString::wxFormatString(wchar_t const *)" ([email protected]@[email protected][email protected]) ist bereits in libConfig.lib(libConfig.dll) definiert. 1>wxbase29ud.lib(object.obj) : error LNK2...
by tan
Wed Oct 20, 2010 11:31 am
Forum: C++ Development
Topic: warning RC4005
Replies: 6
Views: 1905

Hi,
i guess you need replace

Code: Select all

wxFlexGridSizer *fgs = new wxFlexGridSizer(6, 3, 5, 5); 
to

Code: Select all

wxFlexGridSizer *fgs = new wxFlexGridSizer(8, 2, 5, 5); 
by tan
Tue Oct 12, 2010 7:41 pm
Forum: Compiler / Linking / IDE Related
Topic: wxListBook issues with ImageList and SetPageImage
Replies: 2
Views: 792

Hi, is the prefImageList_ local variable? wxListBook doesn't save own copy of the wxImageList, it just save the pointer. Try this: wxImageList* prefImageList_; ... prefImageList_ = new wxImageList(32, 32); for(int i=0;i<3;i++) { prefImageList_->Add(wxBitmap(...)); //Here i add images to the imagelis...
by tan
Tue Oct 12, 2010 6:45 am
Forum: C++ Development
Topic: Two rows made with nested box sizer. Why do widths differ?
Replies: 2
Views: 574

Re: Two rows made with nested box sizer. Why do widths diff

Hi. Well, to deal with sizers not the most simple business :) Attached program lays out four text controls, two each on two rows, using a horizontal box sizer for each row, and a vertical sizer holding them both. Each control is added to its row sizer with a different proportion and wxEXPAND. Even s...
by tan
Fri Oct 08, 2010 12:47 pm
Forum: C++ Development
Topic: GetRowHeight - GetColumnWidth - wxFlexgridsizer
Replies: 2
Views: 718

Hi, it will do the job

Code: Select all

long height = fgSizer->GetRowHeights()[idx]; 
long width = fgSizer->GetColWidths()[idx]; 
by tan
Mon Oct 04, 2010 12:50 pm
Forum: wxWidgets Development (Russian)
Topic: dynamic_cast
Replies: 9
Views: 2920

Я полагаю, что тут конкретный баг в WX коде. Поскольку GetDefaultRenderer() возвращает не тот указатель, который был установлен в SetDefaultRenderer() (что должно быть, очевидно). Поэтому dynamic_cast и не работает. Попробуй пожаловаться на это в багтрекере.
by tan
Mon Oct 04, 2010 11:47 am
Forum: Compiler / Linking / IDE Related
Topic: Application cannot be initialized properly-wxWidgets 2.8.11
Replies: 4
Views: 1814

From MSDN: C Run-Time Error R6034 An application has made an attempt to load the C runtime library without using a manifest. This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest. For more information, see the "Visual C++ Libraries as Shared...
by tan
Thu Sep 02, 2010 10:18 am
Forum: wxWidgets Development (Russian)
Topic: wxSocketServer демон
Replies: 2
Views: 1330

Поскольку вопрос задан по русски, я переместил его в в русскоязычную ветку форума. Что касается самого вопроса, то ответ, в принципе, да, но... Я не уверен, что это можно сделать используя wxWidgets (по крайней мере в дочерних процессах). С обычными сокетами вроде проблем быть не должно (давно таким...
by tan
Fri Aug 27, 2010 11:04 am
Forum: wxWidgets Development (Russian)
Topic: Перетаскивание за панельку
Replies: 2
Views: 1322

Re: Перетаскивание за панельку

Привет. Доброго времени суток, есть приложение без заголовка, его нужно как то перетаскивать по экрану. :) Есть wxStaticBitmap с картинкой, теперь вопрос, а как сделать, чтобы левой мышкой за нее таскалось? Заранее спасибо! OS Windows. Это нетрудно :) Советую посмотреть пример shaped (WX_ROOT/sample...
by tan
Sat Aug 21, 2010 6:16 am
Forum: C++ Development
Topic: conversion wx2.8 to wx2.9 help
Replies: 3
Views: 768

Hi,
just remove wxT(...) macros. Its usage in such context incorrectly anyway :)
by tan
Fri Aug 20, 2010 6:30 am
Forum: C++ Development
Topic: Apply button in wxStdDialogButtonSizer
Replies: 4
Views: 893

Many thanks tan. I thought it'd be something like that. Out of interest, what do the other buttons do (YES, SAVE, CLOSE, NO, HELP, CONTEXT_HELP)? Is this documented somewhere, and if so where (couldn't see anything in the 2.9.1 manual)? I don't know about documentation, but there are sources :) WX_...
by tan
Wed Aug 18, 2010 5:28 am
Forum: C++ Development
Topic: Apply button in wxStdDialogButtonSizer
Replies: 4
Views: 893

Re: Apply button in wxStdDialogButtonSizer

Hi, Hi everyone, I'm just after some clarification about the non-OK/Cancel buttons in the wxStdDialogButtonSizer and their actions (e.g. Apply). I have added such a sizer to a custom dialog that contains OK, Cancel and Apply buttons. And I'd like to know about the Apply button - is it handled automa...