Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Displaying problem
Tue, Oct 29 2013 3:03 PMPermanent Link

E.B

Hello,

I wrote an application where 3 images are loaded in user's browser.
I would like showing images when they're all loaded and not
one by one as they are loaded, as it is the case actually.

How can I do that ?

Eric.
Tue, Nov 5 2013 3:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eric,

<< I wrote an application where 3 images are loaded in user's browser.  I
would like showing images when they're all loaded and not one by one as they
are loaded, as it is the case actually.

How can I do that ? >>

Set all of the TImage components' Visible property to False at design-time.

Attach all of the TImage components' OnLoad event to the same event handler,
and increment a counter in the event handler (the counter can just be a
variable in the form).  When the counter reaches 3, go ahead and set them
all visible.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Nov 9 2013 3:27 AMPermanent Link

E.B

Tim,

Thanck you. I made a mistake, I was trying to do that with BackGround component. There is a OnLoad event for Timage but it seems that the same event does not exists with TBackground ones (Not published in Component inspector and refused by the compilator).

You will say "you should not use 3 Tbackground" .. Ok

But I was trying to make copying my images more difficult and background images aren't downloadable when user do a right click on it.

Finally users can see their names using Google "inspect Úlement" and can dowload everything (unscramble code too ...). It's very nice : Nothing can prevent user from duplicating my website elsewhere (code scrambled or not)...










"Tim Young [Elevate Software]" wrote:
Bac
Eric,

<< I wrote an application where 3 images are loaded in user's browser.  I
would like showing images when they're all loaded and not one by one as they
are loaded, as it is the case actually.

How can I do that ? >>

Set all of the TImage components' Visible property to False at design-time.

Attach all of the TImage components' OnLoad event to the same event handler,
and increment a counter in the event handler (the counter can just be a
variable in the form).  When the counter reaches 3, go ahead and set them
all visible.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Nov 11 2013 4:43 AMPermanent Link

Matthew Jones

> But I was trying to make copying my images more difficult and
> background images aren't downloadable when user do a right click on
> it.

Open in Chrome, F12, look at resources, copy image URL, paste into other tab. So
long as you accept that this is actually not any sort of defence, then carry on...

/Matthew Jones/
Mon, Nov 11 2013 7:50 AMPermanent Link

Mike

Not sure if it helps to solve your problem. Of course it isn't 100% secure but for most users sufficient.

Just put a transparent image over the image. When someone save the image they only get the transparent image.
Thu, Nov 14 2013 3:03 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eric,

<< Thanck you. I made a mistake, I was trying to do that with BackGround
component. There is a OnLoad event for Timage but it seems that the same
event does not exists with TBackground ones (Not published in Component
inspector and refused by the compilator). >>

The problem with using a TBackground control is that it has to use a
different internal property (CSS background image) that doesn't surface an
event to detect when the image is loaded.  So, there's really no way
currently to emulate what you want with a TBackground.

<< But I was trying to make copying my images more difficult and background
images aren't downloadable when user do a right click on it. >>

What you need is to be able to suppress the context menus, which I've
already got on the enhancement list and should make it in the product soon.

Tim Young
Elevate Software
www.elevatesoft.com
Image