Solved TD-22368: Broken optionbutton style

Report TD 5.x and 6.x bugs and possible workarounds.
OeavDev
Austria
Posts: 98
Joined: 15 May 2018, 11:18
Location: Vienna

TD-22368: Broken optionbutton style

Post by OeavDev » 12 Oct 2015, 17:09

If you click an optionbutton (buttonstyle 'Check') for manipulating a table in the same form, the style of the button gets broken.
The value of the button (1 when clicked) is set correctly, but the button loses its pressed style, as soon as a table gets the focus. A simple workaround is to manually set the focus to an other control, before manipulating the table.

example:

broken option button:
On SAM_Click
Call SalTblSetRowFlags( frm1.tbl2, 0, ROW_Selected, MyValue )

working Option button:
On SAM_Click
Call SalSetFocus( frm1.bkgd1 )
Call SalTblSetRowFlags( frm1.tbl2, 0, ROW_Selected, MyValue )
You do not have the required permissions to view the files attached to this post.

frevelundfey

Re: TD-22368: Broken optionbutton style

Post by frevelundfey » 13 Oct 2015, 08:34

Hi,
the problem with option buttons is not the focus.
An option Buttons behaviour is broken when it's the first control on the form.
If you put the table on first position in contents section
then the option buttons perform normally. Even without setting the focus "manually".

The problem occurs also in TD63 Update 2.
This is a bug!

Regards Thomas

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3473
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-22368: Broken optionbutton style

Post by Dave Rabelink » 13 Oct 2015, 13:44

Yes, a bug.

This was already reported on the TD 6.3 sub forum, here:

viewtopic.php?f=28&t=69750

For TD 6.3, this defect nr has been assigned:

TD-22368 : Option button pushed state is not shown correctly


Beware: even a workaround by moving objects around in the outline or have a different initial focus does not fix it.
Just by clicking around the GUI, focus manually to objects and back to the option buttons will break them eventually.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

OeavDev
Austria
Posts: 98
Joined: 15 May 2018, 11:18
Location: Vienna

Re: TD-22368: Broken optionbutton style

Post by OeavDev » 14 Oct 2015, 08:42

The set-different-focus-workaround works perfectly for me, as long as the Optionbutton is not in a toolbar.

OeavDev
Austria
Posts: 98
Joined: 15 May 2018, 11:18
Location: Vienna

Re: TD-22368: Broken optionbutton style

Post by OeavDev » 03 Nov 2016, 16:38

any news on this case?

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 2 guests