A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Custom shapes with special behaviour



 
 
Thread Tools Display Modes
  #1  
Old July 17th, 2009, 07:31 PM posted to microsoft.public.visio.general
Jac Tremblay
external usenet poster
 
Posts: 23
Default Custom shapes with special behaviour

Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay
  #2  
Old July 17th, 2009, 07:45 PM posted to microsoft.public.visio.general
John... Visio MVP
external usenet poster
 
Posts: 900
Default Custom shapes with special behaviour

"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay



This can be done as a single shape or if you need two seperate rectangles
grouped together. If two grouped together, then the first rectangle can be
based on the W&H of the group while the second rectangle can be fixed or
something relative to the group shape.

So can you provide more details of what you would like?

John... Visio MVP

  #3  
Old July 17th, 2009, 07:59 PM posted to microsoft.public.visio.general
John Goldsmith_Visio_MVP
external usenet poster
 
Posts: 85
Default Custom shapes with special behaviour

Hello Jac,

Checkout this blog post:

http://blogs.msdn.com/visio/archive/...esizemode.aspx

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk


"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay


  #4  
Old July 17th, 2009, 08:43 PM posted to microsoft.public.visio.general
Jac Tremblay
external usenet poster
 
Posts: 23
Default Custom shapes with special behaviour

Hi John,
As I can see, there is not much I can do. Actually, I wanted a rectangular
shape with a small rectangle at the top left corner. That small one would
always be the same size and would stay at the top left corner of the big
rectangle no matter how the big one is resized.
I guess I will forget about my idea.
Thank you for your answer, it is very appreciated.
--
Jac Tremblay


"John Goldsmith_Visio_MVP" wrote:

Hello Jac,

Checkout this blog post:

http://blogs.msdn.com/visio/archive/...esizemode.aspx

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk


"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay



  #5  
Old July 17th, 2009, 08:48 PM posted to microsoft.public.visio.general
Jac Tremblay
external usenet poster
 
Posts: 23
Default Custom shapes with special behaviour

Hi John,
Are you the same John (Goldsmith)? If yes, sorry for the confusion. If not,
please see the answer I posted to the other one.
In any case, thanks for your asnwer, John. It is always a pleasure to get
MVPs comments.
--
Jac Tremblay


"John... Visio MVP" wrote:

"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay



This can be done as a single shape or if you need two seperate rectangles
grouped together. If two grouped together, then the first rectangle can be
based on the W&H of the group while the second rectangle can be fixed or
something relative to the group shape.

So can you provide more details of what you would like?

John... Visio MVP


  #6  
Old July 17th, 2009, 10:12 PM posted to microsoft.public.visio.general
John... Visio MVP
external usenet poster
 
Posts: 900
Default Custom shapes with special behaviour

I am the old guy (John Marshall - Visio.mvps.org) who has been around since
Visio 1. The other John, John Goldsmith is the latest (and well deserved)
addition to the Visio MVP community.

John... Visio MVP
"Jac Tremblay" wrote in message
...
Hi John,
Are you the same John (Goldsmith)? If yes, sorry for the confusion. If
not,
please see the answer I posted to the other one.
In any case, thanks for your asnwer, John. It is always a pleasure to get
MVPs comments.
--
Jac Tremblay


"John... Visio MVP" wrote:

"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle
be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay



This can be done as a single shape or if you need two seperate rectangles
grouped together. If two grouped together, then the first rectangle can
be
based on the W&H of the group while the second rectangle can be fixed or
something relative to the group shape.

So can you provide more details of what you would like?

John... Visio MVP




  #7  
Old July 17th, 2009, 10:27 PM posted to microsoft.public.visio.general
John Goldsmith_Visio_MVP
external usenet poster
 
Posts: 85
Default Custom shapes with special behaviour

Hello Jac,

That's no problem to implement...

1) Draw your larger rectangle

2) Draw your smaller rectangle and position in the top left hand corner of
the previous one

3) With your smaller rectangle selected, click Format / Behavior /
Reposition only (on the Behavior tab)

4) Click OK to close the dialog

5) Select both rectangles and click Shape / Grouping / Group

This takes care of the resizing issue. Now to make sure the small rectangle
stays in the top left corner....

6) Sub-select the smaller rectangle (first click selects the group shape and
second the sub-shape)

7) Click Window / Show ShapeSheet (see this post for more info:
http://visualsignals.typepad.co.uk/v...or-starte.html )

8) In the first section ('Shape Transform') change the following cells:

PinX = Sheet.3!Width*0
PinY = Sheet.3!Height*1
LocPinX = Width*0
LocPinY = Height*1

(Note the '3' in 'Sheet.3' above may be a different number for you - it's
refering to the group shape)

If you're interested in what all those Pin... things are then you might want
to have a look at this link:

http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

Hope that helps

Best regards

John

PS - The other John is older (as an MVP) and wiser one


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"Jac Tremblay" wrote in message
...
Hi John,
As I can see, there is not much I can do. Actually, I wanted a rectangular
shape with a small rectangle at the top left corner. That small one would
always be the same size and would stay at the top left corner of the big
rectangle no matter how the big one is resized.
I guess I will forget about my idea.
Thank you for your answer, it is very appreciated.
--
Jac Tremblay


"John Goldsmith_Visio_MVP" wrote:

Hello Jac,

Checkout this blog post:

http://blogs.msdn.com/visio/archive/...esizemode.aspx

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk


"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle
be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay




  #8  
Old July 17th, 2009, 11:46 PM posted to microsoft.public.visio.general
Jac Tremblay
external usenet poster
 
