Usng an image to "disable" a group
J. Landman Gay
jacque at hyperactivesw.com
Sat Sep 20 22:33:36 EDT 2014
You can put a white image over the group and set its blendlevel to 99. That makes it visually transparent but it will still respond to mouse clicks (or use any level you want.) Then put an empty mouseUp handler in the image to block clicks.
On September 20, 2014 6:19:05 PM CDT, Peter Haworth <pete at lcsql.com> wrote:
>Thanks Larry. I tried your suggestion but it has the same problem as
>using
>an image - buttons underneath the button are blocked but fields can
>still
>be used.
>
>I guess I'll have to stick with disabling each group when necessary.
>Wish
>there was a way to affect the background color of a disabled group but
>don't think there is.
>
>
>Pete
>lcSQL Software <http://www.lcsql.com>
>Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
>On Sat, Sep 20, 2014 at 11:19 AM, <larry at significantplanet.org> wrote:
>
>> Hi Peter,
>> I'm not sure what you're exactly looking for in "looks" but I just
>now
>> made a little test stack with colored buttons.
>> You can adjust the blendlevel so that the group is as opaque or as
>> transparent as you wish it to be.
>> That's one idea.
>> Larry
>>
>> ----- Original Message ----- From: "Peter Haworth" <pete at lcsql.com>
>> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
>> Sent: Saturday, September 20, 2014 10:20 AM
>> Subject: Usng an image to "disable" a group
>>
>>
>> I have a stack with a series of groups on it. I need to control the
>order
>>> in which data is entered into the groups. The obvious/easy way is
>to
>>> enable/disable the groups as needed but I'm not happy with the way
>groups
>>> look when they are disabled.
>>>
>>> I vaguely remember a thread about using images to do this since
>clicks
>>> within the image don't make it through to the underlying controls.
>When I
>>> tried this, clicks on buttons that were under the image did not
>trigger
>>> any
>>> mouse events on them, as hoped, but field controls still get focus
>and I
>>> can type into them.
>>>
>>> It seems like this isn't going to work so looking for other ways to
>>> achieve
>>> this without having to go through every control in the group and
>adjusting
>>> their properties to disable them. Alternatively, is there a way to
>>> control
>>> how a group looks when it is disabled?
>>>
>>> Pete
>>> lcSQL Software <http://www.lcsql.com>
>>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html>
>and
>>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list