forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Get bitmap name from table item

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Aug 22, 2003 11:20 am    Post subject: Get bitmap name from table item Reply with quote

Hi,

is there a way to get the bitmap name from a bitlist or table like in tommy's vdslists ?

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 22, 2003 12:16 pm    Post subject: Reply with quote

I think I posted a wish in the wish list about this exact thing. It
bugs me I can't do that. Sad

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Aug 25, 2003 6:36 pm    Post subject: Reply with quote

There is no way to do that. The name of the bitmap isn't stored anywhere in the table element or the image list that contains the images it displays. Once the name is used to load the image into the image list, all that's stored is a hash value to ensure only one copy of the image is loaded.

It would be a considerable memory and performance overhead for large tables using many different images to keep the filename of every image. You set the image in your program, presumably using some formula based on the data on that line, so if you need the image name you should be able to work it out by repeating the formula. It doesn't make sense to burden all VDS programs that use tables with that overhead. That was the design philosophy, anyway.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Aug 25, 2003 6:58 pm    Post subject: Reply with quote

Well couldn't you just let it return them if you specify a style, such
as "SAVEBITMAPNAMES" or something? Then it wouldn't have to
store them unless you told the interpreter to do that. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Tue Aug 26, 2003 5:07 am    Post subject: Reply with quote

I have another idea. I use one cool Laughing trick in my apps for saving database ids for each line. create a column with 0 pixel width - it will be invisible. i will use this too for saving the image name.
one small problem - if the user drags the mouse directly on the posistion of the 0 pixel column, he can change the size of it and so it becomes
visible, but i think this is not a big problem

bye, fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 26, 2003 1:48 pm    Post subject: Reply with quote

But still I think that the STYLE idea would work fine too... And then
we wouldn't have the small problem with the user being able to
drag the left column. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group