Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tooltip not Working in a Gauge Using SP1

Featured Replies

I have a gauge that I made to use in FSX SP1. The gauge works but the tooltip does not display at all. Here is my code for the tooltip:</Script> <ClickType>LeftSingle+LeftRelease</ClickType> </MouseClick> <Tooltip id="Tooltip"> <Tooltip>Toggle Flight Management System</Tooltip> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>Can someone point out my errors please? Thanks, regards, Bob.

  • Moderator

<Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
<Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip>
Hi Bill. Thanks. So it should read only:</Script><ClickType>LeftSingle+LeftRelease</ClickType></MouseClick><Tooltip>Toggle Flight Management System</Tooltip></MouseArea></SimGauge.Gauge></SimBase.Document>Is that right? Best regards, Bob.
  • Author
<Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip>
Hi Bill. I tried that. See my post above. It still does not show the tooltip. Any suggestions? Thanks for the help. Best regards, Bob.
  • Author
Not sure because i donot have FSX but maybe try this.. A combo of the 2.
<Tooltip id="FMS Toggle">Toggle Flight Management System</Tooltip>

Roman

Hi Roman. Thanks. I'll try that too. Best regards, Bob.
  • Moderator

The problem(s) stem from having four completely different XML Schemas!FS9 Gauge SchemaFSX Gauge SchemaFS9 Model SchemaFSX Model SchemaBecause of this, the same entry has four different formats, and this causes all sorts of confusion... :( Add to that the three different ways Tooltips may be created/defined within each of the four Schemas, and we really can get confused! :( FSX Gauge Schema for pre-compiled Tooltip IDs:

				<Tooltip id="Tooltip">					<DefaultId>TOOLTIPTEXT_RADIO_ALTIMETER_DH_FEET</DefaultId>				</Tooltip>

FSX Gauge Schema for user-created Text Tooltips:

				<Tooltip id="Tooltip">					User-created custom Tooltip text goes here				</Tooltip>

FSX Gauge Schema for user-created Dynamic Tooltips:

				<Tooltip id="Tooltip">					<Code>"Decision Height Setting Knob (%((A:DECISION HEIGHT,FEET))%!d! feet)"</Code>				</Tooltip>

This is why it is CRITICAL when asking a question that one state which XML Schema (FS9/FSX) is being referred to, and which XML Type (Gauge/Model) is being referred to...For example,"I'm working on an FSX (only) Gauge, and have a question...""I'm working on an FSX Model XML script...""I'm working on an FS9 gauge..."et cetera.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
The problem(s) stem from having four completely different XML Schemas!FS9 Gauge SchemaFSX Gauge SchemaFS9 Model SchemaFSX Model SchemaBecause of this, the same entry has four different formats, and this causes all sorts of confusion... :( Add to that the three different ways Tooltips may be created/defined within each of the four Schemas, and we really can get confused! :( FSX Gauge Schema for pre-compiled Tooltip IDs:
				<Tooltip id="Tooltip">					<DefaultId>TOOLTIPTEXT_RADIO_ALTIMETER_DH_FEET</DefaultId>				</Tooltip>

FSX Gauge Schema for user-created Text Tooltips:

				<Tooltip id="Tooltip">					User-created custom Tooltip text goes here				</Tooltip>

FSX Gauge Schema for user-created Dynamic Tooltips:

				<Tooltip id="Tooltip">					<Code>"Decision Height Setting Knob (%((A:DECISION HEIGHT,FEET))%!d! feet)"</Code>				</Tooltip>

This is why it is CRITICAL when asking a question that one state which XML Schema (FS9/FSX) is being referred to, and which XML Type (Gauge/Model) is being referred to...For example,"I'm working on an FSX (only) Gauge, and have a question...""I'm working on an FSX Model XML script...""I'm working on an FS9 gauge..."et cetera.

Thanks for the info Bill. All I am trying to do is get a custom tooltip in a gauge to be used in FSX SP1. The gauge was designed around an SP2 SDK gauge that did not work in SP1. It did not work because the method of calling out the tooltips was not recognized in SP1 and the gauge would not work at all. I deleted the lines from the gauge with the offending tooltip callouts and the gauge worked. I then tried to replace them with a tooltip method that has worked for me in other gauges. It evidently won't work with the coding I have tried. Best regards, Bob.
  • Moderator
Thanks for the info Bill. All I am trying to do is get a custom tooltip in a gauge to be used in FSX SP1. The gauge was designed around an SP2 SDK gauge that did not work in SP1. It did not work because the method of calling out the tooltips was not recognized in SP1 and the gauge would not work at all. I deleted the lines from the gauge with the offending tooltip callouts and the gauge worked. I then tried to replace them with a tooltip method that has worked for me in other gauges. It evidently won't work with the coding I have tried. Best regards, Bob.
Bob, please post the entire XML script for the gauge. That way I can see what the problem really is. I noticed in your original post a </Script> line that has no precedent, and it may well be blocking everything from being parsed that comes below it.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Hi Bill,here a simple XML code with a tooltip included generatet with ACE tool .<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="PNL_Reload"> <Descr>AceXML Document</Descr> <Filename>PNL_Reload.xml</Filename> <SimGauge.Gauge id="Gauge"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <Image id="RELOAD.bmp" Name="RELOAD.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Luminous>True</Luminous> </Image> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script>(>K:RELOAD_USER_AIRCRAFT)</Script> </MouseClick> <Tooltip id="Tooltip"> <DefaultScript>Panel Reload</DefaultScript> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>The trouble is this line : <DefaultScript>Panel Reload</DefaultScript>If you delete this line or just delete the text, the gauge will work also in SP1. RegardsDietmar

  • Author
Hi Bill,here a simple XML code with a tooltip included generatet with ACE tool .<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="PNL_Reload"> <Descr>AceXML Document</Descr> <Filename>PNL_Reload.xml</Filename> <SimGauge.Gauge id="Gauge"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <Image id="RELOAD.bmp" Name="RELOAD.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Luminous>True</Luminous> </Image> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script>(>K:RELOAD_USER_AIRCRAFT)</Script> </MouseClick> <Tooltip id="Tooltip"> <DefaultScript>Panel Reload</DefaultScript> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>The trouble is this line : <DefaultScript>Panel Reload</DefaultScript>If you delete this line or just delete the text, the gauge will work also in SP1. RegardsDietmar
Hi Dietmar. That's exactly my problem except I was trying to find a simple way to reinstall the tooltip that SP1 would accept. Deleting the line then the gauge will work in SP1. Thanks and best regards, Bob.
  • Moderator
Hi Dietmar. That's exactly my problem except I was trying to find a simple way to reinstall the tooltip that SP1 would accept. Deleting the line then the gauge will work in SP1. Thanks and best regards, Bob.
That is not what I was referring to at all. Here's the script from your original post. Notice the </Script> entry on the first line:
</Script><ClickType>LeftSingle+LeftRelease</ClickType></MouseClick><Tooltip>Toggle Flight Management System</Tooltip></MouseArea></SimGauge.Gauge></SimBase.Document>
That one closing </Script> tag is quite likely the problem, since it is not in a logical place. That is why I asked to see the ENTIRE gauge script. One single, tiny, obscure syntax error is the most likely cause of the tooltip failure... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
That is not what I was referring to at all. Here's the script from your original post. Notice the </Script> entry on the first line:That one closing </Script> tag is quite likely the problem, since it is not in a logical place. That is why I asked to see the ENTIRE gauge script. One single, tiny, obscure syntax error is the most likely cause of the tooltip failure... :(
Hi Bill. Thanks. Here's my complete code:<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="FMS_Icon"> <Descr>AceXML Document</Descr> <Filename>FMS CDU_Icon.xml</Filename> <SimGauge.Gauge id="Gauge" ArtDirectory="C:\Microsoft Flight Simulator X SDK\SDK\Bob\My_Icons"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <Image id="FMS_Icon.bmp" Name="FMS CDU_Icon.bmp"> <Transparent>True</Transparent> </Image> <Element> <Visibility>(A:LIGHT PANEL,bool) (A:Circuit general panel on, bool) 1 == &&</Visibility> <Image id="FMS CDU_Icon_night.bmp" Name="FMS CDU_Icon_night.bmp"> <Bright>True</Bright> <Transparent>True</Transparent> </Image> </Element> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script> (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) 10007 (>K:PANEL_ID_TOGGLE) } (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) } </Script> <ClickType>LeftSingle+LeftRelease</ClickType> </MouseClick> <Tooltip>Toggle FMS CDU</Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>Best regards, Bob.
  • Moderator

Bob... four things...1. I wish everyone would use the forum's *code* tags to keep the XML script formatted.2. This stupid *$(@) forum software must use < Script> as a keyword or something, 'cause it keeps forcing it into a lower case "s"......so, I don't really know if #3 is really a mistake, or it's just an artifact from the silly forum software! It's something to keep in mind though. I've place a blank space between the < and S, so remove it before use!3. Copy/Pasting your code into my Visual Studio IDE, the "smartsense" found the error in about 0.3 seconds. It was, as I surmised a very simple error, but one that's easily overlooked. The <script> tag should have been <Script>... Capitalization is a killer in the FSX XML Schema! :( 4. On examining the FSX SDK closer, I believe the correct format for your <Tooltip... should be:

<Tooltip "Toggle FMS CDU"/>

I've moved the <Tooltip> up a bit, and corrected the <Script> error:

<SimBase.Document Type="AceXML" version="1,0" id="FMS_Icon">  <Descr>AceXML Document</Descr>  <Filename>FMS CDU_Icon.xml</Filename>  <SimGauge.Gauge id="Gauge" ArtDirectory="C:\Microsoft Flight Simulator X SDK\SDK\Bob\My_Icons">	<FloatPosition>0.000,0.000</FloatPosition>	<Size>30,30</Size>	<Image id="FMS_Icon.bmp" Name="FMS CDU_Icon.bmp">	  <Transparent>True</Transparent>	</Image>	<Element>	  <Visibility>(A:LIGHT PANEL,bool) (A:Circuit general panel on, bool) 1 == &&</Visibility>	  <Image id="FMS CDU_Icon_night.bmp" Name="FMS CDU_Icon_night.bmp">		<Bright>True</Bright>		<Transparent>True</Transparent>	  </Image>	</Element>	<MouseArea id="MouseArea">	  <FloatPosition>0.000,0.000</FloatPosition>	  <Size>30,30</Size>	  <Tooltip "Toggle FMS CDU"/>	  <CursorType>Hand</CursorType>	  <ClickType>LeftSingle+LeftRelease</ClickType>	  <MouseClick id="MouseClick">		< Script>		  (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) 10007 (>K:PANEL_ID_TOGGLE) }		  (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) }		  </Script>		</MouseClick>	</MouseArea>  </SimGauge.Gauge></SimBase.Document>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.