DTbackgroundByAttribute.sml

  Download

More scripts: Enhanced Data Tip

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# DTbackgroundByAttribute.sml
func OnViewDataTipShowRequest (
	class GRE_VIEW view,
	class POINT2D point,
	class TOOLTIP datatip
	) {
	datatip.String = "{~CJ~TS14~FARIALBD.TTF}Real Estate Property Details\n{~LJ~TS12}";
	return 0;
	}
func OnViewDataTipShowText (
	class GRE_VIEW view,
	class POINT2D point,
	class TOOLTIP datatip
	) {
	datatip.MarginHeight = 5;
	datatip.MarginWidth = 5;
	datatip.BackgroundColor.name = "sea foam";
	if (datatip.String contains "floodway")
		datatip.BackgroundColor.name = "misty rose";
	else if (datatip.String contains "100 year")
		datatip.BackgroundColor.name = "light orange";
	else if (datatip.String contains "500 year")
		datatip.BackgroundColor.name = "lemon chiffon";
   	return 1;
	}