web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Fill Color

(0) ShareShare
ReportReport
Posted on by

HI

In my Canvas app, I am currently setting all my labels and text by creating a label on another screen, setting the colour to my chosen colour and  naming the label to FillMe.

But now I have referenced this a lot of times I'm seeing lots of issue messages under performance 'Inefficient delay loading'  and I find my form takes an age to load in design mode.

Is there a better way of doing the above, I will probably have to make lots of changes, but maybe I can create a variable?

If anyone can suggest a better way please?

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hi!

     

    Setting a variable during your App's OnStart is definitely better, then reference it from your objects

     

    RGBA:

    Set( FillMe, RGBA(255,255,255,1) )

     

    OR

     

    HEX:

    Set( FillMe, ColorValue("#FFFFFF") )


    OR


    Colour Enumeration:

    Set( FillMe, Blue)

     

    Then just have your control properties set to FillMe

     

    Let me know if this helps,

     

    Cheers,

    Sancho

  • eka24 Profile Picture
    20,923 on at
    I had the same issue. What you can do is to set a variable on start or Onvisible of the home screen. Set(Fillme,Blue)
    Then on each of the screen fill property, use the variable: Fillme

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • Community Power Platform Member Profile Picture
    on at

    HI @eka24 @iAm_ManCat 

     

    Thanks for both your responses... I thought I'd do whats suggested, and on the app on start I have added a variable Set(FillMe, RGBA(My colours, 1); and I can see this is set correctly as I can see the colour show up, but having now gone and deleted the colour label I had created I thought, it would use the above variable I have just created, but it doesn't so i checked the property of the label and buttons and I try change the Fill property from FillMe.Color to just FillMe trying to ref the variable I have just set, it doesn't find the variable I have set on app on start?

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    I'm pretty sure this is because the variable has the same name of the old control so there is a conflict - you will need to change all occurrences of FillMe.Color to FillMe, then re-run the OnStart

  • Community Power Platform Member Profile Picture
    on at

    HI @iAm_ManCat 

     

    Yes that's what I thought, so I deleted the old FillMe label... so now I have loads of red x on my app but when I try to go to the Fill property and remove FillMe.Color to just FillMe it doesn't locate the variable - "Name isn't valid. This Identifier isn't recognized" - which seems strange as it should locate the variable set OnStart... I've saved and restarted, as the Run OnStart didn't work, but still the same issue it wont allow me to ref the variable

     

    Having tried changing a few things, it now detects the variable when I got to the property, but I get a red line under the variable, and states 'Expected Color Value' I've tried to do FillMe.Color but that doesn't work... unsure how I the button to ref the variable color

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Yes, it might still be having a conflict,

     

    You could change your onStart variable to a different name like FillMeNew, re-run your OnStart, then use that in all of the properties.

     

    Let me know if that sorts it out for you!

  • Community Power Platform Member Profile Picture
    on at

    hi @iAm_ManCat 

     

    Tried that by changing the variable name to FillMe1 but still same issue... 

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    I see you're missing a closing bracket as well:

     

    Set(FillMe1, RGBA(My Colours, 1);

    should be:

    Set(FillMe1, RGBA(My Colours, 1) );

     

    What happens when you create a new label and set one of it's colours to FillMe1 ? Could you post a screenshot showing the error?

     

  • eka24 Profile Picture
    20,923 on at
    Please are you filling the label or coloring the text in the label. Also don't use Fill. Color just use Fillme
  • Community Power Platform Member Profile Picture
    on at

    Yes, prior to your response I realised I was missing the close bracket

     

    Tried this again and if I changed the colours to Blue, this worked, so then knew the variable was working... changed back to RGBA colours and wouldn't work, now it just started working!

     

    Thank you both for your help, strange behaviour 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard