Search found 55 matches

by van_user
Thu Aug 20, 2009 7:07 am
Forum: wxWidgets Development (Russian)
Topic: wxZipInputStream и wxRemoveFile
Replies: 4
Views: 1844

Пробуй:
ZipStream. CloseEntry( )
by van_user
Sat Aug 08, 2009 10:12 am
Forum: C++ Development
Topic: Cathing values from controls
Replies: 2
Views: 499

Another problem is adding additional row after clicking on Add Rule button, which doesn't work properly. I dont know how to place additional wxSpinCtrl and wxTextCtrl into the boxsizer. Simply add controls to the sizer. But for this store sizer as a member of the class ( to reuse it not from consru...
by van_user
Thu Aug 06, 2009 8:33 am
Forum: C++ Development
Topic: How to find all expanded items in a treectrl?
Replies: 3
Views: 424

wxTreeCtrl::IsExpanded loop through all items: after find first expanded item funtion Lookup( Item* item_e) { if item_e -> IsExpanded( ) return item_e -> GetFirstChildren( ); next_item = item_e -> GetNextSubling( ); while( next_item not valid) { if( next_item == root_item) return finish;//NULL next_...
by van_user
Thu Aug 06, 2009 8:01 am
Forum: C++ Development
Topic: Render item in wxDataViewCtrl
Replies: 1
Views: 390

For now I use such method ( save pointer to( on) the item in Model :: GetValue as it is called before Render :: SetValue that is called before Render :: Render): Model void Content_View_Model_Class :: GetValue( wxVariant& variant_e, const wxDataViewItem& item_e, unsigned int col_e) const { Node_Clas...
by van_user
Tue Jul 28, 2009 11:24 am
Forum: C++ Development
Topic: Render item in wxDataViewCtrl
Replies: 1
Views: 390

Render item in wxDataViewCtrl

Are exist any method to know for what item render has called?
Or I should modify my wxDataViewModel::GetValue to return struct with pointer to the item ( is it possible with wxVariant?).
Sorry for my English.
by van_user
Tue Jul 28, 2009 8:55 am
Forum: wxWidgets Development (Russian)
Topic: wxDialog + wxRESIZE_BORDER = фигня
Replies: 3
Views: 1462

Code: Select all

wxWindow::SetMinSize
Параметры храни в файле конфига.
by van_user
Fri Jul 17, 2009 9:09 am
Forum: wxWidgets Development (Russian)
Topic: загрузка wxString из файла
Replies: 2
Views: 1313

Re: загрузка wxString из файла

Kurles wrote:wxTextFile, вроде все хорошо, но он почему-то не хочет работать с некоторыми файлам, просто их не открывает
Что за файлы? Как ты проверяешь на открытие? и т.д.
По-моему в лоб лучше использовать стандартные функции.
by van_user
Mon May 25, 2009 5:33 am
Forum: wxWidgets Development (Russian)
Topic: WinXP, консоль и кодировка
Replies: 4
Views: 2981

Re: WinXP, консоль и кодировка

Armann wrote: wxUSE_UNICODE установил в 1
Попробуй в UNICODE :).
by van_user
Sat May 16, 2009 8:20 am
Forum: C++ Development
Topic: How to cancel a wxMessageBox with a Esc key?
Replies: 1
Views: 443

This is because there are no button with wxID_CANCEL.
Check wxDialog::SetEscapeId.
by van_user
Fri May 15, 2009 1:52 pm
Forum: C++ Development
Topic: Need memory debug programm/library (mingw/wx)
Replies: 0
Views: 260

Need memory debug programm/library (mingw/wx)

Can`t find forum with debug issues - posting here. Does anybody use/know program (profiler?) that could catch read/write [outside allocated]/ [inside excepted] memory with MinGW/wxWidgets? I have try some ( ccmalloc - doesn`t exist/compile, DrMingGW and DUMA - don`t work with wxWidgets) without succ...
by van_user
Wed May 13, 2009 10:51 am
Forum: C++ Development
Topic: why it's paint not work?
Replies: 10
Views: 1046

wunekky wrote::o
but when the mouse down,i have a flicker.
:) Try this:

Code: Select all

void CalculateDlg::OnMouse(wxMouseEvent &event) 
{ 
        wxPoint pt(event.GetPosition()); 
        if( ButtonSel != 1 && event.LeftDown()) 
        {
                ButtonSel = 1; 
                Refresh();
        }

}
by van_user
Wed May 13, 2009 7:53 am
Forum: C++ Development
Topic: why it's paint not work?
Replies: 10
Views: 1046

just like the string will be paint,but then it will be cover with something. I don`t think so: you said that if statement of if(ButtonSel==1) { wxBufferedPaintDC mydc(this); ... mydc.DrawText(wxT("test"),wxPoint(50,50));} set to true programme work well - why something don`t cover your text in that...
by van_user
Wed May 13, 2009 7:03 am
Forum: C++ Development
Topic: why it's paint not work?
Replies: 10
Views: 1046

if button state is already down,the ButtonSel will be set to 1,then it will keep 1. Mouse up,the if segment will be false ,but the ButtonSel's value still is 1.why it cann't paint? I have only 2 versions: 1 - ButtonSel never set to 1 2 - ButtonSel somewhere set to not 1. Without code I can`t say mo...
by van_user
Wed May 13, 2009 6:30 am
Forum: C++ Development
Topic: why it's paint not work?
Replies: 10
Views: 1046

:) Do you hit left button on the mouse?
Do you clear "ButtonSel" when not event.LeftDown()?
"LeftDown - Returns true if the left mouse button changed to down." Maybe if button state is already down then method return false?
by van_user
Wed May 13, 2009 5:51 am
Forum: C++ Development
Topic: why it's paint not work?
Replies: 10
Views: 1046

Try to call "Invalidate" or "Refresh" methods. Also for test set if statement to "true".