erich.wanker Posted November 11, 2013 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2013 Administrators Share 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. Link to comment Share on other sites More sharing options...
erich.wanker Posted November 12, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 12, 2013 Administrators Share Posted November 12, 2013 See demo Client Events- 4 Link to comment Share on other sites More sharing options...
erich.wanker Posted November 15, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
adragan Posted November 16, 2013 Share 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 ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now