[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opacity not working in Form_Open (gtk)


Le 15/04/2025 à 13:15, Bruce Steers a écrit :
odd.  suddenly setting something like Me.Opacity = 85 in Form_Open has stopped working.

seems to work okay if using it in Form_Show()

But also it seems if you have set it in Form_Open then set it again in Form_Show it does not change (i guess because it's already 85 but showing solid)

that's with gtk3

qt is having other problems with setting Form.Opacity on program load.
it does not set in Open or Show.
well it does not show, seems it sets to 1 less than the chosen value.
Ie..
Me.Opacity = 85
Print Me.Opacity
shows 84 value but object is still solid.
I can set manually only be doing this...

Public Sub btnSetOpacity_Click()

   Me.Opacity = 100
   Me.Opacity = 85

End
then qt shows opacity (albeit 84, 1 value less than chosen)

Respects
BruceS


Mmm... I'm not sure that setting the opacity after the window has been shown will work with all window managers.

--
Benoît Minisini.


Follow-Ups:
Re: Opacity not working in Form_Open (gtk)Bruce Steers <bsteers4@xxxxxxxxx>
References:
Opacity not working in Form_Open (gtk)Bruce Steers <bsteers4@xxxxxxxxx>