| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual Basic 6.0 Programming Ask questions about VB 6.0 (or earlier versions) or help others by answering their question. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Visio Simple question
I have a shape which have shape data like:
OutSlope TapSlope InLevel OutLevel TapLevel How to do what on double click on this shape apear drop down list where I can select numbers from 1 to 10 and according on that number fill OutSlope and TapSlope Value field. for example if select 1 then OutSlope = 2 and TapSlope = 10 if select 5 then OutSlope = 3 and TapSlope = 50 if select 7 then OutSlope = 6 and TapSlope = 25 I need get data from text or excel file better, but also be great other things. Also I need to work code like that: InLevel value must take from connected shape I think must be somthing like = ConnectFrom and take value from this shape cell named Level OutLevel = InLevel - OutSlope TapLevel = Inlevel - TapSlope Any ideas? |
|
#2
|
||||
|
||||
|
Re: Visio Simple question
I don't know about visio, but
You'd put a dropdown (combobox) on the form and make it unvisible. You can fill it up at form load with strings like box.additem "OutSlope=2, TapSlope=10" ... In the click event of your shape (I hope there is one) you make it visible. In the click event of the box you do a select case statement to set the according properties. At the end of box_Click() you do box.Visible = False again. |
|
#3
|
|||
|
|||
|
Re: Visio Simple question
Thanks for reply, but this isn't solve my problem in Visio, maybe someone can atach the example in vsd format please.
|
|
#4
|
||||
|
||||
|
Re: Visio Simple question
Can't help with the macro programming, but I have Visio 2010 installed.
(Remove the .txt from the end)
__________________
David CodeGuru Article: Bound Controls are Evil-VB6 101 Samples: VB & C# VS2008 Samples CodeGuru Reviewer 2006 Dell CSP 2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
Last edited by dglienna; November 7th, 2009 at 01:58 PM. |
|
#5
|
|||
|
|||
|
Just few shapes drawing whitout code
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|