Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
MathStatChem
Level VI

Modal Window, cannot pass Set Tip message to button box

When I create a modal window that contains a button box, if i then pass the Set Tip() message to the button box, it doesn't seem to work, the tool tip doesn't appear when I move the mouse over the button box.  

 

_nw=new window("modal window",
	<<Modal,
	_bb=button box("Test")
);
_bb << Set Tip("Test this");

However, if I remove the <<Modal message in the New Window function, then the Set Tip() works and I can see the tool tip.  

Is there a reason for this?  Anyway around this?  

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Modal Window, cannot pass Set Tip message to button box

A modal window stops all processing except for what is contained within the window.  Therefore the script below is how you have to handle the processing you want

_nw=new window("modal window",
	<<Modal,
	_bb=button box("Test"),
	_bb << Set Tip("Test this");
);
Jim

View solution in original post

3 REPLIES 3
Highlighted
txnelson
Super User

Re: Modal Window, cannot pass Set Tip message to button box

A modal window stops all processing except for what is contained within the window.  Therefore the script below is how you have to handle the processing you want

_nw=new window("modal window",
	<<Modal,
	_bb=button box("Test"),
	_bb << Set Tip("Test this");
);
Jim

View solution in original post

Highlighted
MathStatChem
Level VI

Re: Modal Window, cannot pass Set Tip message to button box

Ok, that works.  I've never tried to do that inside the New Window() function.

 

I think I understand how <<Modal works better now.  Thanks!

 

Highlighted

Re: Modal Window, cannot pass Set Tip message to button box

Another variant (not right or wrong, just a different form) is to place the message send in line with the Button Box() arguments:

 

_nw=new window("modal window",
	<<Modal,
	button box("Test", << Set Tip("Test this"))
);
Learn it once, use it forever!
Article Labels

    There are no labels assigned to this post.