Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Minor speedup
Thu, Oct 17 2013 9:52 AMPermanent Link

Matthew Jones

It would be nice if the image selection could be faster. Currently, changing an
image is awkward, involving selecting each TImage individually (you can't select
multiple and change the image), then clicking Load, locate the image, click OK,
click OK.

If I just change the image name text, it complains there is no such image, but
there is - I just selected it in another.

Just multi-selecting would be a much better deal, but perhaps the dialog that shows
could show a list of the available images, and then allow another to be added or
something?

Not critical, just nice.

/Matthew Jones/
Thu, Oct 17 2013 10:05 AMPermanent Link

Walter Matte

Tactical Business Corporation


I use images for 99% for my buttons (built with Button Shop 4).  I create 2 images for each button - then I copy the png's to the output folder.

I'll use the MouseEnter, MouseLeave to change image and the MouseDown and MouseUp to shift the image to simulate a click.

procedure TfrmTime.imgCloseBtnMouseDown(Sender: TObject; Button: Integer; ShiftKey, CtrlKey, AltKey: Boolean; X,Y: Integer);
begin
 TImage(Sender).Left := TImage(Sender).Left + 1;
 TImage(Sender).Top  := TImage(Sender).Top + 1;
end;

procedure TfrmTime.imgCloseBtnMouseUp(Sender: TObject; Button: Integer; ShiftKey, CtrlKey, AltKey: Boolean; X,Y: Integer);
begin
 TImage(Sender).Left := TImage(Sender).Left - 1;
 TImage(Sender).Top  := TImage(Sender).Top - 1;
end;

procedure TfrmTime.imgSelectSearchMouseEnter(Sender: TObject);
begin
 TImage(Sender).ImageName := 'SelectSearchButtonV1Hot.png';
end;

procedure TfrmTime.imgSelectSearchMouseLeave(Sender: TObject);
begin
 TImage(Sender).ImageName := 'SelectSearchButtonV1.png';
end;

Walter
Thu, Oct 17 2013 11:42 AMPermanent Link

Matthew Jones

That's similar to what I'm doing. But it is nice to have them looking right in the
initial form, and I just decided to change about 10 images to another.

/Matthew Jones/
Thu, Oct 24 2013 4:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< It would be nice if the image selection could be faster. Currently,
changing an image is awkward, involving selecting each TImage individually
(you can't select multiple and change the image), then clicking Load, locate
the image, click OK, click OK. >>

This is now fixed.

<< If I just change the image name text, it complains there is no such
image, but there is - I just selected it in another.  >>

You have to specify the full path and file name for the image when manually
typing it in.  EWB will take care of stripping off the path name after the
property is set.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Oct 25 2013 6:53 AMPermanent Link

Matthew Jones

> << If I just change the image name text, it complains there is no
> such image, but there is - I just selected it in another.  >>
>
> You have to specify the full path and file name for the image when
> manually typing it in.  EWB will take care of stripping off the
> path name after the property is set.

It would be nice if it could look to see if such a name (without path) is already
in use, and if so copy that path. Now I know it can be done with path though, it
may be a lot faster.

/Matthew Jones/
Image