Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Coloring problem...

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
gbozoki Posted - Oct 25 2006 : 11:13:12 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 26 2006 : 3:19:03 PM
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.
jpizzi Posted - Oct 26 2006 : 12:48:40 AM
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).

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000