Print Page | Close Window

[solved] FlatEdit BackColor problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23192
Printed Date: 18 April 2024 at 6:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] FlatEdit BackColor problem
Posted By: hexxa
Subject: [solved] FlatEdit BackColor problem
Date Posted: 09 November 2016 at 9:15am
Funny behavior when i change a FlatEdit control's BackColor property to vbButtonFace in vb6, the property value lost with closing the owner form. Any other value is keeping fine.

Windows 7 32bit - Hungarian Codejock Suite Controls 17.x



Replies:
Posted By: olebed
Date Posted: 12 November 2016 at 1:33pm
Hello,

I can't reproduce this with Suite Controls v17.2 and v17.3 (win7 x86). What version do you use ? Maybe some addition settings?

Regads,
 Oleksandr Lebed


Posted By: hexxa
Date Posted: 14 November 2016 at 4:59am
Hi!

I'm using the flatedit in VB6. This issue appeared from 17.0. in developing time. Before versions was fine. Try to reproduce this way:

Open a VB6 Form.
Put on a FlatEdit Control.
Set it's backColor to system 'ButtonFace' value.
Run the project.
---> The Flatedit Backcolor remains the original "Window Background"
If you just close the form in developing time and open again the "ButtonFace" value is changing back same way.

hexxa.


Posted By: olebed
Date Posted: 14 November 2016 at 5:13am
Smile I thought that you describe crash  when set  myFlatEdit.BackColor = vbButtonFace  

"
the property value lost with closing the owner form".

ok, I will check...


Posted By: olebed
Date Posted: 24 November 2016 at 4:52am
Hello hexxa,

I found reason of this behaviour.
On creating control (or other calling DoPropExchange method) If color of FlatEdit is the same as ambient, then it will be changed to default ("Window Background" &H80000005& for FlatEdit). But if you set color of form to some other  e.g. "Desktop" (&H80000001&), then you can set "Button Face" (&H8000000F&).  This was introduced sometime between versions 15.3.1 and 16.2.4 in 2013y, when changed using custom colors for some ActiveX controls. The same behaviour has ComboBox, ListBox, TreeView, HexEdit and FlatEdit.

Regards,
 Oleksandr Lebed


Posted By: olebed
Date Posted: 01 December 2016 at 7:54am
Hi,

I decide to fix this behavior. If you have possibilities to set that back color in runtime why you can't do this in design time. This relates also to ForeColor of those controls (ComboBox, ListBox, TreeView, HexEdit and FlatEdit).

Regards,
 Oleksandr Lebed


Posted By: hexxa
Date Posted: 05 December 2016 at 7:46am
Thank you! I'm wating for the next release!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net