Results 1 to 6 of 6

Thread: CommandButton with rounding

  1. #1
    Senior Member
    Join Date
    Oct 2019
    Posts
    341

    CommandButton with rounding

    I would like the command button to be a little rounded. However, I couldn't achieve the desired result with the Border radius setting. Is there a way to make the corners a little round?
    Greetings Olaf

    Name:  bild1.png
Views: 49
Size:  80.1 KB
    Last edited by barrymavin; 2023-12-31 at 03:29.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    You can change the apperance of the command button by specifying

    border-radius:10px

    If you do this you need to specify other CSS attributes for background-color etc as if CSS is specified it overrides all normal attributes.

    Note that the border-radius size specified must be <= half of the control height otherwise it will have no effect.

    Note also that you can specify the border-rdious as a percentage so if your button is the same height and width border-radius:50% will display a round button.

    Are you aware that you can use bootstrap classes in the CSS also? Try it.

    btn btn-info

    See this post:
    https://www.lianja.com/community/sho...ight=bootstrap
    Last edited by barrymavin; 2023-12-28 at 22:33.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Oct 2019
    Posts
    341
    Barry I have been experimenting with the bootstrop commands like those in the description. The btn-info and font-weight-light command runs correctly. I can't get any further with the rounded-circle command. Rounded, rounded-1 also bring no change. Do you have any idea what I'm doing wrong? Greetings Olaf

    Name:  bild1.jpg
Views: 38
Size:  49.7 KB

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Thats wrong syntax just specify the bootstrap class names.

    btn btn-info font-weight-light

    These are recognized internally in desktop and web apps
    Last edited by barrymavin; 2023-12-29 at 21:24.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    This has been simplified and improved in 9.4.20 which will be available shortly.

    Notice the use of bootstrap CSS in desktop and web.

    The canvas background image is now correctly stretched in the web

    Buttons can now be styled using CSS.

    Notice the use of bg-transparent on the formitem containing the button so the rounded corners are rendered.

    Background and foreground colors are now more configurable.

    Using the bootstrap CSS class names provides consistency of your UI in your apps.

    Name:  Screen Shot 2024-01-02 at 2.07.53 PM.jpg
Views: 29
Size:  92.7 KB

    Name:  Screen Shot 2024-01-02 at 2.08.32 PM.jpg
Views: 29
Size:  78.3 KB
    Last edited by barrymavin; 2024-01-02 at 01:46.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Further development with rounding of the UI in 9.4.20

    Name:  Screen Shot 2024-01-03 at 10.36.22 AM.jpg
Views: 29
Size:  79.3 KB
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us