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 » TopWindow&PopUp, TrayIcon » TopWindow childless Clock example [BUG][FIXED]
TopWindow childless Clock example [BUG][FIXED] [message #923] Thu, 09 February 2006 11:27 Go to next message
hribek is currently offline  hribek
Messages: 5
Registered: February 2006
Promising Member
WinXP(or 98), upp 511 MinGW bundled, Analog clock hello world example. Build it, execute it. Everything OK. And then press the [down] key on your keyboard. It cause a memory error of the clock example.
  • Attachment: clock.png
    (Size: 5.97KB, Downloaded 1458 times)

[Updated on: Tue, 02 May 2006 11:25] by Moderator

Report message to a moderator

Re: Clock example bug [message #927 is a reply to message #923] Thu, 09 February 2006 13:44 Go to previous messageGo to next message
hribek is currently offline  hribek
Messages: 5
Registered: February 2006
Promising Member
Or try AnimatedHello or Color example. Or probably any other UPP program with main frame without child windows (buttons, menu, ...).
Re: Clock example bug [message #928 is a reply to message #923] Thu, 09 February 2006 13:48 Go to previous messageGo to next message
hribek is currently offline  hribek
Messages: 5
Registered: February 2006
Promising Member
bool TopWindow::Key(dword key, int count)
{
if(Ctrl::Key(key, count))
return true;
if(IsChild()) return false;
if(key == K_DOWN || key == K_RIGHT || key == K_TAB) {
Ctrl *ctrl = GetFocusChildDeep();
if(ctrl && IterateFocusForward(ctrl, this))
return true;
if(GetFirstChild()->SetWantFocus())

BUG BUG BUG GetFirstChild() probably return NULL
Re: Clock example bug [message #937 is a reply to message #928] Thu, 09 February 2006 20:11 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Indeed!

Thank you. It is amazing for how long this went unnoticed (there is not too many childless windows in real programming I guess...)

Fixed.

Mirek
Previous Topic: TrayIcon example [BUG][FIXED]
Next Topic: TrayIcon::Icon problems
Goto Forum:
  


Current Time: Thu Mar 28 14:09:55 CET 2024

Total time taken to generate the page: 0.00878 seconds