Home » U++ Library support » CalendarCtrl » DateTimeCtrl 1.06 released
Re: DateTimeCtrl 1.06 released [message #6297 is a reply to message #6295] |
Sun, 05 November 2006 23:27 |
|
fallingdutch wrote on Sun, 05 November 2006 17:02 | you are welcome,
another "bug" when compiling with 610-dev4:
since 610-dev3 the function "IsXpStyle()" is gone, so the following line in
DateTimeCtrl.icpp should be changed:
void Calendar::PopUp(Ctrl *owner, Rect &rt) {
Close();
Reset();
SetRect(rt);
//Ctrl::PopUp(owner,true,true,IsXpStyle()); I am old!
Ctrl::PopUp(owner);
open=true;
}
Bas
|
Thanks again, but this is already fixed. DateTime will be integrated with upp so in future such bugs will be fixed immediately. Sorry for troubles...
|
|
|
Re: DateTimeCtrl 1.06 released [message #6298 is a reply to message #6297] |
Sun, 05 November 2006 23:58 |
zsolt
Messages: 696 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
This would be better, I think:
void Calendar::PopUp(Ctrl *owner, Rect &rt)
{
Close();
Reset();
SetRect(rt);
//Ctrl::PopUp(owner, true, true, IsXPStyle());
Ctrl::PopUp(owner, true, true, GUI_GlobalStyle() >= GUISTYLE_XP);
open = true;
}
|
|
|
Re: DateTimeCtrl 1.06 released [message #6299 is a reply to message #6298] |
Mon, 06 November 2006 00:14 |
|
zsolt wrote on Sun, 05 November 2006 17:58 | This would be better, I think:
void Calendar::PopUp(Ctrl *owner, Rect &rt)
{
Close();
Reset();
SetRect(rt);
//Ctrl::PopUp(owner, true, true, IsXPStyle());
Ctrl::PopUp(owner, true, true, GUI_GlobalStyle() >= GUISTYLE_XP);
open = true;
}
|
And this's exactely how it's really fixed
|
|
|
|
Re: DateTimeCtrl 1.06 released [message #6342 is a reply to message #6340] |
Tue, 07 November 2006 11:59 |
|
fallingdutch wrote on Tue, 07 November 2006 05:52 | just found another two things:
1. in DateTimeCtrl.cpp you define your IMAGEFILE local, that doesn't work for me, but "#define IMAGEFILE <DateTimeCtrl/DateTimeCtrl.iml>" does work
2. in Paint i get an Error on the line
String &s = DyName((i+1)%7);
it works with
String s = DyName((i+1)%7);
Bas
|
Thanks! But I think I have this all already fixed (I did it when testing it under linux and using gcc).
|
|
|
|
Re: DateTimeCtrl 1.06 released [message #6581 is a reply to message #6575] |
Sun, 19 November 2006 15:57 |
|
fallingdutch wrote on Sun, 19 November 2006 08:04 | a callback when the selected day changed would be nice, so you can react on it by getting the current date and run some other code with the new date.
Bas
|
I think WhenAction is all you need...
datectrl <<= THISBACK(WhenDateChanges);
or
datectrl.WhenAction = THISBACK(WhenDateChanges);
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 19 03:25:54 CEST 2024
Total time taken to generate the page: 0.03287 seconds
|