TAdvTaskDialog Demo Project

The UAdvTaskDialogDemo has the following code

   // Radio buttons optional
   if cbradioButtons.checked then
   begin
     for i := 0 to MemoRadioButtons.Lines.count - 1 do
       td.RadioButtons.Add(MemoRadioButtons.Lines[i]);
     td.DefaultRadioButton := -1;
   end;

But I get an error "[dcc64 Error] ScriptsManager.pas(3251): E2362 Cannot access protected symbol TCustomAdvTaskDialog.RadioButtons".

I do not understand this problem report.
You refer to UAdvTaskDialogDemo but this demo does not have the code you include.
The demo as included in TMS VCL UI Pack v10.4 compiles & works as expected.

It is unclear where ScriptsManager.pas is coming from. It does not look like a unit created by us.

Hello Bruno,

On my computer, it is in the file UAdvTaskDialogDemo.pas in the folder *C:\Users\Public\Documents\tmssoftware\TMS VCL UI Pack Demos\AdvTaskDialog\TaskDialogExplorerDemo*, at lines 114-120 (see attached file).

The compile error is from trying to include it in my project, but the code does not compile in either case.

Very best regards,

Olivier

UAdvTaskDialogDemo.pas (8.8 KB)

I can open, compile and run the demo C:\Users\Public\Documents\tmssoftware\TMS VCL UI Pack Demos\AdvTaskDialog\TaskDialogExplorerDemo without any issue here.

Can you make sure you have a clean TMS VCL UI Pack setup, i.e. no more old version sources hanging around?