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 )
TD-22368: Broken optionbutton style
TD-22368: Broken optionbutton style
You do not have the required permissions to view the files attached to this post.
Re: TD-22368: Broken optionbutton style
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
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
-
- Founder/Site Admin
- Posts: 3473
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-22368: Broken optionbutton style
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.
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
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: TD-22368: Broken optionbutton style
The set-different-focus-workaround works perfectly for me, as long as the Optionbutton is not in a toolbar.
Re: TD-22368: Broken optionbutton style
any news on this case?
Who is online
Users browsing this forum: [Ccbot] and 2 guests