Subject |
Re: ok button missing in datecalendar.cc |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Sat, 11 Nov 2023 13:31:09 +0200 |
Newsgroups |
dbase.getting-started |
On 2023/11/08 07:12, Ken Mayer wrote:
>
> That's an ... interesting issue. Is there some way to determine this in
> code?
In the cold light of morning and after the second cup of coffee I've
come to the conclusion that my mind was in neutral. :-(
The screen resolution specifies how many x and y pixels are on the
screen. The size of the pixels can affect the actual size of a form on
the screen but if components are placed at specific coordinates the size
of the pixels is irrelevant.
The calendar itself, the "Select date" pushbutton, the underlying form
that holds the calendar and pushbuton all have hard-coded values in
their height properties. On Charlie's laptop the height of
CalendarForm, which should be 165 pixels seems actually to be 141 pixels
which is the height of PixCalendar22. As Charlie has replaced
DateCalendar.cc with a a fresh copy the problem can't be corrupted
sourcecode.
DateCalendar.cc and the PixCalendar controls were written 18 years ago
to provide features not available in the then off-the-shelf version of
dBASE. Since then dBASE has gained the datetimepicker control as a
built-in control. Unless Charlie requires holidays to be highlighted in
his calendars the easiest solution to the problem is to use the
datetimepicker control.
Mervyn.
|
|