Hi paul,
I have some problems, I will be glad if you help me. I made a topBar and bottomBar widgets, you can see them in the picture.
In topBar there is a some extra windows showing some information about Weather and about the day

I created them with a new class and called it PLMiniWindow

It's a derived class from Window, like a frame window. and PLMiniWindow also has a client area to show sub-windows (widgets). as you can see there is some WLStatic and Button. I also make a ImageBox for showing weather status icon and added to the PLMiniWindow in the topBar.
In PLTopBar there is two window defined as
Code: Select all
PLMiniWindow* d_weather;
PLMiniWindow* d_today;
I create these windows in topBar's "layoutSubControls" void.
I also have PLWeather and PLToday classes that has some WLStatic, WLButton components. These sub components of PLWeather and PLToday are adding to the d_weather and d_today's child-window list

and this is the code what I'm trying to explain
Code: Select all
void PLTopBar::layoutSubControls()
{
PLMiniWindow* d_weatherMini = new PLMiniWindow();
d_weatherMini->initialise();
getClientAreaWindow()->addChildWindow(*d_weatherMini);
d_weatherMini->setPosition(850, 2);
d_weatherMini->setSize(75, 61);
d_weatherMini->setAlpha(0.5);
d_weatherMini->setCaptionText("Weather");
d_weatherMini->show();
d_weatherMini->getClientAreaWindow()->addChildWindow(*d_weather->getSTMax());
d_weatherMini->getClientAreaWindow()->addChildWindow(*d_weather->getSTMin());
d_weatherMini->getClientAreaWindow()->addChildWindow(*d_weather->getSTHum());
d_weatherMini->getClientAreaWindow()->addChildWindow(*d_weather->getBTDetails());
d_weatherMini->getClientAreaWindow()->addChildWindow(*d_weather->getWeatherImg());
d_todayMini = new PLMiniWindow();
d_todayMini->initialise();
getClientAreaWindow()->addChildWindow(*d_todayMini);
d_todayMini->setPosition(930, 2);
d_todayMini->setSize(55, 61);
d_todayMini->setAlpha(0.5);
d_todayMini->setCaptionText("Today");
d_todayMini->show();
d_todayMini->getClientAreaWindow()->addChildWindow(*d_today->getDay());
d_todayMini->getClientAreaWindow()->addChildWindow(*d_today->getDate());
d_todayMini->getClientAreaWindow()->addChildWindow(*d_today->getTime());
d_todayMini->getClientAreaWindow()->addChildWindow(*d_today->getSet());
}
the PLToday and PLWeather components has their own UpdateSelf() void for updating values of date and weather status, or anything else. The problem is here

Where can I update this values, what is the event for this, I only need to call UpdateSelf() method to update the time, date or anything.
Will I create a timer? if yes, how can i do that
After this top and bottom bar completed, i will start coding SideBar widget.
Thanks,
Polat