Having problems with the Delphi "Custom Styles" or skins [Edit]

I started a new app in Delphi XE2.  I added a TStaticText which was tall enough to show 4 lines of text.  Then I added a TLabel.  Depending on what the user does, the TLabel can display Yes or *No* where 'No' is bolded and red in color.

When I apply any skin at all, the TStaticText no longer word wraps (which is not a property I can set or override).  It only shows one line of text and the other three dissapear off to the right.

When I apply my skin, the TLabel still allows bolding, but my font color does not work.  A skin should only override system colors like clBtnFace.  It should never override a manual color.  Even if it did this it would be OK, however if I set a color in the code behind pas file on some event, I expect it to work.

Ultimately I've got a total of 5 different controls on the first form of my first XE2 app, and skins are no longer an option.  Does anyone know how to fix these?  Has anyone else had problems they've run into?

Edited by: Paul Gardner on Dec 14, 2011 6:48 AM
0
Paul
12/14/2011 2:48:38 PM
embarcadero.delphi.non-tech 5933 articles. 1 followers. Follow

4 Replies
1692 Views

Similar Articles

[PageSpeed] 46
Get it on Google Play
Get it on Apple App Store

Am 14.12.2011 15:48, schrieb Paul Gardner:
> I started a new app in Delphi XE2.  I added a TStaticText which was tall enough to show 4 lines of text.  Then I added a TLabel.  Depending on what the user does, the TLabel can display Yes or *No* where 'No' is bolded and red in color.
>
> When I apply any skin at all, the TStaticText no longer word wraps (which is not a property I can set or override).  It only shows one line of text and the other three dissapear off to the right.
>
> When I apply my skin, the TLabel still allows bolding, but my font color does not work.  A skin should only override system colors like clBtnFace.  It should never override a manual color.  Even if it did this it would be OK, however if I set a color in the code behind pas file on some event, I expect it to work.
>
> Ultimately I've got a total of 5 different controls on the first form of my first XE2 app, and skins are no longer an option.  Does anyone know how to fix these?  Has anyone else had problems they've run into?
>
> Edited by: Paul Gardner on Dec 14, 2011 6:48 AM

Hello,

you should create two QC reports for your two problems. One for the 
TStatictext which imho is a bug and the other for the TLabel which 
sounds more like a feature request as I guess EMBT's first reaction 
would be: "works as designed". But the design might not be ideal yet. I 
can see your reasoning.

I once wanted to ave coloured buttons and everybody told me: nah, that's 
not Windows UI conform etc. but for my application this was the best 
solution really (coloring different products on a small cash drawer in 
different colours). The only possible workaround this limit all buttons 
had was, to use a TPanel!

Greeztings

Markus
0
Markus
12/14/2011 7:10:49 PM
Thanks.  I marked the answer as helpful and submitted something to QC:
http://qc.embarcadero.com/wc/qcmain.aspx?d=101798

If no one else has a workaround or way of fixing this, I'll mark yours as the answer in a week.
0
Paul
12/14/2011 10:16:28 PM
Am 14.12.2011 23:16, schrieb Paul Gardner:
> Thanks.  I marked the answer as helpful and submitted something to QC:
> http://qc.embarcadero.com/wc/qcmain.aspx?d=101798
>
> If no one else has a workaround or way of fixing this, I'll mark yours as the answer in a week.

Hello,

I just saw you had problems attaching your sample application to your QC 
report. Did you use the web client? If yes, that one is broken in 
several ways since years already and any promises to get a new web 
client haven't yet fullfilled so far!

But: you can use the win32 client which is available under your Delphi's 
tool menu! Be sure to zip all files into one zip first. That can then be 
attached. The client also can look into the attached zip which is nice.

The menu of the client provides the ability to list all your own reports.

Greetings

Markus
0
Markus
12/15/2011 5:28:52 PM
Markus,

| But: you can use the win32 client which is available under your
| Delphi's tool menu!

Also QC Plus.  Great little app!

-- 

   Q

12/15/2011 09:57:01

