As a part of creating a bunch of shapescripts to help make a structured collection of stereotypes more immediately intuitive, I created a shape script for «table» ... of course, I actually wanted it to be «oeTable» inheriting from «table», but that is another discussion.
I have realized that my shapescirpt doesn't show the columns in the way the native appearance does, so I thought I would see if I can fix that. But, I don't see any properties which would correspond to the attributes and without some kind of looping construct, I don't know how one would do this anyway.
So, I though, let's try a difference approach. Perhaps I can use drawnativeshape() to get all the standard stuff in there, but to precede or follow it with additional commands to get the overall effect I am looking for.
So, as a first step I did just
shape main
{
drawnativeshape();
}
and, sure enough, that gives me everything as it would be without the shapescript. But, then I tried:
shape main
{
noshadow=true;
setfillcolor(255,204,255);
drawnativeshape();
}
The result is really quite remarkable. The left half of the overall shape is the 255/204/255 color, but the right half is the native color except for the line containing «column» where it is native color all the way across.
I suppose that trying this out on «table» is probably worst case, but I do have to say that this is really quite bizarre.
Note that, if I modify the default color of this stereotype, I don't see anything in that color, just the standard default color.