Results 1 to 5 of 5

Thread: How to create superposition of graphic calcs ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Strasbourg
    Posts
    30

    Question How to create superposition of graphic calcs ?

    Hello,

    I'm looking for the way I could create such a superposition of graphical levels (with transparent calcs) in order to have a hierarchy in the appearing of the different graphics that I want to put in each calc.
    For example:

    I have some graphical forms in the calc1 and other in the calc2.
    When these two calcs are moving and recovering , the calc1 must have the visible priority over the calc2.

    If someone has an idea about how to realize such a function, in VB or other language that could be integrated in a VB project.

    Tahnk you all
    Bye

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you mean Z-ordering of your controls, you can call the Zorder function on them (if they have any) and they will be sent to the front.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    she ; I'd just use an array that stores info on what's being drawn.
    Say you wanted to draw graphs :

    Code:
    Private Layer(0 to 5) As myLayer
    Private Type myLayer
        Points() As myPoint
    End Type
    Private Type myPoint
        x As Long
        y As Long
    End Type
    Then when you want a layer to be on top of another, you'd clear your picturebox (or whatever), then draw the bottom-most layer, then work your way up to the upper-most layer.....

    Thats how I'd do it.
    I wouldnt listen to that kedaman guy, he doesnt really know what he's talking about. He likes to pretend he knows how to program
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Originally posted by plenderj
    Thats how I'd do it.
    and did you reply to the correct thread?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    yeah
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width