Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 10 of 10 total |
Displaying an image - should be simple |
Mon, Jul 21 2014 12:42 AM | Permanent Link |
Jeff Cook Aspect Systems Ltd | Hi
Having a problem with the simplest of things. In a test project, if I drop a TImage, size it to 32x32 onto a form and load the attached image, then it displays correctly on the form. If I do the same on my real project then it doesn't display ;-( The form already has top and bottom panels with a grid filling the space between. What can be wrong? It is like I need the image to ComeToFront ... It was my intention to toggle the Visible property on and off while Loading DataSets - is this a good approach? Cheers Jeff Attachments: ajax-loader_spinner_blue.gif |
Mon, Jul 21 2014 1:36 AM | Permanent Link |
Rick | On 21/07/14 14:42, Jeff Cook wrote:
> Hi > > Having a problem with the simplest of things. > > In a test project, if I drop a TImage, size it to 32x32 onto a form and load the attached image, then it displays correctly on the form. > > If I do the same on my real project then it doesn't display ;-( The form already has top and bottom panels with a grid filling the space between. What can be wrong? It is like I need the image to ComeToFront ... > > It was my intention to toggle the Visible property on and off while Loading DataSets - is this a good approach? > > Cheers > > Jeff > If the grid resizes at runtime then maybe the image is being obscured. You could try changing the order of the components in the IDE to bring the image to the front or specify Image1.BringToFront in the form's OnShow event. -- Rick |
Mon, Jul 21 2014 3:51 AM | Permanent Link |
Uli Becker | Jeff,
can you post some code? That will help. Uli |
Mon, Jul 21 2014 5:28 AM | Permanent Link |
Matthew Jones | Jeff Cook wrote:
> If I do the same on my real project then it doesn't display ;-( The > form already has top and bottom panels with a grid filling the space > between. What can be wrong? It is like I need the image to > ComeToFront ... Create a new Panel, put it on that, and use panel.BringToFront to make sure it is visible. -- Matthew Jones |
Mon, Jul 21 2014 6:06 PM | Permanent Link |
Jeff Cook Aspect Systems Ltd | Rick wrote:
> > If the grid resizes at runtime then maybe the image is being obscured. > You could try changing the order of the components in the IDE to bring > the image to the front or specify Image1.BringToFront in the form's > OnShow event. I tried removing the image and dropping it onto the form again, so that it was the last item in the IDE - no difference. I can see no reason why the grid would resize. The form itself is just as designed with fixed height and width. However, your suggestion of BringToFront was on the money and solved my poroblem. Thank you, Rick. As an aside - I have just realised that the EWB manual doesn't show properties/methods/events that are inherited, so looking at TImage in the manual, there apparently are no methods defined. Older Delphi manuals did show the inherited stuff, but I have now discovered that my "new" XE version is just like EWB. Cheers Jeff -- Rick |
Mon, Jul 21 2014 10:06 PM | Permanent Link |
Jeff Cook Aspect Systems Ltd | Hi again
> However, your suggestion of BringToFront was on the money and solved my poroblem. Thank you, Rick. I've just realised that the image that I am displaying isn't moving. It is a animated .GIF file which displays a "spinner". When I open it in Chrome, I get a spinning image, but it doesn't display in my app. Presumably there is a property that I should set, but I don't see any likely candidates ... Cheers Jeff -- Attachments: ajax-loader_spinner_blue.gif |
Mon, Jul 21 2014 10:16 PM | Permanent Link |
Rick | On 22/07/14 12:06, Jeff Cook wrote:
> I've just realised that the image that I am displaying isn't moving. It is a animated .GIF file which displays a "spinner". When I open it in Chrome, I get a spinning image, but it doesn't display in my app. > > Presumably there is a property that I should set, but I don't see any likely candidates ... > I'm not sure what you mean by "in my app" but in my experience an animated GIF just shows as a static image (non-animated, first frame) in the IDE during development but then animates both when running the application from the IDE (embedded IE) or via a web browser (Firefox, IE, etc.) No real need for the GIF to animate when building screens during development I guess. -- Rick |
Mon, Jul 21 2014 11:36 PM | Permanent Link |
Jeff Cook Aspect Systems Ltd | Hi Rick
Rick wrote: > I'm not sure what you mean by "in my app" but in my experience an > animated GIF just shows as a static image (non-animated, first frame) in > the IDE during development but then animates both when running the > application from the IDE (embedded IE) or via a web browser (Firefox, > IE, etc.) Sorry to be unclear ... for "in my app" read "in my EWB project". Yes, the GIF shows as a static image in the IDE. I have the GIF set as Visible = False initially then:- -------------------------------------------------------- procedure TfrmMain.LoadContacts; begin // // stuff to set up the dataset's query parameters // lblRowCount.Caption := 'Loading ...'; imgSpinner.Visible := True; Database.Load(dsSearchContacts); end; procedure TfrmMain.dsSearchContactsAfterLoad(Sender: TObject); begin lblRowCount.Caption := 'Contacts count: ' + IntToStr(dsSearchContacts.RowCount); imgSpinner.Visible := False; end; --------------------------------------------------------------- Watching it very carefully, the spinner does start (Great!), but stops straightaway (Boo!). It is almost as though the image spins until the Load starts, then it freezes until the Load completes and it is invisibled. Which rather defeats the object of showing the user that something is happening behind the scenes and to be patient. > No real need for the GIF to animate when building screens during > development I guess. True Cheers Jeff -- |
Tue, Jul 22 2014 3:07 AM | Permanent Link |
Uli Becker | Jeff,
> Yes, the GIF shows as a static image in the IDE. I had the same problem: http://tinyurl.com/pxbnd8q Meanwhile I use a form with a spinner and that works. (see screenshot) Uli Attachments: Clip7.png |
Tue, Jul 22 2014 5:12 PM | Permanent Link |
Jeff Cook Aspect Systems Ltd | Uli Becker wrote:
> I had the same problem: > http://tinyurl.com/pxbnd8q > > Meanwhile I use a form with a spinner and that works. (see screenshot) Hi Uli Nice to know I'm not alone Cheers Jeff |
This web page was last updated on Friday, November 1, 2024 at 07:01 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |