tabcontrol event ...OnChanged not fired version 6.0.0.18

Started by grrrr, January 08, 2010, 01:10:30 PM

Previous topic - Next topic

grrrr

hi,
i try to configure tabcontrol at runtime.
starting with an empt tab from odcl file
i add some tabcontrols and activate the events onSelChanged and onChanged.
now onSelChanged ist called but onChanged not.
please try the attached sample.
if code ist static means tab1 and tab2 comes from odcl-file both events are called.

Kerry


It appears that you may have attached the incorrect LSP file.
Perfection is not optional.
My other home is TheSwamp

grrrr

sorry kerry,

you are right
has been the wrong lisp file


owenwengerd

The logic for the OnChanged event is designed to fire the event after the new tab page is visible. Since there is not tab page (and it's not possible to create one at runtime), the event never fires. I can imagine some uses for a tab control even when there are no associated tab pages, so I will change the logic for Alpha 19 to ensure that the event is fired in every case.
Owen Wengerd (Outside The Box) / ManuSoft

grrrr

hi,

thank you owen.
i have tested for 6.0.0.19. it works pretty good.
think you have some misunderstood.
there is one tab control defined in odcl and
at runtime i add tab items to them depending on current data.
i would like to switch on or off controls related to a specific tab item
on by c:dcl_<control>_OnChanged and
off by c:dcl_<control>_OnSelChanging.
that controls are also declared in odcl for a maximal number of tab items because, as you say, they can not be created at runtime.
of course i would prefer creating them at runtime.