BevelButton Caption Placement ?

  1. last week

    Emile S

    Jun 13 Europe (France, Strasbourg)

    I use a bunch of BevelButtons on a Table of Contents window (ToC) and have troubles with the Captions…

    Iwant to get the Caption below the BevelButton’s Icon, but I only get it inside (centered) of the icon :(

    Idea ?
    Or… must I use a Label for that ?

    Used code (temporary, Target will be used later):

     // Preferences BevelButton
      BB_Preferences.Icon = Preferences_Icon_MacOS_On
      BB_Preferences.CaptionPlacement = 4

    The BevelButtons are 150 x 150 and so are the icons (centered inside that area).

  2. Roger C

    Jun 13 Lewis Center, OH

    Use a canvas subclass. Code it to draw the icon and caption as you wish. Then creating multiple instances for your ToC will be easy

  3. Tanner L

    is not verified Jun 13 Pre-Release Testers Toronto, Canada

    @Emile S Iwant to get the Caption below the BevelButton’s Icon, but I only get it inside (centered) of the icon :(

    This works for me on 2018 on a Mac with a 16x16 icon.

    Me.CaptionPlacement = 4 //below icon
    Me.CaptionAlign = 3 //center
    Me.IconAlign = 4 //top
    Me.IconDY = 8 //pixel offset - adjust to suit
  4. Emile S

    Jun 13 Europe (France, Strasbourg)

    Thanks for your answers.

    My conclusion: caption does not works, use Label(s).

    --
    There is something rotten in the kingdom of Denmark.

or Sign Up to reply!