card name next to the name stack

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
pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

card name next to the name stack

Post by pascalh4 » Fri Aug 23, 2013 9:30 am

Hello,

When a stack has several cards, the number corresponding to the active card is displayed to the right of the stack.

Is it possible to change or add to, that number, by the name of the active card? (via a script with the set command or other)

Pascal.

Klaus
Posts: 14222
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: card name next to the name stack

Post by Klaus » Fri Aug 23, 2013 11:08 am

Hi Pascal,

when you do NOT set a TITLE for the stack, then the window title
will show the stack name and the current card number.
When you set a TITLE, the only the title will be displayed.

You can add this in the card script of every card:

Code: Select all

on preopencard
  set the title of this stack to the short name of this cd
  ### more stuff...
end preopencard

Best

Klaus

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: card name next to the name stack

Post by pascalh4 » Fri Aug 23, 2013 2:27 pm

Hello Klaus

I tested with several combinations and that's exactly what I wanted.

thank you!
See you later in the next issue.
(I imagine it will not be long :lol: )

Pascal

Post Reply