Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Coloring problem...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gbozoki
Ketchup Master

USA
70 Posts

Posted - Oct 25 2006 :  11:13:12 PM  Show Profile  Reply with Quote
Hi all,

I think I ran into a coloring problem with VAX. Here is a screenshot:



The code is in C#; the current class derives from System.Web.UI.WebControls.Calendar. The members TitleStyle, SelectedDayStyle, TodayStyle, etc. are all members of the base class, yet, one of them is colored differently than the others.

Here is the actual code:

public class SGCalendar : System.Web.UI.WebControls.Calendar
{
    protected override void OnInit ( EventArgs e )
    {
        base.OnInit ( e );

        TitleStyle.CssClass = "CalendarTitle";
        TodayDayStyle.CssClass = "CalendarToday";
        NextPrevStyle.CssClass = "CalendarNextPrev";
        SelectedDayStyle.CssClass = "CalendarSelectedDay";
    }
}


VAX info:

VA_X.dll file version 10.3.1539.0 built 2006.10.12
Licensed to:
VA X: gbozoki@... Support ends 2007.08.19
<snipped>
VAOpsWin.dll version 1.3.3.6
VATE.dll version 1.0.5.8
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

jpizzi
Tomato Guru

USA
642 Posts

Posted - Oct 26 2006 :  12:48:40 AM  Show Profile  Reply with Quote
If you remove the "override" keyword, is it then colored correctly? If so, I believe this is a known problem. I can look up the case and post it here so you can watch for resolution (let me know if override changes things).

Joe Pizzi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Oct 26 2006 :  3:19:03 PM  Show Profile  Reply with Quote
I am seeing the same thing, both with and without the "override" keyword.

VAX's colouring code is designed to run very quickly, to keep up with scrolling, see the "Coloring by Usage" section here:

http://www.wholetomato.com/products/features/color.asp

It knows that somewhere "TitleStyle" is a class or type, and does not have enough context or clues to work out that it is a variable in this case.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000