How do I Customize Label Items in ToolBars

rated by 0 users
This post has 3 Replies | 2 Followers

Not Ranked
Points 60
Amith2 Posted: 07-24-2008 3:06 AM

Hi ,

 I have a toolbar populated with many label items and i need to customize their look and feel

i need to change some lables fonts, so that they appear as header captions and others with default font  

i went through the properties and if i change the properties of any one tool item on the toolbar it is getting applied to all items

how do i avoid this and let the properties change for only one item on the toolbar and retain the default settings for other items

-???

-Amith

  • | Post Points: 20
Top 10 Contributor
Points 22,768
Infragistics Employee

I'm not sure why the appearances are getting applied to all tools, unless they are all instances of the same tool. If so, try setting the InstanceProps.AppearancesSmall on each tool instead of the SharedProps' appearances. If not, it could be a bug. Which properties are you setting on the tools?

  • | Post Points: 20
Not Ranked
Points 60

Hi ,

I did exactly as u said by changing the small/Large Appeareances and not the shared props, but the results are the same .

i have an ultratoolBarManager and toolbar created out of it.

i need to change the font properties[Font Data] of the first label item on the toolbar  -> under that most importantly SizeInPoints -> It either

applies to all the tool items [increases the font size of all items] on the tool bar or  has no effect at all. Can u please check this out !

 I also had the [show as Text  always] property checked to true. I dont know what other properties of toolbar are preventing the chane in font size

behaviour to occur.

Thanks

-Amith

  • | Post Points: 20
Top 10 Contributor
Points 22,768
Infragistics Employee

I believe the SizeInPoints set on the tools is ignored because all tools in a toolbar must all have the same size for the current positioning logic to work correctly. You can submit a feature request for varying tool sizes in the same toolbar to be supported: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.

  • | Post Points: 5
Page 1 of 1 (4 items) | RSS

Forum Statistics

19,640 users have contributed to 78,505 threads and 87,114 posts.

In the past week, we've had 1,434 new users, adding to our total of 423,240 registered users!

In the past 24 hours, we have 22 new thread(s), 65 new post(s), and

In the past 3 days, the most popular thread for everyone has been "UltraGrid - ConditionAppearanceRow". The post with the most views is "Re: A gripe about support and sample projects". The most replies were made to "A gripe about support and sample projects".

Please welcome our newest member paig.