[futurebasic] STUCK ON CDEFS

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: "Edwards, Waverly" <WEdwards@...>
Date: Fri, 18 Dec 1998 23:03:02 -0500
Yes, I'm stuck again on my list CDEF's.  This is the first time I've
made a CDEF that wasnt just a push type button (icon,pict).  I can see
how much more complicated this is.  It works great even thought it could
stand some speeding up.

I've done something a bit unusual.  I allow the list to be resized by
adding part/partcode to the control.  Internally whenever you hit that
part it calls code that allows the control to be resized. I give the
user feedback as to what the size will be and then once they let go I
change the control rect.  Resizing works great, I just update the
control rect to the new size and move the scroll bar if it has one.  The
problem is that the cliprect isnt adjusted.

I tried adjusting the clip region from within the controls code but
nothing happens.  I test this by filling the clipregion with a gray
color.  When I change the clip region from within the control, it stays
the same, even though I changed it.  Now whats really strange is that if
I resize the window, the clip region confoms to clip out the newly
resized control.  If I shrink the control using the resize part, the
clip region doesnt update until I resize the window again.

I've been trying to figure this one for about two days without success.

Any suggestions.


W.