Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWCalendar in modal window
#11
Hi Alexandre, thanks a lot for your help.


The TIWCalendar component now also works in a modal window with a TFrame.


However, I also noticed the following small problems:

If the properties CaptionNext or CaptionPrevious are changed by localized texts during runtime, this only takes effect for both fields after at least one of the fields has been clicked.

The digits in the date fields are always displayed with an underscore, although this is not selected in the properties. This cannot be changed either.

When you click on a number in the calendar, the font color changes to display the selection (red), but only as long as the mouse button is pressed.
A permanent switchover is only possible if you only release the mouse button outside of the number field!

The CheckerBoard property cannot be switched off programmatically.

Since I haven't found any further documentation for TIWCalendar, I also have the following questions:

Can the property LocaleID be generated via the Microsoft API macro MAKELCID ?
What does this property do ?
So far, I have been loading localized resources from a Microsoft resource file, first switching the LocaleID of the TFrame accordingly (SetThreadUILanguage()/SetThreadLocale()).

What is the FrameBuffer property used for ?


Regards
Juergen
Reply
#12
After upgrading from IW15.2.38 to IW15.2.39, the buttons for previous / next no longer work correctly.
Only one completely blank page is displayed at a time.
If I go back to IW15.2.38 it works again.


Regards
Juergen
Reply
#13
Previous / Next buttons where? You mean the browser history buttons?
Reply
#14
No, I mean the Previous / Next buttons from TIWCalendar.
So it also happens in the example I sent you.
Reply
#15
Oh... I see.. I'll check it out and get back to you.

Thanks
Reply
#16
This issue has been fixed and will be available in the next update
Reply
#17
Thanks
Reply
#18
Ok, is working again.
Reply
#19
Lightbulb 
Sorry for entering the old thread...

but I have just the problem. IWCalendar in a Modal window. Clicking Prev or next in Calendar the modal Window is cleared and nothing else happen

IW 15.5.3
CBuilder 10.2.3
IWCalendar.AsyncMode is true

ModalWindowParameters:
  IWMdlWCal->Reset();
  IWMdlWCal->Autosize  = false;
  IWMdlWCal->HasFooter = false;
  IWMdlWCal->HasHeader = false;
  IWMdlWCal->SizeUnit = suPixel; 
  IWMdlWCal->ContentElement = IWCalendar1; 
  IWMdlWCal->Buttons->Add("Übernehmen|NoClose");
  IWMdlWCal->Buttons->Add("Schliessen");
  IWMdlWCal->WindowHeight= 250;
  IWMdlWCal->WindowWidth = 300;
  IWMdlWCal->Show();   


Thanks
  Jörg
Reply
#20
No idea why it doesn't work.
I tried an older IntraWeb version (15.4.1), but had the same behavior.
Maybe it's my old cbuilder ? 10.2.3.

Now I found a solution or got around the error:
in IWCalendar I set AsyncMode to false
write an event routine for DateChange and one for GetMonthName or GetDayName
The events are also fired from the Modal Window.
When a date is selected TDateChange, and when Prev or Next Button is clicked GetMonthName.

The ModaleWindow is closed, I can't prevent that, but I start it again in the GetMonthname event routine.

The previous/next month is displayed, it is as it should be.
In Germany we say "from behind through the chest into the eye" [Image: wink.png]

But it seems to work if anyone is still looking for it.
Or is there something against it?

Thanks
  Jörg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)