In dephi, there are exclude and include functions. What should I use in BCB? And tgifimage to eliminate flickering

Source: Internet
Author: User

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

In dephi, there are exclude and include functions. What should I use in BCB? In BCB, I want to add or delete an attribute for an options item. I know this can be implemented in the following way: stringgrid-> Options = tgridoptions ()> gofixedvertline, gofixedhorzline, govertline, gohorzline, gorangeselect, gorowselect; stringgrid-> Options = tgridoptions () <average, minimum, govertline, gohorzline, gorangeselect, goediting, include function? Best to giveCode, You can add points if not enough!>

This should be the case.
Stringgrid-> Options = stringgrid-> Options>
Gofixedvertline> gofixedhorzline> govertline>
Gohorzline> gorangeselect> gorowselect;

Stringgrid-> Options = tgridoptions () <gofixedvertline <
<Gofixedhorzline <govertline <gohorzline <
<Gorangeselect <goediting;

>

The C ++ syntax is different from the Delphi syntax.

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

I found this evening in the example of gifimage2.2 \ gifimage \ demo \ Explorer.

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

If (fn. lowercase (). pos (". GIF")> 1)
{
Try
{
// Gifimagedefadradrawoptions. Operator + [godirectdraw];
// Include (gifimagedefadradrawoptions, godirectdraw );
Gifimagedefadradrawoptions <godirectdraw; // note the odd way of writing the corresponding Delphi include () function.

// Delete the original
If (mainmap_gif-> picture-> graphic! = NULL)
{< br> (tgifimage *) mainmap_gif-> picture-> graphic)-> clear ();
// eliminate flickering
(tgifimage *) mainmap_gif-> picture-> graphic)-> drawoptions = gifimagedefadradrawoptions;
}

Mainmap_gif-> picture-> loadfromfile (FN );
Mainmap_gif-> show ();
Return;
}
Catch (...)
{
}

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.