CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic 6.0 Programming Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 7th, 2009, 11:44 AM
    Rawas Rawas is offline
    Junior Member
     
    Join Date: Mar 2009
    Posts: 7
    Rawas is an unknown quantity at this point (<10)
    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?
    Reply With Quote
      #2    
    Old November 7th, 2009, 12:13 PM
    WoF's Avatar
    WoF WoF is offline
    Elite Member
     
    Join Date: Jul 2006
    Location: Germany
    Posts: 2,592
    WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)WoF has much to be proud of (1500+)
    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.
    Reply With Quote
      #3    
    Old November 7th, 2009, 12:37 PM
    Rawas Rawas is offline
    Junior Member
     
    Join Date: Mar 2009
    Posts: 7
    Rawas is an unknown quantity at this point (<10)
    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.
    Reply With Quote
      #4    
    Old November 7th, 2009, 01:56 PM
    dglienna's Avatar
    dglienna dglienna is offline
    ex MVP - Visual Basic
    Power Poster
     
    Join Date: Jan 2006
    Location: Chicago, IL
    Posts: 9,895
    dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)
    Re: Visio Simple question

    Can't help with the macro programming, but I have Visio 2010 installed.

    (Remove the .txt from the end)
    Attached Files
    File Type: txt Drawing1.vsd.txt (29.0 KB, 6 views)
    __________________
    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.
    Reply With Quote
      #5    
    Old November 8th, 2009, 11:54 AM
    Rawas Rawas is offline
    Junior Member
     
    Join Date: Mar 2009
    Posts: 7
    Rawas is an unknown quantity at this point (<10)
    Unhappy Re: Visio Simple question

    Quote:
    Originally Posted by dglienna View Post
    Can't help with the macro programming, but I have Visio 2010 installed.

    (Remove the .txt from the end)
    Just few shapes drawing whitout code
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

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

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


    All times are GMT -5. The time now is 10:38 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009