This is a migrated thread and some comments may be shown as answers.

state change appearance of tabs and menu items

1 Answer 54 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Meryl
Top achievements
Rank 1
Meryl asked on 29 Jul 2008, 03:14 PM
I am using the menu and the tab controls in my windows application.

I like the appearance of an existing theme (Control Default), but I want to change the way the control appears during state changes.  Specifically:

1. I do not want state changes of mouse over to affect the tab or menu controls
2. I only want the background color and font style to be affected when the tab is the currently selected (visible) tab.

The states that seem to be associated with the tab control are:
(!IsMouseOver and !IsSelected)
(IsMouseOver and !IsSelected)
(IsSelected and IsMouseOver)
(IsSelected and !IsMouseOver)
(InitialState)

I have made some attempts to make changes, but so far they have not had the desired effect.

Can you please tell me what states I should use for the behavior I am looking for, and which elements I need to assign these states to?

Thanks very much!
Meryl

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Jul 2008, 11:57 AM
Hi Meryl,

Thank you for interest on RadTheming.

To achieve the desired effect for the RadTabStrip you should remove all MouseOver states from RadTabStrip theme. Please delete all states (on border and on fill primitives) that affect OnMouseOver, OnMouseDown and convert the conditions that are combined with OnMoise - for example conditions !IsSelected AND !OnMouseOver should be only !IsSelected

Regarding the RadMenu you should remove IsSelected (IsSelected fired on OnMouseOver) from the conditions.

I attached the modified themes that demonstrate this new condition behavior.

More information about VSB and conditions read here.

Hope this helps.

All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Themes and Visual Style Builder
Asked by
Meryl
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or