Hi,
I would like to create a table element in my GUI. Something like this:
Is there a way to do it in MDL?
Regards,
Wojciech
HI Wojciech,
Wojciech said:Is there a way to do it in MDL?
It depends:
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thank you Jan,
Which approach (MicroStation resources or MFC libraries) would be easier? I would like to include in my tables combo boxes.
All the best
Wojciech said:Which approach (MicroStation resources or MFC libraries) would be easier? I would like to include in my tables combo boxes
My preference is the MDL API. It lacks a graphic design tool, but is comprehensive and integrates easily with MicroStation. It provides ComboBox, ListBox, TextBox etc, and more complex widgets that Jan mentions.
MicroStation's Dialog Manager is an invisible helper. It makes it easy to pass application variables between your code and your UI. When that mechanism isn't enough, you can add a hook class (callback handler class) to provide more advanced functionality. A ComboBox is an example, but we've written a ListModel hook handler class to make life simpler. Several examples are delivered with the SDK.
MFC is looking long in the tooth. It requires extra help from MDL/MFC classes supplied with the MicroStation SDK. It knows nothing about the MDL Dialog Manager.
Regards, Jon Summers LA Solutions
Hi Wojciech,
Wojciech said:Which approach (MicroStation resources or MFC libraries) would be easier?
Well ... it is hard to say what is easier, because it is not about technical features only, but also about your skills and project requirements.
Frankly, the easiest is to do not invest time and implement complex GUI for dead platform, when V8i is not supported anymore and Bentley motivates (and pushes) user to migrate to CE, where WPF is available.
But I know it is not answer you expect. If you do not know MFC very well already, I agree with Jon to choose MicroStation resources is the right way. MFC is very old technology, when Microsoft tried to implement object approach to GUI API. MicroStation resources are maybe even older, but they are still there. Even though it look like, comparing e.g. to WPF, as primitive obsolete technology, it works very well and is still used even in CE.
Thank you Jon,
It seems that I should go for MDL, especially that I have some experience with it and I have none with MFC.
I didn't know the long and tooth expression, thanks for the link to the dictionary :-)
I see that my choice depends also on my experience, and I have none with MFC so I'll go for MDL
Wojciech said:I'll go for MDL
Then take a close look at a ListBox whose data source is a ListModel.
ListBox
ListModel
You should find examples delivered with the SDK.
This is very helpful.
Thank you