deleteScrollbar

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
deleteScrollbar
Associationsscrollbar
Summary

Sent to a scrollbar just before it is removed from the stack.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on deleteScrollbar -- prevent the deletion by immediately undoing it
  beep
  send "undo" to this card in 5 milliseconds
end deleteScrollbar
RelatedKeyword: scrollbar
Command: delete
Object: stack
Glossary: command, message, trap
Control Structure: pass
Description

Handle the deleteScrollbar message if you want to perform cleanup before a scrollbar is removed from the stack.

The actual deletion is not triggered by the deleteScrollbar message, so trapping the message and not allowing it to pass does not prevent the scrollbar from being removed.

However, the undo command will restore a scrollbar after it is deleted by the user.

Tagsobjects