10-13-2022 09:11 AM - last edited on 05-24-2023 12:02 PM by JackLacava
Looking for some advice on the best way to incorporate a background image on a dashboard.
Say for example you want to have a nice Splash screen that has a nice background image that fills the whole dashboard. Layered on top of that dashboard could be a label and a few buttons taking user to other dashboards.
I can see its possible to add background color to a dashboard in formatting settings but not an image
Solved! Go to Solution.
10-13-2022 11:09 AM
Set your dashboard layout as Canvas, then add an Image component, with Dock Position set to Left. Then add the other component docked where you want them (i.e. use absolute positioning with Left and Top). You might want to play with Display Format options on the Image to achieve the perfect result.
10-13-2022 11:09 AM
Set your dashboard layout as Canvas, then add an Image component, with Dock Position set to Left. Then add the other component docked where you want them (i.e. use absolute positioning with Left and Top). You might want to play with Display Format options on the Image to achieve the perfect result.
10-26-2022 04:42 AM
This was very helpful, thank you.
Is there a way to dynamically set the width and height of a canvas dashboard layout to fill the screen? I could only get this to work by hardcoding the width and height of the Image component, with Dock Position set to Left. This works fine on one screen but if the dashboard is opened on a smaller screen then I need to scroll in order to see the full image.
Couldn't find a solution using the Display Format options of the Image either.
10-31-2022 06:22 AM
Sadly I don't know a way to achieve that sort of resizing. We don't have access to the size of the screen. Hopefully this will be addressed by the new UI system currently being tested.
03-02-2023 04:56 AM
Hi Jack, does OS dashboard support resizeable when viewing in different size of screens?
02-16-2023 11:39 PM
Thank you Jack for posting your advice. But embarrassed to admit that i have tried to figure out forever how to do that. Canvas never came to mind. Maybe time for me to go beyond Grid layout :D.
11-16-2023 05:19 PM
Some food for thought:
If, like many other places, the dimensions of the dashboard component can accept XFBR or parameter, then you could potentially call upon VB.net to obtain the screen sizes and make it dynamic since it is part of the Screen Class:
Dim screenWidth as Integer = Screen.PrimaryScreen.Bounds.Width
Dim screenHeight as Integer = Screen.PrimaryScreen.Bounds.Height
Sadly, we tried, and it seems those fields are still waiting for a "number" instead of accepting XFBR or parameter.
Cheers,
11-16-2023 06:16 PM - edited 11-16-2023 06:17 PM
Think the challenge is you don't really want to lock it to a size, you want it to resize dynamically on and after load as windows and panels are resized. I believe the provided solution is the only way although it is not ideal and somewhat limiting. Feels like there is an easy win for the devs to just allow for a dashboard component (and perhaps some other components) to have a background image property.
11-16-2023 08:11 PM
Right - if it needs to follow the size of the window and pane then perhaps (if permissible):
Still doesn't get the size of the pane from within the window. Agree that if this option is available, it would be easiest.
Cheers,
11-17-2023 03:12 AM
I believe some steps have been taken to get closer to achieving this in v8.0.
The new Dynamic dashboards functionality allow you to set dashboard height/width/position programmatically which is a big step forwards. However i still only think that this will be achievable when the dashboard loads or is refreshed and not dynamically when a window is resized.
I've not had a chance to test it yet though.
Monday
Team will look to take that aspect for a spin in 8.2.1. Will keep folks posted.
Cheers,
A.
Monday
I was looking at this, but couldn't get it to work. With help of @MichaelTyc it is working now.
My settings:
Image format: HorizontalContentAlignment = Stretch, ImageStretch = UniformToFill, IsVisible = True, VerticalContentAlignment = Stretch, File Source is Application Database File
Image settings on the dashboard:
Dashboard looks like this, will be further refined For each item the Position left and from Top was defined. If these overlap a bit it's not possible to make the selection:
Kind regards
Ben