my self contained MODAL mobile/desktop dialog box

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 366
Joined: Mon Jun 10, 2013 1:32 pm

my self contained MODAL mobile/desktop dialog box

Post by Lagi Pittas » Tue May 10, 2016 5:53 pm

mobiledialogbox.zip
(2.06 KiB) Downloaded 271 times
Hi

After the double click single click list field problem I had (working as it should on Windows but not on android). I rethought
my dialog box cut the code down removed the 3 globals, removed a send "message" in x milliseconds I had, and managed to get it to disable all other controls to boot,
by using a front script - first time ever and does it not save a lot of enable/disable coding.

I searched the forums and stackoverflow but the only suggestions were use a card or a snapshot of the screen as the background of the card.

The way it is coded you can make it look as you want the code is pretty easy to undesrstand - when I have time I will probably
try to make it not dependent on the card it is on and create it on the fly(colour, position etc) (homework for Richmond or Craig maybe, who are both more experienced than I/me (pretentious moi?).

Anyway it works as I want and the first rule is Make it work then make it better.

The example stack shows how to use it to allow short click and long click in a listbox to call the dialog with a different question.

There is a lot I could do on this but it works for what I want it for at the moment but any mods/changes added on this thread woukld be very much appreciated - i feel a widget coming on when I stop using 6.x :)


Kindest Regards Lagi

Post Reply