XanaNews Version 1.19.1.278  [Q'sBrokenToolBar]
0
Quentin
12/15/2011 5:57:31 PM
Reply:

Similar Artilces:

[Delphi XE2] "Search projects" missing in "Add to Project" dialog box [Edit]
"Search projects" missing in "Add to Project" dialog box when using windows classic theme (windows 7 64bits). Notepad on the contrary still have the "Seacrh ..." box in its open file dialog. Check the images below(they are not mine but show the issue) This one does have the "search document" box in the upper right corner. http://img98.imageshack.us/img98/9518/dialog2.png This one does not have it. http://img291.imageshack.us/img291/4793/dialogl.png Any help on this matter will be greatly appreciated. ...

Delphi XE5 "font color" TButton customization on iOS7 [Edit]
On delphi xe5 1) How can I change the font color on a TButton on iOS7 (iPad) default style? 2) How can I export and modify all the default style iOS7 (iPad) ? Thanks for any feedback. Edited by: Giuseppe Amato on Feb 25, 2014 9:18 AM > {quote:title=Giuseppe Amato wrote:}{quote} > On delphi xe5 > 1) How can I change the font color on a TButton on iOS7 (iPad) default style? > 2) How can I export and modify all the default style iOS7 (iPad) ? > Thanks for any feedback. Chris Rolliston discussed how to get the system styles recently on his blog: http://delphihaven.w...

Change from Edit Style "Edit" till "DropDownDW" at runtime
Is it possible to change the edit style from "Edit" till "DropDownDW" at runtime? I want a DropDownDataWindow to appear when in query-mode only. How do I do it ? Thanks for any help! Turid Have you tried to use the Modify command? I didn't look up the syntax for this but it would be something like : dw_1.Modify("column_name.dddw.Name='d_list'") dw_1.Modify("colun_name.dddw.DataColumn='list_id'") You will need to GetChild() on "column_name" to retrieve the list but I'm sure you get the idea. HTH Turi...

DataControlRowState is "Edit" or "Alternate, Edit"
In the Gridview RowDataBound event, I check for the state of the row to cast some controls and manipulate with them:Protected Sub gvAutori_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow Then            If e.Row.RowState = DataControlRowState.Normal Or e.Row.RowState = DataControlRowState.Alternate Then             ...            ElseIf e.Row.RowStat...

"Edit" Vs"Edit Mask"
Are there any potential problems changing a datawindow date field from "edit" to "edit style" and vice versa? I have over 100 datawindows and who knows how many of them have date fields. Question is if I change the edit style from "Edit" to "Edit Mask" of dd/mmm/yyyy. Will this cause any kind of problems? TIA Well we changed ours from editmask to edit (partly because of the large numbers of bugs in edit masks in early builds of PB7, partly because our customers found editmasks unfriendly to use) and it didn't cause any problems. ...

"Bookmark This Page"/"Edit This Bookmark" non-feature.
Merry Christmas to all! This issue happens with Firefox Version 3.05 only, not with previous versions. When I first click on the "Bookmarks" item on the main menu, the "Edit This Bookmark" window, which I never use, pops up. Anyone kn ow how to suppress this action, as it's not useful (there are many other, easier ways to create a bookmark of course, like drag and drop). Thanks, Pat Pat said this on 12/25/2008 2:57 PM: > Merry Christmas to all! > > This issue happens with Firefox Version 3.05 only, not with previous > versions. >...

Error: "Query: dataset not in Edit mode": in delphi code for Rave Report [Edit]
I am trying to write a Delphi code (Delphi 2010) to print a rave report from the access database; I am using RVSystemprint method; q1 is a query name. I get error message " q1: dataset not in edit or insert mode", at the line: while not q1.Eof. Even though I added q1.Edit or q1.insert, it doesn't work. Database's readonly property is FALSE. What is missing in the code? Thanks. procedure TForm1.rsysPrint(Sender: TObject); begin with Sender as TBaseReport do begin ..... q1.Open; q1.Edit; q1.first; while not q1.Eof do begin ... end; .... ...

Problem with "isc_service_query" and "isc_info_svc_get_license" +"isc_info_svc_get_licensed_users"
I have problem with getting a correct result from "isc_service_query" when I pass "3A" (Get license and licensed_users), in fact I get an "Unexpected Output buffer value" error when IBX tries to read the license information from the result. From the debugging I have done it seems like I dont get the correct result from Interbase. Looking at the result I see that I get a correct value on "isc_info_svc_get_licensed_users", but the rest of the buffer is filled with zeros where I expect to see 0x33 and information about licenses. I am using...

[XE2] "Delphi.Personality" and platform "Win32" missing or unavailable
Today I reinstall XE2 with update 1, when I try to run the application, I got following error message, I am sure it used to works fine before rebuilding my PC. [DCC Fatal Error] Exception Exception: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. [DCC Error] Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. so what I can do now to work around it? solved, I removed the environment varible platform(platform=win32) and not get this error message again. > {qu...

[XE2] "Delphi.Personality" and platform "Win32" missing or unavailable
I'm using Windows Vista Business 32-bit and C++ Builder XE2. When I create a new VCL project, add some Delphi files (.pas) to the project and try to compile, I receive the following error messages: {code} [DCC Fatal Error] Exception Exception: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. [DCC Error] Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable. {code} Normally, in C++ Builder XE, when I add some Delphi files to my projects, it compiles without any prob...

NOT SOLVED "Delphi.Personality" and platform "win32" missing or unavailable
Hello, Just installed (21st February 2012) Delphi XE2 Starter. Build 16.0.4276.44006 *Installed Updates* (RAD Studio XE2 Delphi and C++ Builder Update 1) (BTW why can't this info be copied instead of typing from Help>About) Got: *[DCC Error] Compiler for personality "Delphi.Personality" and platform "win32" missing or unavailable* when trying to run 1st Sample VBlock (BTW why there is no standard Hello World to show that IDE works?) *In spite of CASE SOLVED:* Report #: 98901 Status: Closed "Delphi.Personality" and platform "Win32...

Delphi 2007 assert
The assertion message from Delphi 2007 is... "(!"SetThreadContext failed")" in ..\win32src\thread32.cpp at line 412 Any way I can patch this out? CodeGearâ„¢ Delphi® 2007 for Win32® Version 11.0.2902.10471 El 18/01/2014 21:48, Michael Leahy escribió: > The assertion message from Delphi 2007 is... > > "(!"SetThreadContext failed")" in ..\win32src\thread32.cpp at line 412 > > Any way I can patch this out? > > CodeGearâ„¢ Delphi® 2007 for Win32® Version 11.0.2902.10471 > An unofficial fix fo...

Problems with the "stop" command! with Intraweb for Delphi
Hi, Using Intraweb for Delphi in standalone mode, I noticed that when passed URL http://ipaddress:port/$/stop the program crashes, the browser returns this message "Access violation at address 00000000. Read of address 00000000" and can no longer be accepted other sessions. How can I prevent the "stop" command? Thanks SAGT3K ...

superreview requested: [Bug 427928] "ASSERTION: Non-border-colors case with borderColorStyleCount < 1 or > 3" and "ASSERTION: Unhandled border style" with <table style="outline: auto; "></table> : [At
Mats Palmgren <mats.palmgren@bredband.net> has asked David Baron [:dbaron] <dbaron@mozilla.com> for superreview: Bug 427928: "ASSERTION: Non-border-colors case with borderColorStyleCount < 1 or > 3" and "ASSERTION: Unhandled border style" with <table style="outline: auto;"></table> https://bugzilla.mozilla.org/show_bug.cgi?id=427928 Attachment 314802: Patch rev. 1 https://bugzilla.mozilla.org/attachment.cgi?id=314802&action=edit ------- Additional Comments from Mats Palmgren <mats.palmgren@bredband.net> Not sure...

Web resources about - Having problems with the Delphi "Custom Styles" or skins [Edit] - embarcadero.delphi.non-tech

Resources last updated: 11/23/2015 3:44:40 PM