state change appearance of tabs and menu items

2 posts, 0 answers
  1. Meryl
    Meryl avatar
    4 posts
    Member since:
    Jul 2008

    Posted 29 Jul 2008 Link to this post

    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)

    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!
  2. Peter
    Peter avatar
    1151 posts

    Posted 30 Jul 2008 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top