Search found 14 matches

by kiricheikov
Thu Jul 14, 2011 9:46 am
Forum: wxWidgets Development (Russian)
Topic: wxDC и рисование
Replies: 8
Views: 13077

Re: wxDC и рисование

да, проблема была именно в 2 ивентах, когда засунул в 1 то стало норм=)) правда при точности в 0,001 тупит малеха, но то такое=) Всем спс
by kiricheikov
Tue Jul 12, 2011 3:57 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

THANKS ALL!!! it realy works when i put all in one event=)) and thx for link to tutorial, don't know about that, read only manuals and wiki.
THANKS!!!!
by kiricheikov
Tue Jul 12, 2011 3:35 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

no, nothing as i understand=) here is my code: class BasicDrawPane : public wxPanel { public: BasicDrawPane(wxFrame* parent); void paintEvent(wxPaintEvent & evt); void OnPaint(wxPaintEvent & evt); void render(wxDC& dc); void graph(wxDC& dc,CParser<double> cp); DECLARE_EVENT_TABLE() }; BEGIN_EVENT_TA...
by kiricheikov
Tue Jul 12, 2011 2:54 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

but if i draw second part it cover first and i have only graph.. maybe it is possibly to make transparent background of graph?
by kiricheikov
Tue Jul 12, 2011 2:02 pm
Forum: wxWidgets Development (Russian)
Topic: wxDC и рисование
Replies: 8
Views: 13077

Re: wxDC и рисование

почти разобрался, теперь возникла такая проблема, у меня 2 ивента пейнт, 1 рисует сетку координат, второй график. Когда я жму построить график, насколько я понимаю, сетка перекрывает график, можно ли как-то сделать сетку прозрачной? ну или как-то на бэкграунд её, даже не знаю..
by kiricheikov
Tue Jul 12, 2011 1:51 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

I finally understand my problem!

first i build a grid for my graph and than put on it my graph, but when use refresh, grid are putting on my graph. is it possibly to make two layers? smth like background and foreground=)
by kiricheikov
Tue Jul 12, 2011 1:08 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

maybe i'm stupid but i still don't understand T_T Some code, maybe it will help: this is my button: void MyFrame::OnButtonBuild(wxCommandEvent& event) { minX=wxAtoi(m_textCtrl14->GetValue()); maxX=wxAtoi(m_textCtrl15->GetValue()); minY=wxAtoi(m_textCtrl16->GetValue()); maxY=wxAtoi(m_textCtrl17->GetV...
by kiricheikov
Tue Jul 12, 2011 9:21 am
Forum: wxWidgets Development (Russian)
Topic: wxDC и рисование
Replies: 8
Views: 13077

Re: wxDC и рисование

да, но как связать evt_paint и evt_button, в котором я сейчас собственно и нахожусь?
by kiricheikov
Tue Jul 12, 2011 9:20 am
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

that is the question, how i can connect EVT_BUTTON with EVT_PAINT?
by kiricheikov
Mon Jul 11, 2011 7:34 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

hmm, try it, error disapeared but now nothing happens when i press the button.. how works this event? maybe it should start with some call that i didn't do? Should button be connect with onpaint?
by kiricheikov
Mon Jul 11, 2011 6:50 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

as i said i use MCVS 2008 C++ and can't see anything in resource tab..
by kiricheikov
Mon Jul 11, 2011 6:22 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

Re: WxDC and painting

what is .wxs and where can i find it? that is my first non consol programm, so it's hard for me-_-
by kiricheikov
Mon Jul 11, 2011 4:06 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3669

WxDC and painting

I am a new in wxWidgets, and now i'm writing graph builder on it have such a problem: i have a button that read function then build array of coordinates and next it should paint a graph, but for this i need to add EVT_PAINT. But i write this all in OnButton, and how to add event in event i don't kno...
by kiricheikov
Mon Jul 11, 2011 3:40 pm
Forum: wxWidgets Development (Russian)
Topic: wxDC и рисование
Replies: 8
Views: 13077

wxDC и рисование

Здравствуйте Я новичок в виджете, знаком с ним вторую неделю, возникла небольшая заморочка: вообще пишу программу по постройке графиков функции, создал интерфейс, при нажатии на кнопку оно считывает функцию и передает на процедурку, которая возвращает массив координат. Теперь мне по этим координатам...