Page 1 of 1
LC 8 Widgets
Posted: Sun Sep 06, 2015 12:57 pm
by teacherguy
Has anyone tried using any of the widgets with your iOS app? I tried placing the color swatch widget but when I go to the simulator there is nothing there. Any ideas?
Re: LC 8 Widgets
Posted: Sun Sep 06, 2015 6:54 pm
by quailcreek
Hi teacherguy,
You need to go to the Stand Alone Settings and on the Copy Files panel click the ColorSwatch from the Extensions list.
Re: LC 8 Widgets
Posted: Mon Sep 07, 2015 12:46 pm
by teacherguy
Thanks! Doesn't seem to come with any stock behavior, unless I'm missing something....
Re: LC 8 Widgets
Posted: Mon Sep 07, 2015 7:37 pm
by quailcreek
Your not missing anything.
Re: LC 8 Widgets
Posted: Sun Sep 13, 2015 10:07 pm
by Fjord
Is there some doc about catching the messages from these widgets? I seem to understand that the header widget generates calls to "searchAction", "headerAction" and "leftAction". Did I miss some messages?
Re: LC 8 Widgets
Posted: Mon Sep 14, 2015 12:15 am
by quailcreek
Look in the dictionary, pick Header in the LiveCode Script drop down.
Re: LC 8 Widgets
Posted: Mon Sep 14, 2015 11:37 am
by Fjord
Look in the dictionary, pick Header in the LiveCode Script drop down.
Er... searching the dictionary for "heading" gets me only to pages about HTTP servers...?
And could you please be more explicit about "the LiveCode Script drop down"? what /where is it?
My problem is, I have two cards, I want the "Back" button in the header of card 2 to go back to card 1.
Sometimes it works fine but the second time the icon "< Back" gets dimmed and does nothing.
Hence my search for documentation.
Re: LC 8 Widgets
Posted: Tue Sep 15, 2015 3:38 pm
by Klaus
Hi Fjord,
Fjord wrote:Look in the dictionary, pick Header in the LiveCode Script drop down.
Er... searching the dictionary for "heading" gets me only to pages about HTTP servers...?
use the DROP DOWN menu in the dictionary, see attached screenshot!
Best
Klaus
Re: LC 8 Widgets
Posted: Tue Sep 15, 2015 8:36 pm
by Fjord
The thing is, on my MacBook, the dictionary opens showing only just its right part, so that I couldn't even guess there WAS a left part with the pull down menu. I found it this morning, while trying systematically every part of the IDE. It DOES make things a lil'bit easier! Thanks!
Re: LC 8 Widgets
Posted: Tue Sep 15, 2015 8:54 pm
by Fjord
Still about widgets:
I have a 4 card stack. I use the navBar widget in the main card to navigate around; works just fine. Now I want to use the "back" btn of the header widget of the target cards to go back to the main card.
The "back" btn on the target cd looks like it's enabled but when I click it, 9 times out of 10 it gets dimmed and does not generate any call in the message watcher. I don't understand what disabled it - if that's what happened.
I tried to create another stack with only two cards and a stack script containing only
Code: Select all
on leftAction
go next cd
end leftAction
on searchAction
ask something -- and do nothing
end searchAction
and clicking "back" works like a charm, swapping happily between the 2 cards without getting dimmed or disabled.
What can happen that disables the back btn of the header widget?