PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marco Ruiz on June 10, 2016, 12:46:43 PM

Title: Label transparent background
Post by: Marco Ruiz on June 10, 2016, 12:46:43 PM
I have a form with labels defined with transparent background.
At runtime , I change the form background , but the labels with transparent background color do not change the background color of the form.

    FF_Control_SetColor(hWndForm, -1, Rgb(255,140,140))
    FF_Control_ShowState(hWndForm, %SW_HIDE)
    FF_Control_ShowState(hWndForm, %SW_SHOW)

FireFly 3.74

:-\
Title: Re: Label transparent background
Post by: Paul Squires on June 10, 2016, 05:33:15 PM
The Labels are not transparent in the true sense of what "transparent" means. I believe there are other posts here on the forum  about this but in essence when code is generated by FireFly, labels with transparent property set simply inherit the form's background color (at design time). If the form changes background color during runtime then the labels will also need to be manually updated. This is not done automatically by FireFly.