Grid Control - Column Captions

Started by AutoKAD · 2010-11-04 16:14 UTC · 4 replies · SMF topic #1374

Is there a method that returns a list of current column captions during runtime?  (dcl_Control_GetColumnCaptionList ) does not return a current list if you delete or add a column.  I assume you can write a function to update the column caption list each time a column is added or deleted using (dcl_Control_SetColumnCaptionList ), but it would easier and reduce code if there was a way to return the current column captions.

If there isn't a method yet, maybe include T to specify the return of the current column captions?

(dcl_Control_GetColumnCaptionList {T})

Thanks!
The correct way to address this is to fix the add and delete methods so they modify the control property instead of the control directly. I'll see if I can fix that for the next build.
author=owenwengerd link=topic=1374.msg7294#msg7294 date=1288901847 wrote:
The correct way to address this is to fix the add and delete methods so they modify the control property instead of the control directly. I'll see if I can fix that for the next build.


That would be great!

Thanks Owen!
This is now fixed for the next build. I also changed the code so that the various column properties are listed in the left tree in the control browser.

There are a number of similar cases (of methods operating directly on a control) scattered throughout the OpenDCL code that should be addressed. If you encounter other such cases, please report them.
author=owenwengerd link=topic=1374.msg7296#msg7296 date=1288909374 wrote:
This is now fixed for the next build. I also changed the code so that the various column properties are listed in the left tree in the control browser.


Cool!

author=owenwengerd link=topic=1374.msg7296#msg7296 date=1288909374 wrote:
There are a number of similar cases (of methods operating directly on a control) scattered throughout the OpenDCL code that should be addressed. If you encounter other such cases, please report them.


Sure, no problem.  :)