Timer on linux Topic is solved

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
stane
Experienced Solver
Experienced Solver
Posts: 90
Joined: Mon Dec 19, 2005 5:35 pm
Location: France

Timer on linux

Post by stane » Mon Nov 27, 2006 9:24 pm

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

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Re: Timer on linux

Post by upCASE » Tue Nov 28, 2006 7:43 am

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 :)
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

stane
Experienced Solver
Experienced Solver
Posts: 90
Joined: Mon Dec 19, 2005 5:35 pm
Location: France

Post by stane » Wed Nov 29, 2006 7:39 pm

The idea is to use a timer on my code in linux.

This code doesn

DavidHart
Site Admin
Site Admin
Posts: 4006
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Wed Nov 29, 2006 8:19 pm

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

NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL » Wed Nov 29, 2006 8:26 pm

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.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/

emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti » Thu Nov 30, 2006 2:03 am

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.
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/

DavidHart
Site Admin
Site Admin
Posts: 4006
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Thu Nov 30, 2006 10:39 am

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?

stane
Experienced Solver
Experienced Solver
Posts: 90
Joined: Mon Dec 19, 2005 5:35 pm
Location: France

Post by stane » Sat Dec 02, 2006 11:00 am

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

Post Reply