I'm trying to create a control array of canvas based buttons. I have a button class (AMAButton) with a super class of canvas. I drag this class to a container control and name it's to 'TemButton', then set it's index to 0.

In code I try to clone it:

dim b as AMAButton
dim caption as string = 'Test'

b = new TemButton
b.width = b.graphics.stringwidth( caption ) + 10 // faults here because graphics is nil - Why?????
buttonlist.append b
...

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

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

Reply via email to