Changing window title

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Changing window title

Post by marksmithhfx » Mon Aug 20, 2012 5:29 pm

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
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Changing window title

Post by sturgis » Mon Aug 20, 2012 5:35 pm

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10322
Joined: Wed May 06, 2009 2:28 pm

Re: Changing window title

Post by dunbarx » Mon Aug 20, 2012 6:14 pm

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

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: Changing window title

Post by marksmithhfx » Tue Aug 21, 2012 4:47 pm

Thanks guys. Works as advertised.

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Post Reply