Search found 41 matches

by bartsob5
Tue Dec 27, 2011 9:25 pm
Forum: C++ Development
Topic: wxGraphicsContext was not declared in this scope
Replies: 1
Views: 1135

wxGraphicsContext was not declared in this scope

Hi there... i need some 'tool ' to paint several polygons (up to 5000) on a panel, but i need transparency support. Only support of Windows platform (vista/7) is needed. i have read that wxgraphicscontext should work for me, but it seems like there is no such class. i'm using wxdev 7.4.1.13, wxwidge...
by bartsob5
Mon Oct 17, 2011 7:06 am
Forum: C++ Development
Topic: wxctb vs. usb<->serial port adapter
Replies: 1
Views: 822

wxctb vs. usb<->serial port adapter

hi there. i'm writing currently a project, which should connect with some microcontroller using rs232 standard. i used the wxctb library, and it works fine as far as there is a com port on the computer. however i need to make it work on laptop which don't have generic com, and i need to use serial p...
by bartsob5
Sun Sep 18, 2011 6:06 pm
Forum: C++ Development
Topic: drag item using wxdragimage
Replies: 1
Views: 528

drag item using wxdragimage

hi there. i need to implement dragging in my application. there are two objects that may be dragged (two bitmaps on a panel with wxdc). i implemented already 3 handlers of mouse events: LEFT_DOWN - figuring out which bitmap was grabbed LEFT_UP - getting to know where the bitmap was left MOUSE_EVENTS...
by bartsob5
Fri Sep 16, 2011 1:43 pm
Forum: C++ Development
Topic: Panel Focus?
Replies: 2
Views: 912

Re: Panel Focus?

i have currently similar problem (refreshing 6-years old topic... hehe) but the solution submited by Jorg doesn't work for me. i have on my wxFrame an object which i derived from wxPanel for painting purposes as well as few other objects (wxmemo, wxlistbox wxbutton) also i have connected that panel ...
by bartsob5
Sat Sep 10, 2011 7:20 pm
Forum: C++ Development
Topic: wxFrame::Destroy() problem
Replies: 27
Views: 4684

Re: wxFrame::Destroy() problem

if you copied your code here it would be much more helpful... also, sometimes the debugger shows you where are you getting the segmentation fault (sometimes you must click yes nad f7 few times and it shows you, however most of the time it shows some lines in <string> or <iostream> but it might be he...
by bartsob5
Fri Sep 09, 2011 10:32 pm
Forum: C++ Development
Topic: easy way to make wxtimer work
Replies: 2
Views: 1622

easy way to make wxtimer work

hi there... this time i'm having trouble with wxtimer... i read in the docs, that: You may derive a new class from wxTimer and override the wxTimer::Notify member to perform the required action. i also found an example on wxwiki, but it seems like it doesn't work... class pomiar :public wxTimer { Po...
by bartsob5
Fri Sep 09, 2011 10:11 pm
Forum: C++ Development
Topic: wxFrame::Destroy() problem
Replies: 27
Views: 4684

Re: wxFrame::Destroy() problem

i'm not that good at it, but wouldn't it be better (and safer) to put some boolean flag instead of Destroy()? i mean something like bool pleaseshutmedown=false; while(true) { . . . if(test=="") { pleaseshutmedown=true; break; } . . . } if(shutmedown) Destroy(); else CreateGUIControls(); just a thoug...
by bartsob5
Mon Sep 05, 2011 1:57 pm
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

i think that it is definitely caused by these 2 lines, as either comenting it out solves the problem, or changing KontenerFast::AddFiles() into: void KontenerFast::AddFiles(int where,wxArrayString what) { if(where==0) { arrayoffiles1.Clear(); for(int a=0;a<what.GetCount();a++) { wxString bnapis="heh...
by bartsob5
Mon Sep 05, 2011 11:38 am
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

currentyly AddFiles() looks as follow: void KontenerFast::AddFiles(int where,wxArrayString what) {//FILE*plik; if(where==0) { arrayoffiles1.Clear();//private wxarraystring object of class KontenerFast for(int a=0;a<what.GetCount();a++) { arrayoffiles1.Add(wxString(what[a].c_str())); } } else {arrayo...
by bartsob5
Mon Sep 05, 2011 9:56 am
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

i'm sure 'aktualnieprzetwarzany' and 'a' are good.

as far as i know i have wx in version 2.8.9...
so, is the mutex locked properly in this situation?
by bartsob5
Sun Sep 04, 2011 10:05 pm
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

i made a new test project with my listctrlvirt class, put there over 13000 elements dozens times, and it turned out the listctrlvirt wasn't the problem. (thankfully!) anyway i looked more carefully into my secondary threads... it seemed like there was everything fine when the secondary thread was al...
by bartsob5
Fri Sep 02, 2011 9:32 am
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

hmmm... strange... event.Skip() worked... once... :/ i'm testing it with 13336 entries (either with 1 column filled, or 11). i found out, that if there are less than 1000 entries it works fine. well, most of the time it works (got only 2 crashes for 15 attempts) i think time for deleting wouldn't be...
by bartsob5
Thu Sep 01, 2011 10:42 pm
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

the listctrl class i have shown before. here is how data is inserted into listctrl void SmieciarkaFrm::obslugafast(SpecjalnyEvent &event)//SmieciarkaFrm is a gui class; SpecjalnyEvent is an event derived from wxcommandevent that may store KontenerFast object { wxString napis; KontenerFast dostal;//o...
by bartsob5
Thu Sep 01, 2011 6:21 pm
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

i got two types of hanging... one was taking 25% of cpu (one core) and only listctrl remained visible along the gui; second one is when immediately i got window's messege of program crash. debugging with msvc2010 points me to assmebler line: 77C52A7F mov ecx,dword ptr [ecx+4] ;with message: "Unhandl...
by bartsob5
Thu Sep 01, 2011 1:58 pm
Forum: C++ Development
Topic: wxListCtrl vs large amount of data being put in a short time
Replies: 23
Views: 4331

Re: wxListCtrl vs large amount of data being put in a short

i've got still one more problem... my program hangs when i want to close it (and the wxlistctrl is filled with data)... i have probably my wxlistctrl class derivation written wrong. i suspect that i need a destructor overloaded, but i'm not sure how to do it. class ListCtrlVirt :public wxListCtrl { ...