在dephi中有Exclude,Include函数,在BCB中使用什么代替啊? 及 TGIFImage 消除闪烁

http://topic.csdn.net/t/20050203/09/3772401.html

在dephi中有Exclude,Include函数,在BCB中使用什么代替啊?我就是在BCB中想把Options项能添加或删除一种属性,我知道可 以这样实现:   StringGrid-> Options=TGridOptions()> > goFixedVertLine,goFixedHorzLine,goVertLine,goHorzLine,goRangeSelect,goRowSelect;StringGrid-> Options=TGridOptions() < <goFixedVertLine,goFixedHorzLine,goVertLine,goHorzLine,goRangeSelect,goEditing; 但是这样操作起来太麻烦,有没有像Exclude,Include功能的函数?最好给点代码,分不够可以加!>>

应该是这样写
StringGrid-> Options=StringGrid-> Options> > goFixedVertLine> > goFixedHorzLine> > goVertLine> > goHorzLine> > goRangeSelect> > goRowSelect;
StringGrid-> Options=TGridOptions() < <goFixedVertLine < <goFixedHorzLine < <goVertLine < <goHorzLine < <goRangeSelect < <goEditing;

>>

c++的语法和delphi的语法是不一样的。

--------------------------------------------------

害得我在 GifImage2.2\GifImage\Demo\Explorer 示例中找了一晚上.

--------------------------------------------------   

if (fn.LowerCase().Pos(".gif") > 1)
    {
        try
        {
            //GIFImageDefaultDrawOptions.operator + [goDirectDraw];
            //Include(GIFImageDefaultDrawOptions, goDirectDraw);                                
            GIFImageDefaultDrawOptions << goDirectDraw;//注意这个对应 delphi Include() 函数的古怪写法

            //当前控件有 bug 要删除原来的
            if (mainMap_gif->Picture->Graphic != NULL)
            {
                ((TGIFImage *)mainMap_gif->Picture->Graphic)->Clear();
                //消除闪烁
                ((TGIFImage *)mainMap_gif->Picture->Graphic)->DrawOptions = GIFImageDefaultDrawOptions;
            }

            mainMap_gif->Picture->LoadFromFile(fn);
            mainMap_gif->Show();
            return;
        }
        catch (...)
        {
        }

    }

你可能感兴趣的:(在dephi中有Exclude,Include函数,在BCB中使用什么代替啊? 及 TGIFImage 消除闪烁)