Usng an image to "disable" a group
Peter Haworth
pete at lcsql.com
Sun Sep 21 18:38:10 EDT 2014
Thanks Jacque, I'll give that a try.
Pete
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 Sun, Sep 21, 2014 at 10:55 AM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:
> Use a colored image instead of a white one and try different
> transparencies until you get the look you want.
>
> On September 21, 2014 12:00:49 PM CDT, Peter Haworth <pete at lcsql.com>
> wrote:
> >Thanks Jacque and Scott. I tried your suggestions but unfortunately
> >none
> >of them quite do what I need in various ways.
> >
> >Using a graphic doesn't work because, although it blocks clicks to
> >buttons
> >in the underlying group, it still allows access to all field controls
> >in it.
> >
> >Using an image blocks access to all the controls in the underlying
> >group
> >but I can't find a way to set the backgroundColor of the image to
> >indicate
> >that it's disabled.
> >
> >All in all, I think I'll just have to go with the simple solution of
> >disabling the group and living with the way it looks.
> >
> >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 7:33 PM, J. Landman Gay
> ><jacque at hyperactivesw.com>
> >wrote:
> >
> >> 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
> >>
> >> _______________________________________________
> >> 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
>
> _______________________________________________
> 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