Atozed Forums
IWCheckBox - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IWCheckBox (/thread-3159.html)

Pages: 1 2


IWCheckBox - Lorbass - 04-17-2023

Thanks for implementing the new styles in the IWCheckBox.

However, clicking on the box has no visible effect.
Something wrong on my side?


A second point:
When using ServerController.Theme = iw-cool, the readability of the button label is very poor.

Find attached a simple test case and thanks for feedback


RE: IWCheckBox - Alexandre Machado - 04-17-2023

Yes, I see what you mean regarding the checkbox. Something is preventing it from work when used as a built-in control in a grid cell. I'll have a look


RE: IWCheckBox - Alexandre Machado - 04-18-2023

Please update to IW 15.3.3. It will fix this issue: https://www.atozed.com/2023/04/intraweb-15-3-3/


RE: IWCheckBox - Lorbass - 04-18-2023

(04-18-2023, 02:37 AM)Alexandre Machado Wrote: Please update to IW 15.3.3. It will fix this issue: https://www.atozed.com/2023/04/intraweb-15-3-3/

Hi Alexandre,
thanks for the fast fix.

But there is another problem:

procedure TFormMain.IWButton2AsyncClick(Sender: TObject; EventParams: TStringList);
var
  R, C: integer;
begin
  for R := 0 to pred(IWGrid1.RowCount  ) do for C := 0 to pred(IWGrid1.ColumnCount) do begin

    IWGrid1.Cell[R, C].Control.Enabled := not IWGrid1.Cell[R, C].Control.Enabled; // has no effect - also not when using Invalidate or RefreshAsyncRender 

    if IWGrid1.Cell[R, C].Control.Enabled then IWGrid1.Cell[R, C].Control.Font.Style := [fsBold] else IWGrid1.Cell[R, C].Control.Font.Style := []; // this works 

  end;
end;


RE: IWCheckBox - Lorbass - 04-18-2023

(04-18-2023, 09:09 AM)Lorbass Wrote:
(04-18-2023, 02:37 AM)Alexandre Machado Wrote: Please update to IW 15.3.3. It will fix this issue: https://www.atozed.com/2023/04/intraweb-15-3-3/

Hi Alexandre,
thanks for the fast fix.

But there is another problem:

procedure TFormMain.IWButton2AsyncClick(Sender: TObject; EventParams: TStringList);
var
  R, C: integer;
begin
  for R := 0 to pred(IWGrid1.RowCount  ) do for C := 0 to pred(IWGrid1.ColumnCount) do begin

    IWGrid1.Cell[R, C].Control.Enabled := not IWGrid1.Cell[R, C].Control.Enabled; // has no effect - also not when using Invalidate or RefreshAsyncRender 

    if IWGrid1.Cell[R, C].Control.Enabled then IWGrid1.Cell[R, C].Control.Font.Style := [fsBold] else IWGrid1.Cell[R, C].Control.Font.Style := []; // this works 

  end;
end;


Next problems:

AsyncClick fires but AsyncChange not

In both cases no change of the checked-property

That's also when the IWCheckBox is directly put on the form!


RE: IWCheckBox - Alexandre Machado - 04-18-2023

this is very likely to be a different, unrelated issue. I'll test and let you know


RE: IWCheckBox - Lorbass - 04-22-2023

(04-18-2023, 07:59 PM)Alexandre Machado Wrote: this is very likely to be a different, unrelated issue. I'll test and let you know

News on this matter?


RE: IWCheckBox - Alexandre Machado - 04-25-2023

Hi Lorbass,

these issues have also been fixed. They will be included in our next update soon.

Cheers,


RE: IWCheckBox - Lorbass - 04-25-2023

(04-25-2023, 08:28 AM)Alexandre Machado Wrote: Hi Lorbass,

these issues have also been fixed. They will be included in our next update soon.

Cheers,

Hi Alexandre, that is good news. THX! Have a nice day!


RE: IWCheckBox - Lorbass - 05-01-2023

(04-25-2023, 09:26 AM)Lorbass Wrote:
(04-25-2023, 08:28 AM)Alexandre Machado Wrote: Hi Lorbass,

these issues have also been fixed. They will be included in our next update soon.

Cheers,

Hi Alexandre, that is good news. THX! Have a nice day!

Sorry, but the CheckBoxes still don't work correctly in version 15.3.4 when Style <> StNormal.

The symbols now change correctly, but OnChange/OnAsyncChange do not fire.

OnClick/OnAsyncClick fires, but the value of Checked doesn't change.

It doesn't matter if the CheckBoxes are generated dynamically (for use in a grid) or if they are placed directly on the form.

Please check and correct!