LC 8 Widgets

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

LC 8 Widgets

Post by teacherguy » Sun Sep 06, 2015 12:57 pm

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?

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: LC 8 Widgets

Post by quailcreek » Sun Sep 06, 2015 6:54 pm

Hi teacherguy,
You need to go to the Stand Alone Settings and on the Copy Files panel click the ColorSwatch from the Extensions list.
Tom
MacBook Pro OS Mojave 10.14

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: LC 8 Widgets

Post by teacherguy » Mon Sep 07, 2015 12:46 pm

Thanks! Doesn't seem to come with any stock behavior, unless I'm missing something....

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: LC 8 Widgets

Post by quailcreek » Mon Sep 07, 2015 7:37 pm

Your not missing anything.
Tom
MacBook Pro OS Mojave 10.14

Fjord
Posts: 145
Joined: Sat Dec 06, 2008 6:18 pm

Re: LC 8 Widgets

Post by Fjord » Sun Sep 13, 2015 10:07 pm

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?
--
François

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: LC 8 Widgets

Post by quailcreek » Mon Sep 14, 2015 12:15 am

Look in the dictionary, pick Header in the LiveCode Script drop down.
Tom
MacBook Pro OS Mojave 10.14

Fjord
Posts: 145
Joined: Sat Dec 06, 2008 6:18 pm

Re: LC 8 Widgets

Post by Fjord » Mon Sep 14, 2015 11:37 am

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.
--
François

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

Re: LC 8 Widgets

Post by Klaus » Tue Sep 15, 2015 3:38 pm

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
dropdown_dictionary.jpg

Fjord
Posts: 145
Joined: Sat Dec 06, 2008 6:18 pm

Re: LC 8 Widgets

Post by Fjord » Tue Sep 15, 2015 8:36 pm

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!
--
François

Fjord
Posts: 145
Joined: Sat Dec 06, 2008 6:18 pm

Re: LC 8 Widgets

Post by Fjord » Tue Sep 15, 2015 8:54 pm

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?
--
François

Post Reply