[Gambas-user] DrawingArea Questions

Ron Gottstein mandrakeron at ...43...
Fri Jan 20 01:25:46 CET 2006


Hello,

I am designing a paint program and have a few
questions.

1.  I have a DrawingArea labeled Da1. I created a
label to be placed in Da1 as follows.

Dim lbDa1text as Label
lbDa1text = NEW Label(Da1) as "lbDa1text"

I can insert text into the new label and it appears on
Da1 as desired.

Problem:

I want to be able to move the labeel (lbDa1text) with
a mouse event.
I created this code:

Public Sub lbDa1text_MouseMove()

lbDa1text.Move(Mouse.X, Mouse.Y)

End

Nothing happens.   Help Please.


2.  Is it possible to gain focus of a drawing
(draw.line) after it is placed into a drawingarea?  If
so, help.

Ron






__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the User mailing list