Grid - Layerlist to edit?

Started by Peter2 · 2016-09-08 12:55 UTC · 5 replies · SMF topic #2421

I have a grid where a column is "Style 27 / Layer". There I see the list of the existing layers - name and properties. That's fine, but is there a way to add new layer names (like in in editable list-boxes?)

Peter
Hi, I'm not sure. What will happen if you try to apply (dcl-Grid-SetCellDropList Unbenannt/Dialog3/Datenblatt1 intRow [als Long] intColumn [als Long] lstItems [als Liste von Strings] {lstImages [als Liste von Integers]}) to the grid when the cell uses layerlist-style?
Regards, Fred
author=Fred Tomke link=topic=2421.msg12164#msg12164 date=1477648752 wrote:
Hi, I'm not sure. What will happen if you try to apply (dcl-Grid-SetCellDropList ...

Sorry, I was not precise. I meant "to add manually in the dialogue", but not with Lisp.
Sorry, but I've lost the connection, I can't follow your thoughts. The layers are listed in a cell in layerdropdown style.
When a new layer is added to the drawing - in my knowlegde - you have to update the cell by explicitly assigning the cellstyle. But I may be wrong.
Regards, Fred
Here is a simple, semi-working example. I have three controls:

a) A "Combobox Style0" which lists the layers, based on a layerlist which was created by the code. Here I can add additional entries.

b) A "Combobox Style2" which lists the same layerlist. Here I can only select, but not type new values

c) A Grid with column style "27 - Layers". It lists the layers plus properties based on ODCL-functions. I can select, but not enter new.

The question above is:
How to enter new values to c) in the same way as in a)?

At the moment it seem to be not possible, but maybe it could be discussed as new feature?

Peter
Attachments
author=Peter2 link=topic=2421.msg12189#msg12189 date=1478085538 wrote:
At the moment it seem to be not possible, but maybe it could be discussed as new feature?


The layer combo (and many other combos) are actually implemented in Acad and just exposed for use by ARX apps. For such controls, generally you're stuck with whatever Autodesk implements.