FoxInCloud
problem with optiongroup
Gravatar is a globally recognized avatar based on your email address. problem with optiongroup
  Paul
  All
  Sep 3, 2019 @ 09:57pm

Hi,

FiC introduces a problem with optiongroups after adaptation.
This carries on from this post here

I would like to suggest that awopt calls this.parent.click, similar to this code that I have put into XXXopt :

*** The class aw::awopt has code in the click event, which means that if an instance does not have code in its click event then the awopt code is run and this then
*** happens instead of triggering the click event of any parent optiongroup control (which would be the normal VFP behaviour).
*** So, call the click event of any optiongroup control after this.  4TFIC
=Dodefault()
If this.Parent.BaseClass = "Optiongroup"
	this.Parent.Click
endif

Paul

Gravatar is a globally recognized avatar based on your email address. re: problem with optiongroup
  FoxInCloud Support - Thierry N.
  Paul
  Sep 5, 2019 @ 12:28am

Do you mean that, in normal VFP behavior, when clicking on an Optionbutton without code in .Click() then parent Optiongroup.Click() fires?

Gravatar is a globally recognized avatar based on your email address. re: problem with optiongroup
  Paul
  FoxInCloud Support - Thierry N.
  Sep 5, 2019 @ 03:33am

Yes it must do, as we have optionbuttongroups that fire the code in the parent click without any code in the child buttons.

© 1996-2019