Visual Designer. Button & Label Forecolor Hot

Started by SeaVipe, April 29, 2020, 03:30:02 PM

Previous topic - Next topic

SeaVipe

Hi Paul, when Button control ThemeSupport is set to False, is there a way to set the TextForeColorHot property?
Also, I have a Label control with the ForeColorHot property set. Moving the mouse pointer away from the Label and onto some other controls returns the Label's ForeColor value, except if the adjacent control is a ListView, a Calendar or a Picture, then the Hot colour remains. There maybe other controls but I stopped checking at those 3. The 3 controls do not have space between them. The Label touches the ListView and a Picture and a Calendar.
Clive Richey

Paul Squires

Hi Clive, WinFBE uses Jose's CXpButton control for it's button and I am pretty sure that the control does not have a TextForeColorHot setting. If Jose would like to add such functionality to his control then I will certainly add it to WinFBE's visual designer.

I have logged your second issue and will work on recreating it and fixing it. Thanks for the report.
Paul Squires
PlanetSquires Software

Paul Squires

You could simulate TextForeColorHot with the following:


''
''
Function frmMain_Button1_MouseEnter( ByRef sender As wfxButton, ByRef e As EventArgs ) As LRESULT
   sender.TextForeColor = colors.red
   Function = 0
End Function

''
''
Function frmMain_Button1_MouseLeave( ByRef sender As wfxButton, ByRef e As EventArgs ) As LRESULT
   sender.TextForeColor = colors.Black
   Function = 0
End Function

Paul Squires
PlanetSquires Software

SeaVipe

Thanks, Paul. I tried a number of ideas but in the end, and just as an experiment, I replaced the buttons with Label controls (which will be replaced with buttons at a later date). :0(
Clive Richey

Paul Squires

Quote from: SeaVipe on April 29, 2020, 03:30:02 PM
Also, I have a Label control with the ForeColorHot property set. Moving the mouse pointer away from the Label and onto some other controls returns the Label's ForeColor value...

Thanks Clive, I have this fixed now.
Paul Squires
PlanetSquires Software