Posts: 23
Default Custom shapes with special behaviour

Hi John Marshall,

I'm glad I noticed the difference. I will check your web reference and come
back with some more questions later onn (unless I find the answers by myself).

Thank you for your precious time and for helping all those people over the
years.
--
Jac Tremblay


"John... Visio MVP" wrote:

I am the old guy (John Marshall - Visio.mvps.org) who has been around since
Visio 1. The other John, John Goldsmith is the latest (and well deserved)
addition to the Visio MVP community.

John... Visio MVP
"Jac Tremblay" wrote in message
...
Hi John,
Are you the same John (Goldsmith)? If yes, sorry for the confusion. If
not,
please see the answer I posted to the other one.
In any case, thanks for your asnwer, John. It is always a pleasure to get
MVPs comments.
--
Jac Tremblay


"John... Visio MVP" wrote:

"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle
be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay


This can be done as a single shape or if you need two seperate rectangles
grouped together. If two grouped together, then the first rectangle can
be
based on the W&H of the group while the second rectangle can be fixed or
something relative to the group shape.

So can you provide more details of what you would like?

John... Visio MVP





  #9  
Old July 18th, 2009, 12:57 AM posted to microsoft.public.visio.general
WapperDude
external usenet poster
 
Posts: 589
Default Custom shapes with special behaviour

Just for the sake of having an optional way to do this, it is possible to do
it without grouping. The steps are basically the same as John indicated,
except you don't need to change the re-size mode, and you don't group. Let's
say the large rectangle has an ID =1, and small rectangle is ID=2.

Select and open small rectangle shape sheet.
Set PinX = guard(sheet.1!PinX)
Set PinY = guard(sheet.1!PinY).
Set LocPinX = width*0
Set LocPinY = height*1

Select and open large reectangle shape sheet
Set LocPinX = width*0
Set LocPinY = height*1.

This gives the same functionality as the grouping technique bit now either
shape is selectable with a single click.

HTH
Wapperdude


"Jac Tremblay" wrote:

Hi John,
As I can see, there is not much I can do. Actually, I wanted a rectangular
shape with a small rectangle at the top left corner. That small one would
always be the same size and would stay at the top left corner of the big
rectangle no matter how the big one is resized.
I guess I will forget about my idea.
Thank you for your answer, it is very appreciated.
--
Jac Tremblay


"John Goldsmith_Visio_MVP" wrote:

Hello Jac,

Checkout this blog post:

http://blogs.msdn.com/visio/archive/...esizemode.aspx

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk


"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay



  #10  
Old July 20th, 2009, 05:58 PM posted to microsoft.public.visio.general
Jac Tremblay
external usenet poster
 
Posts: 23
Default Custom shapes with special behaviour

Hi John,
Sorry for the time I took to answer.
I really appreciate your comment and it is very useful. I checked the links
you provided and I noticed there are a lot of informations I have to master
before I go on with other interrogations.
In my solution, I would like to try to avoid VBA, but if it is needed, I
will not hesitate to use it.
I checked your answer, but there are a few drawbacks. One is that the user
can select the big rectangle in the group and resize it without resizing the
group which leads to some other problems.
A second drawback is that the user cannot enter text in either rectangles.
Another one yet is that if I want to create a master form from that group,
it does not work properly at all. Of course, I did not have the time to check
the creation of master forms. I certainly will in the next few days (I saw
the refencences in MSDN).
So that is it for now. Thanks again for your time, John.
--
Jac Tremblay


"John Goldsmith_Visio_MVP" wrote:

Hello Jac,

That's no problem to implement...

1) Draw your larger rectangle

2) Draw your smaller rectangle and position in the top left hand corner of
the previous one

3) With your smaller rectangle selected, click Format / Behavior /
Reposition only (on the Behavior tab)

4) Click OK to close the dialog

5) Select both rectangles and click Shape / Grouping / Group

This takes care of the resizing issue. Now to make sure the small rectangle
stays in the top left corner....

6) Sub-select the smaller rectangle (first click selects the group shape and
second the sub-shape)

7) Click Window / Show ShapeSheet (see this post for more info:
http://visualsignals.typepad.co.uk/v...or-starte.html )

8) In the first section ('Shape Transform') change the following cells:

PinX = Sheet.3!Width*0
PinY = Sheet.3!Height*1
LocPinX = Width*0
LocPinY = Height*1

(Note the '3' in 'Sheet.3' above may be a different number for you - it's
refering to the group shape)

If you're interested in what all those Pin... things are then you might want
to have a look at this link:

http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

Hope that helps

Best regards

John

PS - The other John is older (as an MVP) and wiser one


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
"Jac Tremblay" wrote in message
...
Hi John,
As I can see, there is not much I can do. Actually, I wanted a rectangular
shape with a small rectangle at the top left corner. That small one would
always be the same size and would stay at the top left corner of the big
rectangle no matter how the big one is resized.
I guess I will forget about my idea.
Thank you for your answer, it is very appreciated.
--
Jac Tremblay


"John Goldsmith_Visio_MVP" wrote:

Hello Jac,

Checkout this blog post:

http://blogs.msdn.com/visio/archive/...esizemode.aspx

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk


"Jac Tremblay" wrote in message
...
Hi,

I use Visio 2003 and 2007.

I want to know if it is possible to create a custom shape from two
rectangles (for example) grouped together and have only one rectangle
be
resized when the custom shape is resized?

I do not want the user to have to ungroup the components to do the job.

Thanks for any help.
--
Jac Tremblay




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.