Link to home
Start Free TrialLog in
Avatar of Ronald Buster
Ronald BusterFlag for Netherlands

asked on

Moving and sizing components at runtime ala designer

I'm working on a designer editor where you can drop components and size and move them. The only but is
that I want to do this visuallly.

I already tried various options

1. Overriding windowproc of control dropped
2. Made a customcontrol (transparent) with same
    dimensions as control dropped.
3. Tried to make a bitmap of the component but for
    some reason non visual components cannot be
    copied to a bitmap.
4. The last method I'm still working of it works a bit
    but it is not what I want. I have a designerform
    with has a mousedown, mouseup and mousemove
    I also use the same method 2 for making the object
   clickable without activating it. And let the designerform
   handle the moving functions.

Shorthly I'm creating a designer ala delphi visual basic and I can't seem it to make it work the way I want.

Can someone help me out with some kind of source, the
most easy way is to create bitmaps of the controls however the controls are none visual.

Regards,

Ronald
ASKER CERTIFIED SOLUTION
Avatar of dwwang
dwwang

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial