Changing the font size and color of a Combobox [Edit]

I want to be able to change the font size and font color of a combobox at design time.

No matter what I do, nothing works. Is this even possible without writing code?

I would really appreciate help with the specific problem, but I'm also open to some good resources for learning to use Firemonkey styles.

Thank You

Edited by: Joey Hickey on May 6, 2013 12:47 PM

Edited by: Joey Hickey on May 6, 2013 12:59 PM
-1
Joey
5/6/2013 8:04:13 PM
embarcadero.delphi.firemonkey 4901 articles. 4 followers. Follow

5 Replies
9914 Views

Similar Articles

[PageSpeed] 31

> {quote:title=Joey Hickey wrote:}{quote}
> I want to be able to change the font size and font color of a combobox at design time.
> 
> No matter what I do, nothing works. Is this even possible without writing code?
> 
> I would really appreciate help with the specific problem, but I'm also open to some good resources for learning to use Firemonkey styles.
> 
> Thank You
> 

If anyone know that this is NOT a possibility, please let me know.
-1
Joey
5/7/2013 5:39:52 PM
> {quote:title=Joey Hickey wrote:}{quote}
> I want to be able to change the font size and font color of a combobox at design time.
> 
> No matter what I do, nothing works. Is this even possible without writing code?
> 
> I would really appreciate help with the specific problem, but I'm also open to some good resources for learning to use Firemonkey styles.
> 

TComboBox contains a TListBox (the ListBox property) which contains items of class TListBoxItem. You can set each individual item with the Font and StyledSettings of each item:

{code}Item.Font.Size := 13;
Item.FontColor := claRed;
Item.StyledSettings := Item.StyledSettings - [TStyledSetting.ssFontSize, TStyledSetting.ssFontColor];
{code}

Or you can create a custom style and assign it to the list boxes DefaultItemStyles.ItemStyle property.

--
FireMonkey users guide http://bit.ly/10abRZX
MonkeyStyler FireMonkey style designer http://bit.ly/PzxKyI
Embarcadero MVP
1
Mike
5/7/2013 8:18:29 PM
> {quote:title=Mike Sutton wrote:}{quote}
> {code}Item.Font.Size := 13;
> Item.FontColor := claRed;
> Item.StyledSettings := Item.StyledSettings - [TStyledSetting.ssFontSize, TStyledSetting.ssFontColor];
> {code}
I used above approach to change the font color of the TListBoxItem. However, it had no effect on the text color. Is there something more needed to be done to make it happen?
1
Karu
7/20/2013 8:32:03 AM
> {quote:title=Karu Kaarigar wrote:}{quote}
> I used above approach to change the font color of the TListBoxItem. However, it had no effect on the text color. Is there something more needed to be done to make it happen?

Both those techniques should work (code and style), but neither affects the font. I can only assume it's a bug.

--
FireMonkey users guide http://bit.ly/10abRZX
MonkeyStyler FireMonkey style designer http://bit.ly/PzxKyI
Embarcadero MVP
1
Mike
7/21/2013 12:40:33 PM
> {quote:title=Mike Sutton wrote:}{quote}
> Both those techniques should work (code and style), but neither affects the font. I can only assume it's a bug.
Thanks, Mike. Font does change by using TListBoxItem.Font property - the FontColor property is not working (I have tried from the code only though).
-2
Karu
7/21/2013 4:20:56 PM
Reply:

Similar Artilces:

fiGlobally change font sizes in firemonkey (at run time) [Edit]
hello How do I change the default settings so I can in/decrease the font size of Tlabel/ buttons etc for all buttons in the app My understanding was to edit the global settings but with code how ? I googled forever but I could be wrong firemonkey is another beast from the VCL users thank you PW Edited by: Philippe Watel on Jun 7, 2014 3:11 PM Philippe Watel wrote: > googled forever but I could be wrong If you google a bit more, you may even find the firemonkey group. This is for non-technical questions. ...

How to change tree view's (web control) back color, font color and font size using CSS (Cascading Style Shteets)
Hi All, I have created tree view (web control) but i want to change all the properties of it, through single style sheet. Like all other controls (label, text box and combo box) it's not possible to change all the properties of treeview through single style sheet by including it to the contol ???? Please help........ MAITRAY. Sorry. No external css. but these attributes: DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;font-size:8pt" HoverStyle="color:blue;font-name:Arial" SelectedStyle="c...

Signature font and color changes to message font and color
My first post. When I compose a message no matter what the signature font and color is set to, it changes to whatever the font and color is of the message. Is there a fix for this? I would ask my job's tech support but I wouldn't trust them to sit the right way on a toilet seat. -- doover ------------------------------------------------------------------------ doover, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, ...

How Change Font Size and Color in a TGrid ?!
hi everyone, i'm a new user of firemonkey and i try to change the font color or size in a TGrid ! it's pretty easy in VCL but i don't find a way to do it in Firemonkey framework ! i already take a look to the component property and also to a way to do it by using a StyleBook (TextCellStyle) but without success ! can you help ?! thanks Have you figured this out? I have the same requirement. I would like to change column colors and font sizes in my TGrid. > {quote:title=javaid adnan wrote:}{quote} > i'm a new user of firemonkey and i try to change the font ...

How to change FireMonkey Grid Font Size
*Hi;* I am gokhan from turkey.Because I newly using Rad studio platform , i completely have not adapted. In fact I have studied Delphi Platform (VCL) for 7 years , so I familiar to VCL platform. I working on a project which is simple. I really tried that *change Font Size , Style (etc) of grid , combobox* , but have not coped with it. Well Is there solution without Style Manager?? *Thanks.* Hello, here u find something about change Font, style... http://stackoverflow.com/questions/12454765/how-to-change-font-size-at-stringgrid-in-fm2 Greetings Matthias > {quote:title=g...

Change font color in a TComboxBox? [Edit]
I have a 5 row combo box showing, in a black font, the values 'select a grade' '1' '2' '3' '4' Using the OnDrawitem event I color the background of each row depending upon the text shown (1 = blue, 2 = green, 3 = yellow, 4 = red). However the 'preselect' font color, when the mouse is over an item, and also the selected font color always changes to white. This does not show up on the yellow or green backgrounds. How can I make the preselect and selected font color stay black (or even change depending on the backgroupd color)? F...

Color changes AND font changes...
I would REALLY like to change the fonts for calendars just like I do with BG colors. Can I do it by adding something like font-size: 15pt !important in the calendar ICS file? Thanx, zeddock PS. I notice many patches are referenced here. Why is there not a more regular Sunbird release, nightly or weekly? zeddock wrote: > I would REALLY like to change the fonts for calendars just like I do > with BG colors. Can I do it by adding something like > font-size: 15pt !important > in the calendar ICS file? > > Thanx, > zeddock > > PS. I notice ...

how to dynamically change the size of a TMemo? (Delphi) [Edit]
I need to dynamically increase the size of a TMemo. Every time we go some text for this TMemo his size should increase according to the size of the text. Edited by: André Rafael Ciriaco on Feb 6, 2013 9:07 AM ...

Programatically change the font color of a Label in FireMonkey
Hello. I'd like to know how to change the color and the opacity of a Label in firemonkey. In VCL, I just change this properties of the label and it works normally. Anyway in FireMonkey, it looks like I have to change the custom style. How do I do it programatically? Sorry for the lack of knowledge about it. ^_^ Thanks. > Anyway in FireMonkey, it looks like I have to change the custom style. Not since XE3. > How do I do it programatically? Like this: {code} Label1.StyledSettings := Label1.StyledSettings - [TStyledSetting.ssFontColor]; Label1.FontColor := TAlphaC...

How to change font size and color of selected linkbutton.
I built a very simple slideshow app in asp.net. I have a list of linkbuttons in a repeater control. When you click one of the links it loads a specific photo in the slideshow.How can I accent or highlight (change the font size and color) the selected linkbutton (link or photonumber).Thank you for any response, it is appreciated!John BrockThis is my current code below:<%@ Page Language="vb" Debug="true" %><script language="vb" runat="server">Dim iPhotoNumber  As IntegerDim iMaxPhotoNumber As IntegerDim sTheSlide     As StringSub Page_Load(ByVal Sender As O...

Changing font size of FireMonkey TStringGrid
I have a tStringGrid displayed on sample IOS app using XE4 but cannot find anyway to change the font size which is tiny by default and just about unreadable. Anyone know how this font size, type etc can be set? The tStringGrid control is really unusable unless it can be changed. Thanks > {quote:title=Matthew Shallvey wrote:}{quote} > I have a tStringGrid displayed on sample IOS app using XE4 but cannot find anyway to change the font size which is tiny by default and just about unreadable. Join the queue. My preferred method would be to create a custom style for TTextCell, ...

changing default font size does not affect font size on form buttons and input fields.
Hello, in https://bugzilla.mozilla.org/show_bug.cgi?id=305109 I propose that changing the default font size in Preferences should also change the font sizes for form controls. On windows it works this way. Concerning Unix, though, the form controls keep their size, even if you adjust the default font size in Firefox preferences. This makes for ugly form controls if you do not adjust your GTK settings along with your Firefox default font size. But there is a workaround: you can also make Firefox scale the form controls by applying the following changes to 'font:' li...

DNN2, SolPartMenu change color, font size etc...
I have latest DNN2 installed. I created and installed new skins to the protal with Admin role. Now I am trying to change the font color, backgound color and font size on the SolPartMenu. I tried to make the change in the skin.xml by setting the attribute for the [SolPartMenu] token as: <Objects> <Object> <Token>[SOLPARTMENU]</Token> <Settings> <Setting> <Name>forecolor</Name> <Value>#eeeeee</Value> </Setting> <Setting> ...

Links Module: How do you change Font Size / Color / etc.
How do you change Font Size / Color / etc. in the Links module.I'd like the category link to be much larger and a different color than the links underneath it.Thanks. Many of the hyperlinks of the standard DNN modules surround content with the tag <a class="Normal">-doug, Powerhouse Data  kmtharakan wrote:How do you change Font Size / Color / etc. in the Links module.I'd like the category link to be much larger and a different color than the links underneath it.Thanks.You can add html into the Title for the link e.g <h1>My Link</h1>Rob------------------s-...

Web resources about - Changing the font size and color of a Combobox [Edit] - embarcadero.delphi.firemonkey

Changing room - Wikipedia, the free encyclopedia
A changing room , locker room , dressing room (usually in a sports, theater or staff context) or changeroom (regional use) is a room or area ...

Beyond Timeline: The Changing Face Of Facebook Ads
Despite the hype, timeline may not be the most exciting, or important change coming on March 30. Expanded advertising opportunities may unlock ...

Robert Scoble - Micromedia, how it's changing what we blog - Facebook
Jeremiah Owyang wrote an interesting piece about micromedia and how it's changing what we do on blogs and how we distribute media (er, ideas, ...

8 Ways the Changing Facebook Home Page Will Affect Application Virality
For developers who live and die by the changes Facebook makes to the way information flows through the service, every little Facebook tweak has ...

Changing Lanes (@chginglanes) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Changing the way business decisions are made
We believe that social data has unlimited value, and near limitless application. Today, we’re taking an important step toward unleashing this ...

The Right and Wrong Reasons for Changing Jobs
... your profile is a clue to the folks at LinkedIn that you’re thinking of switching jobs, so don’t be The Right and Wrong Reasons for Changing ...

We're Changing Our Name (Back) to Stack Overflow
We are Stack Overflow. You may know us from such popular websites as Stack Overflow Q&A, Stack Overflow Careers, The Stack Exchange Q&A Network, ...

The Tao of Twitter: Changing your life and business 140 characters at a time - Amazon
It's time to take the mystery out of Twitter. Twitter may be the most powerful business and personal networking platform ever created but it ...

App Store - Voices 2 ~ fun voice changing!
Read reviews, get customer ratings, see screenshots, and learn more about Voices 2 ~ fun voice changing! on the App Store. Download Voices 2 ...

Resources last updated: 1/4/2016 11:43:56 PM