Search found 8 matches

by newbee
Wed Jan 04, 2012 8:09 pm
Forum: wxDev-C++
Topic: a few newbie questions
Replies: 1
Views: 1291

a few newbie questions

Hi,I have a few questions.Hope its not a problem to write all of them mixed in one topic. 1)for(int i=0;i<n;i++) for(int j=0;j<n;j++) {dc.DrawPoint(j,i); wxSleep(1);} Is this wrong?If yes why? (here newbie thinks that he can see the points being drawn one-by-one) 2)I draw on a panel,and if I set the...
by newbee
Sat Dec 31, 2011 6:56 pm
Forum: wxDev-C++
Topic: wxHtmlWindow LoadPage
Replies: 1
Views: 1166

wxHtmlWindow LoadPage

I try to use this with SetPage() but couldnt succeed.
file:myapp.zip#zip:html/index.htm # Gets index.htm from myapp.zip

Thanks for the help
by newbee
Sun Dec 25, 2011 9:24 pm
Forum: wxDev-C++
Topic: wxUpdateUIEvent question
Replies: 1
Views: 1234

wxUpdateUIEvent question

Hi ,
my question is related to the the book example personelrecorddialog.How can we say

Code: Select all

if (ageCtrl->GetValue() < 18)
{
event.Enable(false);
event.Check(false);
}
else
event.Enable(true);
to update the checkbox control(shouldnt we use control itself?)?
by newbee
Sun Dec 25, 2011 8:21 pm
Forum: wxDev-C++
Topic: wxFileOutputStream
Replies: 2
Views: 1831

Re: wxFileOutputStream

Thanks for the reply.I feel comfortable when using wxTextFile, but can we use it for binary data?
Also,Im confused with that we have wxFileInputStream and wxDataInputStream.I create objects for both of them.Seek function of which should I use?
by newbee
Sun Dec 25, 2011 10:33 am
Forum: wxDev-C++
Topic: wxFileOutputStream
Replies: 2
Views: 1831

wxFileOutputStream

Hi, int i; float f; wxString str; wxFile file(wxT("scores.dat")); wxFileOutputStream out(file); wxDataOutputStream outdata(out); out.SeekO(0,wxFromEnd); outdata<<5<<0.012; outdata<<wxT("I cant write this text twice"); wxFileInputStream in(wxT("scores.dat")); wxDataInputStream data(in); //in.SeekI(0,...
by newbee
Fri Dec 23, 2011 11:50 pm
Forum: wxDev-C++
Topic: about ArrayString
Replies: 2
Views: 1361

Re: about ArrayString

How stupid I am :oops: Maybe I should sleep.
Thank you,but its used in the book.(cross-platform gui programming with wxwidgets)
by newbee
Fri Dec 23, 2011 11:27 pm
Forum: wxDev-C++
Topic: about ArrayString
Replies: 2
Views: 1361

about ArrayString

Hi, const wxArrayString choices; choices.Add(wxT(“One”)); choices.Add(wxT(“Two”)); choices.Add(wxT(“Three”)); choices.Add(wxT(“Four”)); choices.Add(wxT(“Five”)) ; what is wrong with this? my compiler says: 39 myapp.cpp passing `const wxArrayString' as `this' argument of `size_t wxArrayString::Add(co...
by newbee
Sat Nov 19, 2011 9:00 pm
Forum: wxDev-C++
Topic: wxwidgets newbie
Replies: 1
Views: 1153

wxwidgets newbie

Hi all, im a wxwidgets newbie.
I couldnt manage to use even the simplest sample of wxwidgets.Can someone please explain me how to make wxdevc++ able to compile wxwidgets code?
Assume that i installed wxdevx++.