已经在mapx中加载了很多symbol,在查找到一个后怎样设置它的样式,让它以不同的颜色显示,怎样设置它的颜色啊

解决方案 »

  1.   

    一点片段,仅供参阅var
      lyr: Layer;
      ft: FindFeature;
      ds: Dataset;
    ……
        ft := lyr.Find.Search(strID, EmptyParam);
        if ft.type_ = miFeatureTypeRegion then
        begin
          ft.Style.RegionColor := clr; //clr: TColor;
          ft.Update(strID, EmptyParam);
        end;
    ……
      

  2.   

    Specifying Point StylesUse a Symbol clause to specify point styles. There are three types of Symbol clauses: one for specifying MapInfo 3.0-style symbols; one for specifying TrueType font symbols; and one for specifying bitmap symbols. Symbol Syntax Example
    Symbol(shape, color, size):  Symbol(35,0,12);
    Symbol(shape,color,size,font,fontstyle,rotation): Symbol(64,255,12,"MapInfo Weather" ,17,0);
    Symbol(bitmapname,color,size,customstyle): Symbol("sign.bmp", 255, 18, 0) 。