Results 1 to 5 of 5

Thread: How do I unload an item from a control array of pictures at runtime?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Me again,

    I can create my control array at runtime... how do I remove items from it now?

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    instead of load, use unload
    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

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Ok, ya I was doing that but I was unloading the 0'th item and it didn't like that. When I unload an item in the array, say the 3rd item of 5, it leaves a gap in the array and it didn't like that either. I thought it would automatically move the other items (4 and 5) down to 3 and 4. I wrote code to handle this.

  4. #4
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145
    Could you send me the code? I would sure need it.
    My problem is (among other things) that when I first load some controls, then unload one of them and then load a new one, the computer says that the object is already loaded.

    ALso, how can you use code to change the selected tab of a tabstrip? I've tried Call TabStrip1_Click, but it doesn't help since I can't tell what tab should be selected.

    Pentax
    Wilhelm Tunemyr,
    Swede in London

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda vítezi!
    (Truth prevails!)

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Then don't unload the first, it's just the original that u shoudn't have visible in designtime. To unload without gaps do this:
    Code:
    Unload controlarray(controllarray.counter-1)
    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.

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