How to reduce line spacing between 2 names on same button?
I have displayed string list of 4 parameters on 2 push buttons which are located vertically.
there is not problem for displaying 4 params. but when i am trying to display more parameters then it looks as if 2 buttons are overlapped.
this problem can be solved by reducing line spacing between 2 parameters. i am displaying the string list using button->->setText(str[0]); then i am not getting how to reduce the line spacing. I tried to reduce the button font but still that problem is there.
Thanks,
sanujas
Re: How to reduce line spacing between 2 names on same button?
I think you either need to increase the vertical size of button (which I think is may not be preferred), or otherwise implement a custom button with custom painting.
Re: How to reduce line spacing between 2 names on same button?
The case is like number of strings on button can be variable, it's depending upon user selection. yah 1st option will not be useful. so will 2nd option be useful? can you pl brief about creating custom button using custom painting?
Thanks,
Sanujas