Skip to Content
avatar image
Former Member

CL_GUI_TOOLBAR button without icon (zero-width)

He folks,

I am wondering if there is a "zero-width" icon that can be used on buttons within a CL_GUI_TOOLBAR instance in such a way that only the button's text is displayed and left aligned on the button.

A am able to create buttons with text and an "empty" icon, but there still remains a placeholder with the width of an actual icon on the button.

Is there a way to prevent the blank icon space from appearing in front of the button text in order to reduce the required width?

Thanks in advance,


toolbar.png (704 B)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Dec 12, 2018 at 01:37 AM

    icon is required parameter so its not placeholder of button, its your 'empty' button. idk how did you do to send an empty button but instead of empty one, is it not possible to send icon with your desire text? then you dont have to set text parameter of that class and you have what you want.

    Add comment
    10|10000 characters needed characters exceeded