Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Init event firing twice
I have a class named Hormones which has a number of labels and textboxes, and I am adding an object of this class in a container by using the following command
.AddObject(“oHormones”,”Hormones”)
When I use event tracking to see the events I have observed that Init of each control in Hormones is being triggered twice. Here is a portion of the snapshot of event tracking list.
patientform1.datacontainer.oinsidecontainer.hormones.lblhcont.Init()
patientform1.datacontainer.oinsidecontainer.hormones.lblestr.Init()
patientform1.datacontainer.oinsidecontainer.hormones.lblprog.Init()
patientform1.datacontainer.oinsidecontainer.ohormones.lblhcont.Init()
patientform1.datacontainer.oinsidecontainer.ohormones.lblestr.Init()
patientform1.datacontainer.oinsidecontainer.ohormones.lblprog.Init()
patientform1.datacontainer.oinsidecontainer.ohormones.Init()
patientform1.datacontainer.oinsidecontainer.ohormones.Resize()
The only difference is that Init of oHormones is triggered as compared to init in hormones.
I verify by using wait wind with a random number in the init of hormones.lblhcont and it only appears once where I would expect to appear for both homones.lblhcont and ohormones.lblhcont.
Also to compare the results I have created a new class outside of my project and added it to a form. In that case the Init of each control is only triggered once.
Ahmad
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement