Add video to progressivetooltip

Add video to progressivetooltip

TA.Fehr
Advocate Advocate
674 Views
4 Replies
Message 1 of 5

Add video to progressivetooltip

TA.Fehr
Advocate
Advocate

I know it's possible to add a video to the progressivetooltip property as mentioned here. I can't seem to figure out how to add a video as a string. I tried a url, I've tried a location to my local disk, I've tried a reference to my resources but it always fails. Is there an example of how to get the video loaded into the progressivetooltip property?

 

I've currently got the video as a .mp4 format.

Accepted solutions (1)
675 Views
4 Replies
Replies (4)
Message 2 of 5

Michael.Navara
Advisor
Advisor
Accepted solution

This is a GREAT!!! question 👏

You can use full file name of the video clip (described here), but the clip must be in specific encoding. I use WMV format and it works. (MP4 doesn't)

In attachment is video clip for tool tip and preview, how it works for me.

iLogic code sample:

 

Dim ctrls As CommandControls = ThisApplication.UserInterfaceManager.Ribbons("Part").RibbonTabs("id_TabModel").RibbonPanels("id_PanelP_ModelPrimitives").CommandControls
Dim progTipIntName As String= "ProgTipIntName"

'Delete result from previous attempt
Try
	ctrls.Item(progTipIntName).Delete
Catch
End Try
Try
	ThisApplication.CommandManager.ControlDefinitions(progTipIntName).Delete
Catch
End Try


Dim btnDef As ButtonDefinition = ThisApplication.CommandManager.ControlDefinitions.AddButtonDefinition("ProgTIP", progTipIntName, CommandTypesEnum.kQueryOnlyCmdType)
btnDef.ProgressiveToolTip.IsProgressive = True
btnDef.ProgressiveToolTip.ExpandedDescription = "Progressive tool tip" & vbCrLf & "with video clip"

btnDef.ProgressiveToolTip.Video = "C:\Path\To\Your\ProgressiveToolTipVideo.wmv"

ctrls.AddButton(btnDef)

 

 

 

Message 3 of 5

JelteDeJong
Mentor
Mentor

They should add this file format information to the help files. @johnsonshiue can you do something like that?

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 4 of 5

TA.Fehr
Advocate
Advocate

Thank you, this was perfect.

0 Likes
Message 5 of 5

liminma8458
Collaborator
Collaborator

Another option: Because the video added by the way of "btnDef.ProgressiveToolTip.Video...." actually is very obscure,  it is better to use ButtonDefinition.OnHelp Event to add a full size video. So you can use F1 to open it when the progresstooltip is shown. Add you can use mp4 format with it.

 

Such as:

Private Sub btn_OnHelp(ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles btn.OnHelp
Process.Start("C:\xxxxxxx\Result2.mp4")
End Sub

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily