Showing WCalendar by activating WComboBox
Added by Volker Sahrhage almost 6 years ago
Hi everybody,
I want to create a WComboBox, which can be used to select a date from a WCalendar. I thought about the following behaviour:
1. click the WComboBox
- a WCalendar is shown below the WComboBox
- Select a date
- date is shown in the WComboBox, WCalendar is closed again
I tried several things, but with no results. I thought, that it must be possible to have the WCalendar hidden all the time. When the WComboBox is activated the WCalendar is shown. It must have a higher z-index than all the other elements. So it will be in the front of this elements. After selecting the date or loosing the focus it will be hidden again.
I "played" with positionScheme and z-index but I do not know how to use it correctly.
Can anyone give me a hint how to do this or do it on the correct way?
Cheers
Volker
Replies (2)
RE: Showing WCalendar by activating WComboBox - Added by lm at almost 6 years ago
Maybe Wt::WDatePicker
will help? https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WDatePicker.html
RE: Showing WCalendar by activating WComboBox - Added by Volker Sahrhage almost 6 years ago
Oooh, Argh!
Thank you!
Cheers
Volker