hello,
So for example if i want make a paint programm in ulc. do i have to write for
each shape an extension? And is there a container that i can use to draw them?
thanks
regards stefan
> Subject: Re: [ULC-developer] draw shapes> From: [EMAIL PROTECTED]> To: [EMAIL
> PROTECTED]> CC: [email protected]> Date: Thu, 4 Sep 2008 15:05:37
> +0200> > > Hello,> > is it possible to draw a lines or other shapes (like
> java.awt.graphics)> > with ulc components? In swing i can overwrite the
> paintComponent> > function.> > From what I remember you have to write an ULC
> extension for that. The idea> for that is rather simple and I'll outline it
> based on an example. Maybe> you want a custom drawn textfield. You'd have to
> extend the classes> ULCTextField (servert side) and UITextField (client side)
> and name them> something like ULCMyTextField (again server) and UIMyTextField
> (client).> If you take a look at the extension guide you'll quickly find out
> how to> do so. Now you only need to override 2 methods:> > ULCMyTextField:>
> String typeString();> Should return the full qualified class name of
> UIMyTextField> > UIMyTextField> Object createBasicObject(Object[] args);>
> Should create your custom text field with your custom paint method,>
> something like : return new MyTextFieldWidget();> > I'm not sure if I got all
> the things right here since it's been a while> since I did similar. But it
> should answer your question on how to do it.> > Regards,> Christoph Brill>
> _______________________________________________> ULC-developer mailing list>
> [email protected]>
> http://lists.canoo.com/mailman/listinfo/ulc-developer
_________________________________________________________________
Werden Sie Mitglied der neuen Windows Live Messenger Familie!
http://get.live.com