help me i cant pass by reference inside macro for ui widget help

the paint context variable don’t have a dropdown so i can set it to pass by reference witch is required for this to work … how do i fix this if it is possible or am i wasting my time…