| Subject |
Re: ok button missing in datecalendar.cc |
| From |
Mervyn Bick <invalid@invalid.invalid> |
| Date |
Mon, 6 Nov 2023 10:15:52 +0200 |
| Newsgroups |
dbase.getting-started |
On 2023/11/06 09:00, Charlie wrote:
> The ok pushbutton under the calendar is missing. Any suggestions?
My guess is that you moved the datecalendar control on the form after
you placed it. The control is made up of three separate components, a
container, an entryfield and a pushbuton.
Open the .wfm file in the sourcecode editor and check the constructor
code for the datecalendar object. If there is more than one entry for
datecalendar the easiest way to deal with this is to delete all of the
entries. Close the sourcecode editor and then open the form in the
designer and place a new datecalendar control where you want it.
If the designer has not used the same name as before (probably
DATECALENDAR1 unless you have multiple datecalendar controls on the
form) then you will need to change its name back to the original
otherwise existing references to the control in your code won't work.
Because the datecalendar control is made up of three components, moving
it once it has been placed is tricky. One needs to first select the
control in the Inspector's combobox. This will show the object's
handles on the form. The only object selected is, however, the
container. If you move it now it leaves the entryfield and the
pushbutton behind. One also needs to left click on the entryfield and
the pushbutton with the control key held down. This ensures that all
three components are selected. Without releasing the control key drag
the control to its new position.
|
|