Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How do I use WIndows Message pump timer?
Re: How do I use WIndows Message pump timer? [message #3298 is a reply to message #3290] Thu, 18 May 2006 17:09 Go to previous messageGo to previous message
jeff1101 is currently offline  jeff1101
Messages: 11
Registered: November 2005
Location: Philippines
Promising Member

HI,

Excuse, how do I use your example? I modified the CounterCtrl class like so. (This is just a snippet)

void CounterCtrl::Paint(Draw& w)
{
Size sz = GetSize();
w.DrawRect(sz, paper);
String txt = AsString(number);
sz = (sz - w.GetTextSize(txt, font)) / 2;
w.DrawText(sz.cx, sz.cy, txt, font, ink);
}

/***
void CounterCtrl::LeftDown(Point, dword)
{
number++;
Refresh();
}
***/

I commented out LeftDown() because I dont want that trigger event . What I do want is a trigger event that happens every second and that I will then handle with the customized code I have in mind.

Thanks.

regards
Jeffrey
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stripping unnecessary classes
Next Topic: How to set the Constructor of a derived widget class?
Goto Forum:
  


Current Time: Sat Aug 16 07:09:52 CEST 2025

Total time taken to generate the page: 0.06822 seconds