OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on March 24, 2009, 07:00:51 PM

Title: Cut and Paste Controls between forms
Post by: Jim Short on March 24, 2009, 07:00:51 PM
What are the restrictions if any?
Title: Re: Cut and Paste Controls between forms
Post by: owenwengerd on March 24, 2009, 10:20:32 PM
The only restrictions I can think of offhand would be that you can't paste a tab control onto a form that already has one, and you can only paste file dialog controls onto a custom file dialog form. At least, those should be restricted.
Title: Re: Cut and Paste Controls between forms
Post by: Jim Short on March 25, 2009, 06:07:45 PM
With that in mind, here is my experience:

Cut text button from control bar.
Paste text button on a tab strip tab that resides on same control bar.
Text button appears in the Z/tab Order list but is no where to be seen on the tab.

Jim
Title: Re: Cut and Paste Controls between forms
Post by: owenwengerd on March 26, 2009, 05:27:57 AM
After you paste, check the width, height, left, and right properties to see what they are.  If the control's position properties are set to be relative with the edges of the form, and you paste it onto a smaller form, strange things could happen.
Title: Re: Cut and Paste Controls between forms
Post by: Jim Short on March 26, 2009, 05:48:08 AM
Thanks Owen, that is probably what happened. I did not consider right from right affects.
I will look into it when it happens again.
Cheers,
Jim :)