Hello,
I recently upgraded from C++ Builder 10.2 to 10.4.
To repeat... If I create a new VCL Forms Application project in 10.2 and the same in 10.4 Then on both projects I place a AdvPageControl the form. Add a new sheet. Then place a AdvPanel on the sheet and set the Align property to alClient then place a AdvComboBox on the sheet.
Here is the code behind OnDropDown
{
AdvComboBox1->Width = 200;
AdvComboBox1->Font->Name = "Courier New";
AdvComboBox1->Items->Clear();
AdvComboBox1->Items->Add("A - Alpha");
AdvComboBox1->Items->Add("B - Bravo");
AdvComboBox1->Items->Add("C - Cat");
}
Here is the code behind the OnCloseUp
{
wchar_t temp_display[11];
memset(temp_display,0,sizeof(temp_display));
wcsncpy(temp_display,AdvComboBox1->Items->Strings[AdvComboBox1->ItemIndex].c_str(),1);
AdvComboBox1->Items->Add(temp_display);
AdvComboBox1->ItemIndex = AdvComboBox1->Items->Count-1;
AdvComboBox1->Font->Name = "Tahoma";
AdvComboBox1->Width = 37;
}
When I run the application, in 10.4 and when I close up the AdvComboBox the screen does a repaint. In 10.2 if I perform the same action it does not.
The problem is my application repaints each time I close up a AdvComboBox and this creates a flickering effect.
I have the two sample projects I can provide if needed.
Thank you for any help,
Chad