Hi, right now all cards have the stack title as their name (at the top of the card window). How can I change this so it has a title I define for each card? For example the first card might be called "Collection", the second "Acme Inc." the third "Template", the forth "View" etc. Thanks
-- Mark
Changing window title
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Changing window title
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Changing window title
Something like:
on opencard
set the title of this stack to "whatever"
end opencard
if you want it to match the card name you can
set the title of this stack to the short name of this card-- instead.
So that you can name your cards whatever and the stack title will reflect that name.
on opencard
set the title of this stack to "whatever"
end opencard
if you want it to match the card name you can
set the title of this stack to the short name of this card-- instead.
So that you can name your cards whatever and the stack title will reflect that name.
Re: Changing window title
What Sturgis said.
The important thing to know is that titles are like convenient, er, labels (in fact they are synonyms), whereas names are far more solid and more highly integrated properties of objects. Only a few controls (buttons, groups) have this extra level of "naming" settable in the inspector. Most, (fields, scrollbars, images, gaphics, datagrids) do not, and I never understood why. But they all can have labels, set under script control.
Craig Newman
The important thing to know is that titles are like convenient, er, labels (in fact they are synonyms), whereas names are far more solid and more highly integrated properties of objects. Only a few controls (buttons, groups) have this extra level of "naming" settable in the inspector. Most, (fields, scrollbars, images, gaphics, datagrids) do not, and I never understood why. But they all can have labels, set under script control.
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Changing window title
Thanks guys. Works as advertised.
-- Mark
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS