Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder 2 Preview » View Thread |
Messages 1 to 10 of 10 total |
TImage Control |
Sat, Jan 31 2015 7:39 AM | Permanent Link |
Uli Becker | In EWB1 I often used TImage to build GUI's. Autosize and visibility in
the IDE helped a lot. In EWB2 that seems to be different. Will there be an additional Image-control in the final version? Thanks. Uli |
Sat, Jan 31 2015 8:26 AM | Permanent Link |
Mark Brooks Slikware | Uli Becker wrote:
>>In EWB1 I often used TImage to build GUI's. Autosize and visibility in >>the IDE helped a lot. >>In EWB2 that seems to be different. Will there be an additional >>Image-control in the final version? And: 1) Can you remove the border? 2) What ImageLayout do you use to get your image central and fitted without any skewing? Mark |
Sat, Jan 31 2015 9:15 AM | Permanent Link |
Uli Becker | Mark,
> 1) Can you remove the border? > 2) What ImageLayout do you use to get your image central and fitted without any skewing? With the given controls and without changing interfaces, the only way I see is to use a TBasicPanel. The image can be loaded as a background image, the constraints can be set to the image's bounds, borders and corners can be removed... A lot of handwork. Uli |
Sat, Jan 31 2015 10:27 AM | Permanent Link |
Matthew Jones | Uli Becker wrote:
> Mark, > > > 1) Can you remove the border? > > 2) What ImageLayout do you use to get your image central and fitted > > without any skewing? > > With the given controls and without changing interfaces, the only way > I see is to use a TBasicPanel. > > The image can be loaded as a background image, the constraints can be > set to the image's bounds, borders and corners can be removed... A > lot of handwork. Interesting. I popped a TImage onto a form, then looked for where to set the image. Only property I can find is in the Background, and that has all the options one might want for an image - centre, fill, all sorts. But running it shows the border and the "standard image" on top. I wonder if that isn't finished. |
Sat, Jan 31 2015 10:34 AM | Permanent Link |
Matthew Jones | A look at the source and interface for TImage shows that it is quite
smart, allowing for normal, hot, and focused states (hence the border). I can't work out how the image gets changed though. Even so, it won't be hard to have a "TStaticImage" which doesn't do anything fancy. I look forward to hearing Tim's thinking on this though - I expect it is quite powerful. |
Mon, Feb 2 2015 6:22 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uli,
<< In EWB1 I often used TImage to build GUI's. Autosize and visibility in the IDE helped a lot. In EWB2 that seems to be different. Will there be an additional Image-control in the final version? >> No, the TImage control is *the* control for *dynamically-loaded images*. That's why it's on the Web page instead of the Standard page. If you want a static image that is included in a form, then you should use one of the panel controls with a background image. Background images are always included as part of the form. The way images work in EWB 2 had to adjust to the fact that the design-time environment is completely different and there are limitations on what kind of binary data can/cannot be loaded at design-time, especially for images. Tim Young Elevate Software www.elevatesoft.com |
Mon, Feb 2 2015 6:24 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Mark,
<< 1) Can you remove the border? >> Not for the TImage control, no. It allows for focus, so it needs a border. Of course, this is just the standard interface: you're free to develop your own interface that shows focus in a completely different way, or not at all. << 2) What ImageLayout do you use to get your image central and fitted without any skewing? >> ImageLayout.Position setting of ptCenter. Tim Young Elevate Software www.elevatesoft.com |
Mon, Feb 2 2015 6:26 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Interesting. I popped a TImage onto a form, then looked for where to set the image. Only property I can find is in the Background, and that has all the options one might want for an image - centre, fill, all sorts. >> See my first reply to Uli. << But running it shows the border and the "standard image" on top. I wonder if that isn't finished. >> That's bug in the interface, and it also affects the TBrowser and TPlugin controls - the standard background is set on the Client element instead of the Base element. It's only supposed to be there as a default that can be cleared at design-time by setting the Background.Image.Name property to ''. Tim Young Elevate Software www.elevatesoft.com |
Mon, Feb 2 2015 8:00 AM | Permanent Link |
Uli Becker | Tim,
> If you want a static image that is included in a form, then you should use one > of the panel controls with a background image. Background images are > always included as part of the form. OK, I got it. Any chance to implement something like "Autosize"? IOW: a property that is available, if a background image is assigned? Thanks Uli |
Tue, Feb 3 2015 8:54 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uli,
<< OK, I got it. >> Actually, I need a static image without a border for the example projects (logo), so I might include one in the component library..... << Any chance to implement something like "Autosize"? IOW: a property that is available, if a background image is assigned? >> I'll see what I can do. Normally, you don't want the size of the image to affect the layout, rather the other way around. But, I can certainly see some cases where you would want the size of the image to affect the layout, such as with flowing sets of images like a Netflix/Amazon Video/Hulu interface. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |