Usng an image to "disable" a group

Peter Haworth pete at lcsql.com
Sat Sep 20 19:57:25 EDT 2014


I might be on to something I think.  If I export a snapshot of the group I
want to disable and place it over the group's rectangle, it obviously stops
any input into the group.

However, I'm having a hard time finding a way to fill the graphic with a
color. Setting the backgroundcolor didn't do anything.  Then I saw a note
in the dictionary that the "fill" property of a graphic has to be true in
order for the background color to have any effect.  Couldn't find a fill
property but there is a filled property so I set it but still no background
color.

Any ideas?

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 4:19 PM, 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
>>
>
>



More information about the use-livecode mailing list