Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
ListModel
C++
Cell Editor
connect
Dialog Item
DialogItemHandler
DialogItemHookHandler
Hook Class
Hook Handler Classes
ListBox
ListRow
MDL
MicroStationAPI
StringList
template
[CONNECT C++] ListModel Manager for ComboBox and ListBox Hook Classes
Jon Summers
The MicroStationAPI DialogItemHookHandler class lets us write simpler hook handlers for MicroStation dialog items. They let you avoid the giant MDL switch statement in your procedural hook handler code. The ComboBox and ListBox dialog items share the…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
C++ ListModel Manager for ComboBox and ListBox Hook Classes
Jon Summers
For many years we have written dialog item hook functions using procedural code. You can continue that way with MicroStation CONNECT, but the MicroStationAPI offers a better way: dialog and dialog item hook classes. The hook classes replace the MDL…
over 4 years ago
MicroStation Programming
MicroStation Programming Blog
[CONNECT C++] DataSheet Example
Jon Summers
I've updated Mark Anderson's DataSheet project for CONNECT. DataSheet shows how to create cell editors that modify a ListModel displayed in a ListBox . Each of six columns uses a different editor: simple text combo box binary choice color…
over 6 years ago
MicroStation Programming
MicroStation Programming Forum
editable listboxes
rayjoslyn
I am trying to get a listbox cell to be editable, but cannot get it to work. What am I missing? Below is the create from the listbox create hook and the Ditem_listboxrsc definition: case DITEM_MESSAGE_CREATE: { int i,numCols=2; …
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: editable listboxes
Jon Summers
Ray: I am trying to get a listbox cell to be editable, but cannot get it to work. You are right to use a ListModel , but incorrect in assuming that a ListBox can be edited. The ListBox is merely the presentation device for a ListModel , and…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: mdlListRow_setStatus( )
Jon Summers
Data<=>User Interface A ListModel is a data storage utility. You can use a ListModel independently of its usual display widget, the MDL ListBox . However, the API blurs the distinction between data and presentation with functions like mdlListRow_setStatus…
over 11 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: ListCell String
Jon Summers
ListBoxes & ListModels There's an article about ListModels, ListCells, and Cell Editors . There's an example MDL project you can obtain from that page. It shows an example dialog with a ListBox that stores a ListModel . The hooks functions in the…
over 11 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: dgnlib levels and levelIDs
Jon Summers
Ray: How do I get it to use the level codes when I do the mdlLevelList_getLevelNamesListModelEx ? It's curious that those functions ignore the level code. Why don't they build a two-column ListModel that stores both the name and the code…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: How to insert values into combobox.
Jon Summers
Prefer ListModel to StringList StringList is provided for legacy purposes. Prefer ListModel to StringList … More flexible & versatile Better structured Stores values not strings Display can differ from value …
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8 XM Edition Programming Forum
Re: MDL-Unicode Support
Jon Summers
ListModel Jeyankondan: I'm retrieving data from a database as Unicode characters that I want to store in a string list. StringList s are a relic from the first version of MDL released in about 1993. They can accommodate only multibyte…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8 XM Edition Programming Forum
Re: Level Manager source code
Jon Summers
ListModel Jan: Does anybody know if the source code of the Level Manager (or snippets from it) is available? I like the way that the colorpicker, linestyle dropdown list, etc, are part of the listbox. Dialog like Level Manager display a…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8 XM Edition Programming Forum
Re: processing multi-model files
Jon Summers
ListModel John: Is there something like the StringList for MSWChar strings? Yes: the ListModel and its children ListRow , ListColumn , and ListCell provide an excellent and much more capable substitute. Regards, Jon Summers…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8 XM Edition Programming Forum