Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active control question
#5
(08-15-2019, 02:58 PM)SorenJensen Wrote: Hi all,

In VCL it is possible to find out which control is active, and with before and after events, also to tell what the next control to receive focus is, or which control had the focus before.

I used that to bypass some activities in events like OnEnter and OnExit, only doing certain things, if the previous or next active control, was the expected one.

In Intraweb there is an ActiveControl property of the IWForm, but it do not seem to get updated as the focus shifts from control to control. In the IWForm documentation is says it can be used to set the active control when the form is rendered. I suppose it is like the taborder value.

Are there any other way of getting info about which control is the active one ?

Regards
Soren

ActiveControl property is not updated and, in that case, it doesn't make sense to update it. ActiveControl is a static property meaning the control you want to make active each time the form is rendered (Which can happen several times during the form life cycle). Keeping track of every control focus change is somewhat expensive because several requests need to be processed by the server just to keep this property updated.
Reply


Messages In This Thread
Active control question - by SorenJensen - 08-15-2019, 02:58 PM
RE: Active control question - by SorenJensen - 12-09-2019, 09:19 AM
RE: Active control question - by zsleo - 12-09-2019, 06:43 PM
RE: Active control question - by SorenJensen - 12-10-2019, 01:08 PM
RE: Active control question - by Alexandre Machado - 12-12-2019, 12:58 AM
RE: Active control question - by kudzu - 12-12-2019, 02:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)