Hello,
is there a way to hide the info-button in the calibration window for mesurements?
I know how to manage commands in the Command Bars etc, but I could not find out how to access this window...
Hide Info Button in Calibration Window SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 3
- Joined: Fri Aug 28, 2020 9:02 am
Hide Info Button in Calibration Window
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Hide Info Button in Calibration Window
Hello Daniel Harzer,
Here's how you can get to the IUIX_Dialog interface (the dialog ID is DlgCalibrate):
viewtopic.php?f=66&t=33066&p=138023&hil ... og#p138023
Then you should get the object by the "info1" id (that's the info button) and hide it.
Cheers,
Alex
Here's how you can get to the IUIX_Dialog interface (the dialog ID is DlgCalibrate):
viewtopic.php?f=66&t=33066&p=138023&hil ... og#p138023
Then you should get the object by the "info1" id (that's the info button) and hide it.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 3
- Joined: Fri Aug 28, 2020 9:02 am
Re: Hide Info Button in Calibration Window
Hello Alex,
Thank you for yor quick respond.
But somehow my Code is not working...
I get the Calibrate Dialog when it is opening, but I do not get the Info-button.
By trying to get the item with the Id "info1" the resulting Object is Nothing.
What am I doing wrong?
Cheers,
Daniel
Thank you for yor quick respond.
But somehow my Code is not working...
I get the Calibrate Dialog when it is opening, but I do not get the Info-button.
By trying to get the item with the Id "info1" the resulting Object is Nothing.
What am I doing wrong?
Code: Select all
Private Sub IUIX_EventMonitor_OnEventMonitor(pTarget As IUIX_Obj, pEvent As IUIX_Event) Implements IUIX_EventMonitor.OnEventMonitor
If pEvent.Code = DirectCast(PDFXEdit.UIX_EventCodes.e_BeginModal, Integer) Then
If pTarget.ID = pTarget.ThreadCtx.Inst.Str2ID("DlgCalibrate") Then
Dim outPtr As IntPtr
pTarget.QueryImpl(GetType(PDFXEdit.IUIX_Dialog).GUID, Nothing, outPtr)
Dim dlg As IUIX_Dialog = DirectCast(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(outPtr), PDFXEdit.IUIX_Dialog)
If (dlg Is Nothing) Then Return
Dim obj As IUIX_Obj = dlg.GetItem("info1")
If obj Is Nothing Then Return
obj.QueryImpl(GetType(PDFXEdit.IUIX_Cmd).GUID, Nothing, outPtr)
Dim cmd As IUIX_Cmd = DirectCast(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(outPtr), PDFXEdit.IUIX_Cmd)
cmd.Hidden = True
End If
End If
End Sub
Daniel
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Hide Info Button in Calibration Window SOLVED
Hello Daniel Harzer,
That's probably because the info button is the buddy control of the Edit. Try getting the "e.custom" edit object, then query the IUIX_Edit. Then use the IUIX_Edit::RightCtl property and set it to null - that way the info button should not be displayed.
Cheers,
Alex
That's probably because the info button is the buddy control of the Edit. Try getting the "e.custom" edit object, then query the IUIX_Edit. Then use the IUIX_Edit::RightCtl property and set it to null - that way the info button should not be displayed.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 3
- Joined: Fri Aug 28, 2020 9:02 am
Re: Hide Info Button in Calibration Window
That worked!
Thanks a lot, Alex.
Cheers,
Daniel
Thanks a lot, Alex.
Cheers,
Daniel
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Hide Info Button in Calibration Window
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