C CurtisC Member Licensed User Longtime User Jun 7, 2016 #1 Is there a way to read which bitmap file is currently displayed in imageview? I saw the suggestion of storing the file name in Tag for later reference, an ingenious solution if I were not using Tag. The reult I am seeking is "If imageview1.bitmap="blue_sky.png" then imageview1.enable = true". Is there any way?
Is there a way to read which bitmap file is currently displayed in imageview? I saw the suggestion of storing the file name in Tag for later reference, an ingenious solution if I were not using Tag. The reult I am seeking is "If imageview1.bitmap="blue_sky.png" then imageview1.enable = true". Is there any way?
Jeffrey Cameron Well-Known Member Licensed User Longtime User Jun 7, 2016 #2 The tag property can contain any object, create your own type variable and store that in the tag: Code: Copy Type ImgInfo(Filename as string, Enabled as Boolean, ExtraProperty as Int) ... ... Dim MyType as ImgInfo Mytype.Initialize MyType.Filename = "blue_sky.png" Imageview1.Tag = MyType ... Upvote 0
The tag property can contain any object, create your own type variable and store that in the tag: Code: Copy Type ImgInfo(Filename as string, Enabled as Boolean, ExtraProperty as Int) ... ... Dim MyType as ImgInfo Mytype.Initialize MyType.Filename = "blue_sky.png" Imageview1.Tag = MyType ...