How to ad Multiline Label on a Button?
Hi,
I'm facing a problem and I don't have an idea how to solve it. I have searched in the documentation but useless. Here's my problem:
I have a Form where I'm showing the buttons as advertisements.
I'm setting the label on the buttons dynamically (by using a cursor). I have this line in the cursor:
set_item_property('ctrl_ads.ad'||c2.serial_no,label,c2.serial_no||' '||c2.SUBJ_TO_PASTE_ON_AD||' size '||c2.dummy_ad_height||'x'||c2.dummy_ad_width);
This statement says:
Ad number First || Subject of the ad || Size || Numeric Size
e.g:
4 Fast Telecom Internet Services size 10*4
How I can achive this type of label?
4 Fast Telecom Internet
Services size 10*4
My problem is if the label is larger than the button's width then it doesn't fit into the button and is truncated from both sides.
I consulted this problem with my boss (who is no doubt excellent in his work) and he told me that we cannot add multiline button's label on a button and I'm fully agreed with him, however, we all are always keen to find the solution of a problem from anywhere, I want to know if there is some way that if the label is truncated, we can move the label to second line on the button or if we can ad the first part of the label on first line and the second part on the second line or there's some other way to accomplish this task?
Please help. I have been posting the questions here previously but no one answered them however, please do answer this question if anyone knows the solution.
Thanks in Advance
Saadat Ahmad