I have an app i'm developing and i'd like users to be able to drag and
drop controls within the UI. After selecting the option to enable it,
i have 3 mouse events(mousedown, up and move) that capture the
movements and the coordinates of the mouse and reposition the control
accordingly. The problem comes in when I try to move around things
like buttons and combo boxes. Obviously when I click on them I
inadvertently "use" them, the combo drops down and the button
clicks(not so good when I move the "close" button). I can't set
enable to false since that stops the control from reading any input,
thus rendering my mouse capturing events useless because it ignores
the clicks. Is there a way I can disable the control(button,
listview, combobox, textbox, label) but still have them raise mouse
events?
Thanks,
Brandon
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
Brandon Arnold - 31 Jul 2008 02:30 GMT
>my problem
Also, on the same topic, is there a way I can bind a label with the
control it's decribing? Like the label "Address" associated with the
text box for address input, so when I move the textbox, everything
moves as one item? I'd like to avoid moving them individually as that
can get confusing and messy, and i've got 3 mouse event handlers
that'd i'd like to hold onto that just use the object sent that I cast
as a Control. That way I have 3 handlers for everything, instead of 3
handlers for each control(there are a few). The only way i've been
able to really do this was to have a mouse hander for each and
manually specify the label associated with it.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------