Using Forms

  • Thread starter Thread starter Stewart
  • Start date Start date
S

Stewart

2 questions

1. How do i set the whole form's opacity prop? Right now i have to set
an event handler for each element on the form. Is there are better way
to do this?

2. how do i make a form that has no border fully dragable... ie you can
click and hold any where to move it around the desktop

Thanks for any help inadvance
 
For Q2, you will have to add some code to your form that captures the
mousedown, mouseup and mousemove event. In the mousemove event you need to
have an if statement that checks if the mouse button is currently pressed, if
so then you move the form.

Mark.
 
Thanks for your reply mark...

Yes the event handlers. I can set up a bool to see if the user is
currently dragging. However i am more intrested in the code that will
move the form when dragging. Is there a method in the framework that i
can use or will i have to code the form to manually track the mouse
movement and then update the top and left props?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top