Recurrent eyelid swelling is commonly because of chalazion
internum and hordeolum internum. Chalazion is painless swelling whereas the other two conditions are painful and have sudden onset and acute course. The other common causes for recurrent eyelid swelling are infalmmation of the eyelids called as blepharitis
and allergic eczema.
The ointment you have used is basically a steroid
eye ointment used to treat inflammatory diseases. It is used in allergic eczema and other allergic conditions.You need to undergo eye examination to find out the underlying cause and treatment of the disease.