Home > Support > Forum

Text/Image Margin in TImageButton

Posted by bart 
Text/Image Margin in TImageButton
April 21, 2011 12:33AM
Hi,

We want implement a botton that need small icon (icon and button background can be same or different picture) before label by TImageButton. Just like


_________________________
| |
| icon Label1234567 |
|________________________|

Of course, I can use one or two picture boxes and one Label to implement this. But I want one control to handle click event, I chose TImageButton to do it.

And the text just support TextMarginLeftRight and TextMarginTopBottom. I think is it possible to support TextMarginLeft, TextMarginRight, TextMarginTop and TextMarginBottom? If so, I think can implement my button by setting TextMarginLeft.

Any suggestion?
Thanks.
Re: Text/Image Margin in TImageButton
April 21, 2011 04:59AM
Hi Bart,

TextMarginLeftRight and TextMarginTopBottom properties are obsolete in latest version of Transpranet Controls.

It is advisable to use TextMarginLeft, etc.

So you can achieve what you want easily.

Please download the latest version from the customer portal.

Best regards,
Gabriel
the BeeMobile team
Re: Text/Image Margin in TImageButton
April 24, 2011 10:13PM
Hi.

Thanks for your infomation.

After updating, lots of change need be perform.

1. RelativeImageFilePath change to ImageFile == > OK

2. "ImageFileIcon not found" always prompt while executing. Do you know why? This attribute is must fill? I just fill ImageFile to my PNG files.

Thanks.
Re: Text/Image Margin in TImageButton
April 25, 2011 12:51AM
Hi..

I found "ImagefileIcon not found" issue. Actually, it is because "ImageFile" is not load PNG file. I think this maybe wording error in the prompt.
Re: Text/Image Margin in TImageButton
April 25, 2011 06:23AM
hi..

I found one problem after update new control.

It is same as previous version of touch list.
[beemobile4.net]

I can't get foucus while form load.

Thx.
Re: Text/Image Margin in TImageButton
April 25, 2011 01:40PM
Hi Bart,

this issue was fixed. In the latest version of TImageButton. Please check whether your Visual Studio uses v3.5.7.5 of BeeMobile.TransparentControl.Cf3.dll

According to the error message the image file is not set as Content and also set the "Copy always" option in Properties window of PNG file.

That will solve the issue.

Best regards,
Gabriel
the BeeMobile team
Re: Text/Image Margin in TImageButton
April 25, 2011 09:46PM
Hi Gabriel ,

I am using newest version V3.5.7.5 to test. But it lost focus after form load.
Our previous version V3.5.4.1 is working fine.
Thx.

Best regards,
bart
Sorry, only registered users may post in this forum.

Click here to login