How to Create button with many line of caption

mootoonmootoon Member Posts: 47
Hi Expert I have poblem with button and caption. My caption too long and
I want two or three line not one line .
AAA

Comments

  • kinekine Member Posts: 12,562
    It is not possible with the button. But there some "workaround":

    Place button no. 1. Over this button, place Label with MultiLine=Yes and your caption. Over this place button no. 2 with "BackTransparent=Yes" and "Border=No" (both buttons without caption = space as caption). Set the OnPush on the button no. 2. The first button is creating only the shape of the button, label is the caption and second button is doing the work... :-)

    The visual behavior will not be exactly same as common button but...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mootoonmootoon Member Posts: 47
    It's almost work but If I put label on button no.1 and put button no.2 over
    the label When I click the button nothing happen
    AAA
  • kinekine Member Posts: 12,562
    1) You need to have correct Z order of the objects (allign the object through the Send to back function in menu)
    2) The C/AL code or Properties must be set on the second button (the top-most)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mootoonmootoon Member Posts: 47
    Thank you very much kine It's work
    AAA
Sign In or Register to comment.