Search found 7 matches

by velcrobelly
Thu May 07, 2020 11:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set Main Stack Card from Modal
Replies: 7
Views: 3860

Re: Set Main Stack Card from Modal

Thanks, Dunbarx. The following appears to work:

Code: Select all

on mouseup
  send "go to cd card_accounts" to stack "MainStack" in 1
  send "close stack modal_dialog" to stack "MainStack" in 1
end mouseup
by velcrobelly
Thu May 07, 2020 9:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set Main Stack Card from Modal
Replies: 7
Views: 3860

Re: Set Main Stack Card from Modal

Klaus, thank you for the response. On the button in the modal I have placed: on mouseup send "go to cd card_accounts" to stack "MainStack" in 1 close this stack end mouseup However, it only closes the modal and does not switch the card. BTW, I am using a substack as the modal. I also noticed that if...
by velcrobelly
Thu May 07, 2020 8:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set Main Stack Card from Modal
Replies: 7
Views: 3860

Re: Set Main Stack Card from Modal

I have tried:

Code: Select all

on mouseUp
   go to card "card_acounts"
   close this stack
end mouseUp
and it closes the modal, but does not go to the card.
by velcrobelly
Thu May 07, 2020 8:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set Main Stack Card from Modal
Replies: 7
Views: 3860

Set Main Stack Card from Modal

Is it possible to click on a button in a modal dialog that will then close the modal and change the card in the main stack?
by velcrobelly
Sun Apr 26, 2020 5:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Number Range in Input Field
Replies: 12
Views: 6689

Re: Number Range in Input Field

So, then another challenge for either of you... After the field has content, then I try to edit the field by selecting/highlighting the characters in the field using the mouse, it does not allow me to type in a new number. I have to hit delete or backspace. Is there a way to take that into considera...
by velcrobelly
Sat Apr 25, 2020 9:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Number Range in Input Field
Replies: 12
Views: 6689

Re: Number Range in Input Field

This works great. Thanks!
by velcrobelly
Sat Apr 25, 2020 8:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Number Range in Input Field
Replies: 12
Views: 6689

Number Range in Input Field

I need to have an input field that accepts numbers only within the range of -20 to 20. I have part of the code working, but can't figure out the range feature. Any help would be appreciated. on KeyDown theKey if (the text of me & theKey) is a number then pass keyDown else if the text of me is empty ...