We have several MDL applications with numerous Dialogs. In some of these dialogs the user is asked to enter a date.
So far, we implemented this as a simple textbox, whose contents is parsed by means of a function we wrote.
I would like to know if there's some kind of datepicker. Let's say a combobox that opens a calendar when the user presses the down-arrow.
Something similar to the popup that shows up when the user clicks on the current time within the Windows taskbar.
Hello Robert,
please have a look at forum best practices!
Without knowing which MicroStation and which language and which kind of resources it is impossible to answer your question.
Mit freundlichen Grüßen / Best regards Volker Hüfner
| AB_DATE Engineering Software | ab-date.de |
Hi Volker,
We're currently working with MicroStation V8i (SELECTseries 2) and using the MC (C-like) development language.
We use the resources in a .r file like DItem_TextRsc, DItem_ComboBoxRsc, etc.
I'm looking for a specific resource type that allows the user to select a date.
For instance, when choosing a linestyle, we use the DItem_OptionButtonRsc OPTIONBUTTONID_LineStyle.
Hope this answers your questions.
Robert Kock said:and using the MC
Wow! I guess this was marked as "deprecated" since 2001 history of microstation but the resources works still in CE.
I do not remember a Date/Time picker. Only some adaption with SpinBox or Generic.
But I would not recommend to try this with the good old MDL-Compiler, I think this would be a waste of time. But this is up to you of course. But even good old V8i SS2 has more development power than MC could offer you.
Robert Kock said:We're currently working with MicroStation V8i (SELECTseries 2) and using the MC (C-like) development language
I guess you mean MDL, which builds a .ma file that contains byte code?
.ma
The UI options with MDL are, as Volker Hüfner writes, limited. For that version of MicroStation I suggest moving to C++ and use Microsoft Foundation Classes (MFC) to build your UI. MFC provides an extensive rage of UI widgets, including a Date Control.
You can write code in C++ that uses the MicroStationAPI. There are some Bentley classes that support MFC. Use Viz Studio to write your code. Here's a table of compatible Viz Studio versions.
Regards, Jon Summers LA Solutions