Search found 53 matches

by syber
Thu Jan 22, 2009 2:00 pm
Forum: wxWidgets Development (Russian)
Topic: wxImage ярче
Replies: 2
Views: 2131

мммм... не хотелось бы ради такой ерунды целую либу цеплять...

Не обязательно wxImage, можно и wxBitmap или HBITMAP.
by syber
Thu Jan 22, 2009 10:34 am
Forum: wxWidgets Development (Russian)
Topic: wxImage ярче
Replies: 2
Views: 2131

wxImage ярче

Как сделать image ярче?
т.е. нужен такой эффект как в тулбаре - наводишь мышой на кнопку - кнопка становиться ярче, только в тулбаре меняется цвет а у меня битмап кнопка - значицо задача сделать битмап ярче.
by syber
Tue Dec 23, 2008 7:24 am
Forum: wxWidgets Development (Russian)
Topic: wxWidgets и оператор NEW.
Replies: 8
Views: 4631

хмммм.. а причем тут управление памятью и wxWidgets?
попробуй перегрузить оператор new - и управляй как хош!
Не понятно какая задача стоит, что нужно сделать в итоге?
by syber
Fri Dec 19, 2008 10:15 am
Forum: C++ Development
Topic: Show a directory content?
Replies: 4
Views: 2185

of course - manually

wxListCtrl\wxGenericDirCtrl + wxExecute or somthing like that + default right menu
by syber
Thu Dec 11, 2008 10:46 am
Forum: wxWidgets Development (Russian)
Topic: Ошибка *.o файлов
Replies: 8
Views: 4423

1) Видимо не все библиотеки подключены, попробуй добавь wxmsw28_dbgrid.
2) На всякий случай проверь Runtime Library библиотек и проекта.
3) Вполне может быть: один из твоих файлов\классов заинклуден но в проект не добавлен

Больше в голову ничего не пришло! :)
by syber
Tue Dec 09, 2008 9:49 am
Forum: wxWidgets Development (Russian)
Topic: Merge fixed rows in wxGrid
Replies: 2
Views: 1962

Merge fixed rows in wxGrid

Можно ли создать больше одного фиксированного поля (аля RowLabel)? и как их объединять?

Есть ли другие бесплатные Grid'ы с такой поддержкой?
by syber
Tue Oct 21, 2008 7:38 am
Forum: wxWidgets Development (Russian)
Topic: Как сэмулировать пользовательск
Replies: 1
Views: 1720

а чем это не походит:

Code: Select all

wxListCtrl::SetItemState
пример:

Code: Select all

int cnt = pListCtrl->GetItemCount();
for (int i = 0; i < cnt; ++i)
    pListCtrl->SetItemState(i, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
by syber
Tue Oct 21, 2008 7:26 am
Forum: wxWidgets Development (Russian)
Topic: Повторная активация диалога
Replies: 4
Views: 3590

попробуй сделать примерно так: pMyApp = new MyApp; wxApp::SetInstance(pMyApp); int argc = 0; char **argv = NULL; wxEntryStart(argc, argv); wxTheApp->CallOnInit(); AboutDialog *dlgAbout = new AboutDialog(_T("About")); dlgAbout->ShowModal(); MainDialog *dlgMain = new MainDialog(_T("Main...
by syber
Wed Jun 25, 2008 11:43 am
Forum: C++ Development
Topic: wxImage and www.google.com/favicon.ico
Replies: 1
Views: 1666

wxImage and www.google.com/favicon.ico

Try to load and save google's favicon:

Code: Select all

wxImage img;
bool b = img.LoadFile(L"c:\\favicon.ico", wxBITMAP_TYPE_ANY);
b = img.SaveFile(L"c:\\favicon2.ico", wxBITMAP_TYPE_ICO);
Result: Half of image is under black background! Why?
by syber
Fri Mar 14, 2008 6:51 am
Forum: C++ Development
Topic: SetUserScale calculate
Replies: 0
Views: 995

SetUserScale calculate

Hi I need to calculate picture size after zoom for assign correct scroll position. what im do: 1) Load image into m_bitmap; 2) actualScale is initialized to 1.0 3) Then call UpdateBitmap() func. This function calculate scroll positions. void wxDrawPanel::UpdateBitmap() { m_realBitmapWidth = m_bitmap...
by syber
Wed Feb 20, 2008 12:25 pm
Forum: C++ Development
Topic: wxPopup and Sizer
Replies: 2
Views: 1463

Actually i need to create custom contol and in my case MyPopup - is something like popup from ComboBox.

If wxPopupWindow has SetSizer function - that is must work correctly isn't it?
by syber
Wed Feb 20, 2008 11:31 am
Forum: C++ Development
Topic: wxPopup and Sizer
Replies: 2
Views: 1463

wxPopup and Sizer

class MyPopup : public wxPopupWindow { public: MyPopup(); }; MyPopup::MyPopup() { wxWindow* parent = wxTheApp->GetTopWindow(); wxPopupWindow::Create(parent); MyPopup *itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); itemDialog1->SetSizer(itemBoxSizer2); wxBoxSizer* itemBo...
by syber
Mon Feb 18, 2008 9:46 am
Forum: C++ Development
Topic: Scintilla 1.70
Replies: 0
Views: 855

Scintilla 1.70

I'm using wxWidgets 2.8.7

And i have couple questions about Scintilla:

1) StyleSetForeground is not working correctly?

Code: Select all

editor->StyleSetForeground(wxSTC_STYLE_DEFAULT, *wxRED);
2) How to change font color?
by syber
Fri Jan 11, 2008 9:52 am
Forum: Compiler / Linking / IDE Related
Topic: SIGSEGV while debugging and using wxFileDialog
Replies: 10
Views: 4927

I guess it's GDB problem

I have the same problem (exception with file open dialog): 1) Show FileOpenDialog and press on "My computer" All other way\path works fine And release\debug version works fine too!!! It's happens only in debuging mode I found such problem here: http://www.cygwin.com/ml/cygwin/2005-04/msg00...
by syber
Mon Dec 17, 2007 12:57 pm
Forum: C++ Development
Topic: wxTreeCtrl + width + wxTreeBook
Replies: 1
Views: 1463

I forgot:

The problem occurs only when using XRC!