[gtkmm] Static lable in Static method ?
- From: SMS WebMaster <sms 4-sms com>
- To: gtkmm list <gtkmm-list gnome org>
- Subject: [gtkmm] Static lable in Static method ?
- Date: Tue, 09 Dec 2003 05:57:56 +0300
Hi
I have a static method and I want to change a text of a lable in it ,
how can I do that ?
[code]
class MainWindow : public Gtk::Window
{
public:
MainWindow();
virtual ~MainWindow();
protected:
static void MainWindow::Set_Time_Mod(void);
static Gtk::Label labTimes;
}
void MainWindow::Set_Time_Mod(void)
{
MainWindow::labTimes.set_text(_("Hello"));
}
[/code]
When I compile this code I got this error :
/mainwindow.h:206: undefined reference to `MainWindow::labTimes'
--
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]