Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i MDL] Loading DialogItemListRsc resources via mdlResource_load()

$
0
0

[quote user="Jon Summers"]you need to add it to your dialog using mdlDialog_itemsLoad().[/quote]

Sorry - I should have been more clear. I do that, but it seems that only the first items is "drawn". I've worked around the issue(for now) by calling mdlDialog_itemDraw(). I was just thinking maybe I'm not doing something else correctly...

DialogItemListRsc	*pListRsc	= (DialogItemListRsc*)mdlResource_load(NULL, RTYPE_DialogItemList, rscId );
Point2d			location	={0};
BoolInt			bStatus=mdlDialog_itemsLoad(mainDbP, pListRsc, NULL, NULL, 4/*beforeItemIndex*/, &location, TRUE);
long			comboBoxId	= pListRsc->itemList->id;
mdlResource_free (pListRsc);
mdlDialog_itemDraw(mainDbP, 5);	// force the button to draw...

 

 

Bruce


Viewing all articles
Browse latest Browse all 7260


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>