realbasic-nug
[Top] [All Lists]

Re: [ANN] FREE AutoButton for REALbasic

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: [ANN] FREE AutoButton for REALbasic
From: Maximilian Tyrtania <Mty at Fischerappelt dot de>
Date: Thu, 30 Sep 2004 15:33:42 +0200
Cc: Terry Findlay <tfindlay at nethop dot net>
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I seemed to have fixed the problems I had on windows (it just flickered like
hell), by making 2 little changes in the paint event of the autobutton class
to:

  if me.toggle = true then
    if toggleOn = false then
      if me.enabled then
        me.backdrop = me.enabledIcon
      else
        me.backdrop = me.disabledIcon
      end if
    end if
  else
    if me.enabled AND me.Backdrop<>me.enabledIcon AND _
me.Backdrop<>me.PressedIcon then`that's the 1st change
      me.backdrop = me.enabledIcon
    elseif me.enabled=false AND me.Backdrop<>me.disabledIcon then `that's
the other change
      me.backdrop = me.disabledIcon
    end if
  end if

It looks like on Windows setting the backdrop property in the paint event
fires another paint event. Hence the flicker.

Best wishes and thanks Terry!

-> Maximilian Tyrtania | Mty at fischerAppelt dot de
  fischerAppelt Kommunikation GmbH
  Tucholskystr. 18 | D-10117 Berlin | Germany
  Tel. ++49-30-726146-728 | Fax ++49-30-726146-710
  www.fischerAppelt.de

-- 


> Von: "Walter Purvis" <wpurvis7 at bellsouth dot net>
> Antworten an: wpurvis7 at bellsouth dot net, REALbasic NUG
> <realbasic-nug at lists dot realsoftware dot com>
> Datum: Wed, 29 Sep 2004 14:07:15 -0400
> An: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
> Betreff: RE: [ANN] FREE AutoButton for REALbasic
> 
> Is this a Mac-only thing? The buttons are completely invisible on Windows.
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>