Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-09

Radiogroup not updating clicked button when in non-visible TPageControl tab

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Tekatch

Hello,

I have a RadioGroup located on a PageControl tab that is sometimes made invisible. If I update that RadioGroup ItemIndex programmatically when that tab is invisible, then later make the tab visible and click on a previously clicked (but not selected) radio button ... there is no OnSelectionChanged (and also OnClick) event produced.

I submitted bug 0026714 which includes a test application: http://bugs.freepascal.org/view.php?id=26714

I am wondering if there is a simple workaround for this behavior, or is it an actual bug?

Thanks,
Anthony

Reply by email

zeljko
to Anthony Tekatch
Anthony Tekatch wrote 13 lines
Hello, I have a RadioGroup located on a PageControl tab that is sometimes made invisible. If I update that RadioGroup ItemIndex programmatically when that tab is invisible, then later make the tab visible and click on a previously clicked (but not selected) radio button ... there is no OnSelectionChanged (and also OnClick) event produced. I submitted bug 0026714 which includes a test application: http://bugs.freepascal.org/view.php?id=26714 I am wondering if there is a simple workaround for this behavior, or is it an actual bug?

Looks like LCL bug since gtk2,qt and win32 are affected. I've updated info at the issue page.

zeljko

Reply by email

zeljko
to Anthony Tekatch: I have a RadioGroup located on a PageControl tab that is sometimes made invisible. If I…
Anthony Tekatch wrote 13 lines
Hello, I have a RadioGroup located on a PageControl tab that is sometimes made invisible. If I update that RadioGroup ItemIndex programmatically when that tab is invisible, then later make the tab visible and click on a previously clicked (but not selected) radio button ... there is no OnSelectionChanged (and also OnClick) event produced. I submitted bug 0026714 which includes a test application: http://bugs.freepascal.org/view.php?id=26714 I am wondering if there is a simple workaround for this behavior, or is it an actual bug?

Issue is fixed (you can use lazarus trunk or wait for 1.2.6).

zeljko

Reply by email

Anthony Tekatch
to zeljko
zeljko wrote 19 lines
On 09/13/2014 01:38 PM, Anthony Tekatch wrote: > Hello, > > I have a RadioGroup located on a PageControl tab that is sometimes > made invisible. If I update that RadioGroup ItemIndex > programmatically when that tab is invisible, then later make the tab > visible and click on a previously clicked (but not selected) radio > button ... there is no OnSelectionChanged (and also OnClick) event > produced. > > I submitted bug 0026714 which includes a test application: > http://bugs.freepascal.org/view.php?id=26714 > > I am wondering if there is a simple workaround for this behavior, or > is it an actual bug? Issue is fixed (you can use lazarus trunk or wait for 1.2.6). zeljko

Your fixed worked well. Thank you very much!

Reply by email

Alejandro Gonzalo
to zeljko: Issue is fixed (you can use lazarus trunk or wait for 1.2.6). zeljko
Similarly if a TEdit or a TMemo have visible set to false, then

PasteFromClipboard and CopyToClipboard fails.

Fix this too please before 1.2.6 releases? Thanks.

A. G.

On Saturday, September 13, 2014 7:37 AM, zeljko wrote:

Anthony Tekatch wrote 13 lines
Hello, I have a RadioGroup located on a PageControl tab that is sometimes made invisible. If I update that RadioGroup ItemIndex programmatically when that tab is invisible, then later make the tab visible and click on a previously clicked (but not selected) radio button ... there is no OnSelectionChanged (and also OnClick) event produced. I submitted bug 0026714 which includes a test application: http://bugs.freepascal.org/view.php?id=26714 I am wondering if there is a simple workaround for this behavior, or is it an actual bug?

Issue is fixed (you can use lazarus trunk or wait for 1.2.6).

zeljko

Reply by email

zeljko
to Alejandro Gonzalo
Alejandro Gonzalo wrote
Similarly if a TEdit or a TMemo have visible set to false, then PasteFromClipboard and CopyToClipboard fails. Fix this too please before 1.2.6 releases? Thanks.

Please open an issue about it and attach example project.

zeljko

Reply by email

Alexsander Rosa
to zeljko: Issue is fixed (you can use lazarus trunk or wait for 1.2.6). zeljko

2014-09-13 11:37 GMT-03:00 zeljko :

Issue is fixed (you can use lazarus trunk or wait for 1.2.6).

http://bugs.freepascal.org/roadmap_page.php?version_id=331 100%
Are we there yet?

Atenciosamente, Alexsander da Rosa -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140925/bf7b3494/attachment.html>

Reply by email