Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack "Settings Card Behavior" does not remain connected to card "settings" of stack #1

Open
MartinKoob opened this issue Feb 13, 2021 · 0 comments

Comments

@MartinKoob
Copy link
Contributor

MartinKoob commented Feb 13, 2021

The button "create requests" of card "Settings" of stack "main window" should not have to have any code to handle mouseUp messages.

This mouseUp should be handled by the behavior stack "Settings Card Behavior"

 app/ui/Main Window/behaviours/Settings Card Behavior.livecodescript

but when I set the behavior of card "settings" to stack "Settings Card Behavior" the mouseUp message is not handled by that behavior.

When the app first is opened for some reason the stack "settings Card Behavior" is not opened.

For now, just so the "create requests" button will work I have added the mouseUp handler in this button

on mouseUp
   go card "requests"
end mouseUp

However, nce this issue is resolved the above handler should be removed and the mouseUp message generated by clicking this button should be handled by the mouseUp hander that is in the behavior stack "Settings Card Behavior"

Workaround unsucessful.

I tried manually opening the stack "Settings Card Behavior" after I had opened the project by

  1. selected the open stack... menu item of the File menu of LiveCode
  2. selected "app/ui/Main Window/behaviours/Settings Card Behavior.livecodescript" file and click 'Open'
  3. commented out the mouseUp handler in the button "create Requests"
  4. clicked on mouse button "create requests"

This did not work. The mouseUp messages from clicking the "create requests" did not go to the stack "settings Card Behavior"

bduck pushed a commit that referenced this issue Feb 15, 2021
bduck pushed a commit that referenced this issue Feb 27, 2021
Resolve issue #1 - The behavior stack for the settings card was not loading when the project was opened.   This was because the StackFiles for the stack 'Main WIndow.livecode' had an incorrect file path to the behaviour script file for the settings card  stack 'Settings Card Behavior.livecodescript'.
To resolve this I deleted the incorrect reference to that stack file and added a reference to that stack file that had the correct file path.
bduck added a commit that referenced this issue Feb 27, 2021
Resolve issue #1 - update Main WIndow.livecode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant