Solved

Moving and sizing components at runtime ala designer

Posted on 1998-11-05
1
211 Views
Last Modified: 2010-04-04
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
0
Comment
Question by:Ronald Buster
1 Comment
 
LVL 4

Accepted Solution

by:
dwwang earned 400 total points
ID: 1345777
I can mail you a full source implementing this function, or you can download it from the site:

http://myhome.netsgo.com/wyb330/defaulte.htm

Select and download the Handel.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question