Print Page | Close Window

how to set background colors?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=15365
Printed Date: 16 November 2024 at 4:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to set background colors?
Posted By: michelsim
Subject: how to set background colors?
Date Posted: 14 October 2009 at 10:12am
I am trying to use codejock skincontrols 13.1 in combination with commandbars 13.1. However, since we use the skin (WinXP.Royale.cjstyles for example), the background of for example a textbox is white.

The problem is, that when you try and set the background color of the textbox from code (e.g. textbox1.backcolor=vbred), the background color remains white.

Is there any way to make a textbox skinned, but still gives the application control over the background color?

edit: i just tested, and codejock v12.0.2 did give the programmer control over the background color of textboxes and option boxes. It appears to be a newly introduced bug in the ocx.

Michel



Replies:
Posted By: Oleg
Date Posted: 16 October 2009 at 5:39am
Hi,
 
Strange - I just created new project and added standard Textbox + our FlatEdit with such code
 
Private Sub Form_Load()
SkinFramework1.LoadSkin "c:\Source\SVN\Trunk\ToolkitPro\Source\SkinFramework\Styles\Office2007.cjstyles", ""
SkinFramework1.ApplyWindow Me.hWnd
Text1.BackColor = vbRed
FlatEdit1.BackColor = vbRed
End Sub
 
all work fine for me. Please try with new project too.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ijwelch
Date Posted: 16 October 2009 at 11:35am
same problem here.

but put textbox in picturebox and it works ok.

-------------
ExtremeSuitePro 12.1.1
WinXP SP3


Posted By: michelsim
Date Posted: 22 October 2009 at 5:18am
Originally posted by ijwelch ijwelch wrote:

same problem here.

but put textbox in picturebox and it works ok.

That's a bit impracticable if you are dealing with hundreds of forms...

It's strange oleq can't reproduce the issue. Are you sure you added a commandbars to the form as well?

We wiped v.13 from our systems and reverted back to v12 so the problem is solved for us for now.

Michel



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