Jump to content

UniXPopupMenu1 component of XCOMPONENT not work ???


gpaulino

Recommended Posts

hello all
 
UniXPopupMenu1 component of XCOMPONENT not work, I tried to put to us e in the pull down onclick of any menu option that I believe in this component and does absolutely nothing, I do not take any kind of image to Unless I insert by html tag.
 
please help with this ..

 

Link to comment
Share on other sites

  • 2 weeks later...

WebMode? ..

 

i dont know how to use Apache XCOMPONENT with UniGui - but if it helps, i show how i use "selfmade Popups"

 

i use normal "TUniForm" - forms

i show it with "showmodal"

i set top,left what i want

 

..and in TUniForm / Script i have:

 

function setMaskeventClosewindow(target) {
  var elements = document.body.getElementsByTagName('div');
  for (var i = 0; i < elements.length; i++) {
    if (elements[i].className.indexOf('mask') != -1) {
      elements[i].onclick = function() {target.close();};
    }
  }
}

OnShow i have:

procedure Tmodul001_detail1_popup01.UniFormShow(Sender: TObject);
begin
UniSession.AddJS('setMaskeventClosewindow(' + self.WebForm.ExtWindow.JSName + ');');


end;

i have 2 benefits:

 

... i can make my popup like i want

... i can use a lot of "popups" and lose no performance .. (if you use a lot of uniPopup - the loading-prosecc is slowing down..)

 

hope that helps

 

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...