Jump to content

How to create such a button


Volk65

Recommended Posts

Hi all!

 

Special thanks to the developers and those who answer the questions for your work and your patience.

 

Tell me how to create a button (not sure what will appear, so give reference):

http://prntscr.com/hhri8r

 

- Monocolor button

- Left aligned image

- Client aligned label (text)

 

Now at runtime, I create the panel and put on it the image and the label.

But there are problems. For example, ugly displays button lights at the entrance and exit of the mouse cursor.

 

Tell me how to do it correctly.

Link to comment
Share on other sites

Hi,

 

Maybe do you want that first?

 

For example:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniButton1.JSInterface do
  begin
    JSConfig('overCls', ['']);
    JSConfig('focusCls', ['']);
    //JSConfig('pressedCls', ['']);
  end;
end;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...