$TitleOpacity hides not only the Name/Title but at the same time: the Text in a Note on Map-View.
I do not want this.
QUESTIION:
Is this a bug or a feature?
And once it’s a feature: to what end?
BTW: $Name = Title of a Note. Right?
But:
Wanting to alter the, say, Opacity of the “Name”, one has to look for the Attribute $TitleOpacity instead of – more intuitively at least to me – something like $NameOpacity.
Neither. The attribute works as described. I think an elision in understanding here is showing $Text in the face of notes on the map is not an original feature. So, $MapBodyTextSize was added in v4.0.0 but even now only show if you resize a note. IOW, note test is not shown by default. instead nores show only their title, which is stored in $Name.
But note title has always == $Name. See above.
So, what is the actual problem you are trying to solve? Are you wanting to suppress the title in a note, but not the $Text? If so, what is the underlying context of need?
Setting the $TitleOpacity manually from the KeyAttribute-Menu, works great.
But having a Rule setting the $TitleOpacity in accordance to Code like this if($Name=="untitled"){$TitleOpacity=0;} else {$TitleOpacity=100;} – it’s not working at all.
This is what I’d expect. The title is ‘untitled’ so the text in the note is opaque (not seen). If, as said you’d fully understood the my earlier reply, you’d see this is the expected behaviour.
if you want the title and the text to have different opacity then that is a new feature request. I’m not saying the latter is wrong to want, but the behaviour described is as expected as at v9.6.1.
There are plenty more attributes relating to look and feel (shape, border, shadow, etc.) but these give the gist of things. The note’s title has been stored in system attribute $Name since the app launched in 2001, the use of ‘Title’ is attribute names used to refer to text windows which disappeared with the app redesign in v6 but still exist for legacy compatibility reasons.
Aha, I got to the bottom of my failure with @eastgate’s demo file. Setting $TitleOpacity to default made no change to the map (see my previous report), nor did editing the note in other ways. I just tried something I overlooked before, clicking the maps tab to force a full map re-draw and unlike before, now I see:
So going from opacity 100 to 0 works but going from 0 to 100 currently needs a manual bump to refresh the view. I guess an extra re-draw prompt is needed behind the curtain to avoid the later need in the future.
FWIw, the giveaway was when I duplicated the note that should show title/text but wasn’t. The duplicate presented correctly, hinting that a deeper re-draw needed calling.
Could you kindly provide us with refined formula one is supposed to use – at least for the time being – to achieve what actually jump-started this very post?
But while having to use $Name in order to put information in whereas changing the appearance of the Name asks for $Titlexyz like $TitleOpacity isn’t that straightforward at least to my non-programmer brain.
I think that, if $TitleOpacity is zero, the text thumbnail is also suppressed. If I recall aright, this was requested a few years back; I don’t remember the details.
I wonder, in your case, if using $DisplayExpression would suffice:
if ($Name=="untitled") {"[space]";} else {$Name;}
I’ll look into separating $TitleOpacity from the text thumbnail.