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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...