Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

control.refresh not working? (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: The design of the new plugin format - Windows IDE and more
Next thread: mouse vs. cocoa


Re: Sanity check on plugin idea   -   Hadley, Joshua
  control.refresh not working?   -   Alfred Van Hoek
   Re: control.refresh not working?   -   Alfred Van Hoek
   The design of the new plugin format - Windows IDE and more   -   Einhugur Software

control.refresh not working?
Date: 04.06.03 20:54 (Wed, 04 Jun 2003 15:54:25 -0400)
From: Alfred Van Hoek
Developing a new OSX control, an event is fired in the
"controlStateFunction", which senses the "kBoundsChanged". The control is
being dragged and this triggers RB to call the controlStateFunction (the
behavior function that was recently implemented).

The following event is fired in the controlStateFunction of this new control
and a scrollbar should move.

Sub PositionChanged(dx as integer, dy as integer)

scrollBar1.Left = scrollBar1.left + dx
scrollbar1.top = scrollbar1.top + dy
//scrollbar1.refresh

End sub

With scrollbar1.refresh commented out, the position of the scrollbar is
updated in the mouseup. Calling scrollbar1.refresh however does not result
in a live movement of the scrollbar, even worse the scrollbar's position is
not updated and not refreshed (can wipe the scrollbar with the control)
after mouseup.

Has this something to do with Refresh problems in RB?

So I added a pushbutton too:

pushButton1.left = pushButton1.left+dx
pushButton1.top = pushButton1.top+dy
//pushbutton1.refresh

And if only one of these controls call the refresh method, both the
scrollbar and the pushbutton become irresponsive, not being moved, not being
refreshed....

Alfred



---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: control.refresh not working?
Date: 05.06.03 03:20 (Wed, 04 Jun 2003 22:20:52 -0400)
From: Alfred Van Hoek
on 6/4/03 3:54 PM, Alfred Van Hoek at <email address removed> wrote:

> Developing a new OSX control, an event is fired in the
> "controlStateFunction", which senses the "kBoundsChanged". The control is
> being dragged and this triggers RB to call the controlStateFunction (the
> behavior function that was recently implemented).
>
> The following event is fired in the controlStateFunction of this new control
> and a scrollbar should move.

Apparently, you cannot exploit the controlStateFunction to do a live move of
other controls.

Alfred

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>