Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Scout 22 Contacts App
Scout 22 Contacts App [message #1850811] Thu, 17 March 2022 12:59 Go to next message
Nils Israel is currently offline Nils IsraelFriend
Messages: 72
Registered: May 2010
Member
Hi,
I like the new look, especially the menu style Outline Buttons in the contacts app. However, I couldn't figure out how to show the icon in the button like it is done in the contacts app.

Contacts app:
index.php/fa/41780/0/

My app:
index.php/fa/41781/0/

I looked at the source for the contacts app
https://github.com/bsi-software/org.eclipse.scout.docs/tree/releases/22.0/code/contacts/org.eclipse.scout.contacts.client

but couldn't find anything explaining the icon.

Thanks.
Nils
  • Attachment: contacts.png
    (Size: 12.68KB, Downloaded 279 times)
  • Attachment: my-app.png
    (Size: 8.34KB, Downloaded 302 times)
Re: Scout 22 Contacts App [message #1850823 is a reply to message #1850811] Thu, 17 March 2022 15:35 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 256
Registered: March 2010
Senior Member
The icon is only shown if there is an OutlineViewButton with DisplayStyle set to DisplayStyle.TAB, like the SearchOutlineViewButton in the contacts app. Because in that case you need to be able to switch between the outlines which is done by clicking on such an icon. If you always want to show the icon, you could adjust the default behavior by extending ViewButtonBox.js and setting selectedMenuButtonAlwaysVisible = true.

You should be able to use the object factory to extend the ViewButtonBox

[Updated on: Thu, 17 March 2022 15:46]

Report message to a moderator

Re: Scout 22 Contacts App [message #1850829 is a reply to message #1850823] Thu, 17 March 2022 19:36 Go to previous message
Nils Israel is currently offline Nils IsraelFriend
Messages: 72
Registered: May 2010
Member
Thank you Claudio. It is working exactly as you said.
Previous Topic:Eclipse Scout 22 migration issue
Next Topic:How to upload a PDF file to a web page, get the PDF fields values and render them into the same web
Goto Forum:
  


Current Time: Wed May 08 20:40:37 GMT 2024

Powered by FUDForum. Page generated in 0.03399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top