Skip to main content
048352641
Participant
August 6, 2019
Question

Button tooltip cannot be displayed

  • August 6, 2019
  • 1 reply
  • 364 views

I have a 3D model PDF and I made some button functions: switch views, display text labels and rotation tools, etc.

The button's tooltips can be displayed before the 3D model has been imported.

After importing the 3D model, the button's tooltip disappears.

But after I opened the rich media to select objects,

My tooltips have not disappeared, and tooltips will appear after that.

I tried to reopen or rewrite the program many times.

Can't solve this problem.

Here is the code for one of my buttons.

------------------------------------------------------------------------------------

var btn_r= this.addField("btn_r","button",0,[800,476,827,499]);

btn_r.userName="right";

btn_r.fillColor = color.transparent;

btn_r.setAction("MouseUp",'var c = getAnnots3D(0)[0].context3D; \r'+

'c.runtime.setView(0,false);\r'+

'var camera = c.scene.cameras.getByIndex(0);\r'+

'var num = 13; \r'+

'camera.position.set(camera.targetPosition.x+num,camera.targetPosition.y,camera.targetPosition.z); \r'+

'camera.roll="0";\r'+

'this.getField("icon3").display=display.hidden;\r'+

'this.getField("icon3_1").display=display.hidden;\r'+

'this.getField("icon3_2").display=display.visible;\r'+

'this.getField("icon3_3").display=display.hidden;\r'+

'this.getField("icon3_4").display=display.hidden;\r'+

'this.getField("icon3_5").display=display.hidden;');

------------------------------------------------------------------------------------

Please help me solve the problem!

**2019/08/06 update 1

I found that adobe may show slow.

When I click on another PDF and then click back to the original PDF, the tooltip will appear.

But after clicking other views, it will not be displayed.

Is there any way to reduce the occurrence of delay?

**2019/08/06 update 2

I found the size of the 3D model if it covers the button

Will make tooltips not display instantly

Is there a way to solve this problem?

PS: Although I am currently reducing the size of the 3D model, it can be displayed.

This topic has been closed for replies.

1 reply

048352641
048352641Author
Participant
August 7, 2019

My last method is:

Reduce the scope of the 3D model to not cover the button