TButton Icon Alignment
Posted: Thu Jul 23, 2020 7:57 pm
To All
I have 4 identical sized TButtons 52 x 20 that each have a 16 bit icon .. I can not ( further ) change the width of the Button Prompts ..
Notice how the second button Icon is out of alignment .. Here is the code .. I realize the length of the Prompt is longer than the other 3 and seems to push the icon farther left .. There is plenty of room if there was a way to insert a space to right pad the icon to line up all 4 icons ..
Please note that I continue to widen the button with very little changes in the calculation placement of the icon .. any help would be appreciated.
Thanks
Rick Lipkin
I have 4 identical sized TButtons 52 x 20 that each have a 16 bit icon .. I can not ( further ) change the width of the Button Prompts ..
Notice how the second button Icon is out of alignment .. Here is the code .. I realize the length of the Prompt is longer than the other 3 and seems to push the icon farther left .. There is plenty of room if there was a way to insert a space to right pad the icon to line up all 4 icons ..
Please note that I continue to widen the button with very little changes in the calculation placement of the icon .. any help would be appreciated.
Thanks
Rick Lipkin
Code: Select all
REDEFINE BTNBMP oBtn2 ID 252 OF oGrps ;
RESOURCE "COMMENT" ;
PROMPT "Comment" LEFT 2007;
ACTION ( _ViewMemo2( cMode, oRsTrav, "Request",oBtn1,oBtn2,oBtn3,oBtn4,oBtn5, "2" ,@cComments, 400, cPrevAppr, oFontb ),LightGreyGrad());
GRADIENT GreyButtonGrad()