Page 1 of 1

Timer on linux

Posted: Mon Nov 27, 2006 9:24 pm
by stane
Hi,

I create a program in windows with devc++ but now i want to create my program in linux.

I have a problem with the wxtimer in linux. Any idea?

Thanks a lot,

Stane

Re: Timer on linux

Posted: Tue Nov 28, 2006 7:43 am
by upCASE
stane wrote:I have a problem with the wxtimer in linux. Any idea?
No, but if you explained the problem to us, we may be able to find a solution :)

Posted: Wed Nov 29, 2006 7:39 pm
by stane
The idea is to use a timer on my code in linux.

This code doesn

Posted: Wed Nov 29, 2006 8:19 pm
by DavidHart
Hi,
void bla::change(WxTimerEvent& event){

WxStaticText->Show(true);

}
Well, perhaps calling the event-type wxTimerEvent would help. And I presume that WxStaticText is a valid pointer to a wxStaticText object, not another misspelling. ;)

It is perfectly possible to use event tables etc with a wxTimer in linux, but for simple situations an easier way is shown in http://forums.wxwidgets.org/viewtopic.php?t=6197

Regards,

David

Posted: Wed Nov 29, 2006 8:26 pm
by NinjaNL
DavidHart wrote:Hi,
void bla::change(WxTimerEvent& event){

WxStaticText->Show(true);

}
Well, perhaps calling the event-type wxTimerEvent would help.
I believe that this is code generated directly from wxDev-C++. We might need to address the capitalisation in order to transfer code between windows/linux/mac correctly.

Posted: Thu Nov 30, 2006 2:03 am
by emarti
I also have same problem using wxTimer. it is OK for Windows, Pardus Linux & Fedora but not Ubuntu. I do not know why to do. I think that gnome is problem, because pardus & fedora uses kde.

Posted: Thu Nov 30, 2006 10:39 am
by DavidHart
emarti wrote:I also have same problem using wxTimer. it is OK for Windows, Pardus Linux & Fedora but not Ubuntu. I do not know why to do. I think that gnome is problem, because pardus & fedora uses kde.
Strange. I've used wxTimers without problem, in kde and gnome, on all the major distros including ubuntu.

The exec, statbar and the gauge part of the widgets samples all use wxTimers. Do they work for you there?

Posted: Sat Dec 02, 2006 11:00 am
by stane
Hi,

I installed again fedora 6 with KDE in my computer and i installed the wx*. And now the wxtimer works fine :). Strange..... But now works well!

Thanks people ;)

Stane