erich.wanker Posted November 11, 2013 Posted November 11, 2013 Hello, i have a lot of components with Events .. and in some situations - i get an error (object timed out ...) as example ... a uniPanel has events: OnClick - to load a other uniFrame OnMouseEnter - to change the color and refresh some labels OnMouseLeave - to change the color and set infolabel.visible:=false; if i click the panel, i free the current frame and load a other ... but then onMouseLeave-Event tryes to change the color of the uniPanel ... and here is my problem... ! i try to find a solution like: if user clicks on uniPanel - then first clear all events of this panel and then do the procedure .. but my test with: OnMouseLeave:=nil; mainform.InsertFrame1('Tnavigation_angemeldet',mainform.display_area1); does not solve the problem .. the "nil" has no effect .. has anybody a idea - that i can do ? Thanx Erich Quote
Administrators Farshad Mohajeri Posted November 11, 2013 Administrators Posted November 11, 2013 All I can say is that "Destroying" components inside mouse events is not a safe practice. Web is not as synchronized as VCL is. Quote
erich.wanker Posted November 12, 2013 Author Posted November 12, 2013 thanx Farshad for the hint ... is there a way to secure this problem with javascript ? .. something like: if component is clicked - then disable the component on clientside immediately .. so the second click (when user makes falsely a doubleklick) will not have effect .. a mouseOut will not generate .. i would need it for uniPanels and uniImages .. something like: onKlick -> first disable the component -> and make the onClick procedure .. Erich Quote
Administrators Farshad Mohajeri Posted November 12, 2013 Administrators Posted November 12, 2013 See demo Client Events- 4 Quote
erich.wanker Posted November 15, 2013 Author Posted November 15, 2013 hello users, if someone was the same problems (because of wrong software concept..) - there is a cool function: Servermodule / Objectinspector / Properies / SuppressErrors .. errObjectNotFound = true solves the problem for me :-) ThanX erich 1 Quote
adragan Posted November 16, 2013 Posted November 16, 2013 "i would need it for uniPanels and uniImages .. something like: onKlick -> first disable the component -> and make the onClick procedure .." I there any reason why you can't use TUniScreenMask linked to that Image/Button whatever ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.