Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Creating a Display toggle? (Read 276 times)
Nov 23rd, 2006 at 3:18am

SkyNoz   Offline
Colonel
Project Kfir!

Gender: male
Posts: 1720
*****
 
I've been trying to figure out how to create a "CUSTOM" display toggle for a Window which appears when, toggle is selected? Anyone which can help me, would be a great help. Grin
 

Project Kfir!&&...&&My Gmax page&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
IP Logged
 
Reply #1 - Nov 24th, 2006 at 12:03pm

wji   Offline
Colonel

Posts: 1644
*****
 
"Window which appears when, toggle is selected?"
Cannot compute . . . insufficient information.

Do you mean FS9 Windows called with SHFT+#?
 

... PhotoShop 7 user
IP Logged
 
Reply #2 - Nov 24th, 2006 at 2:46pm

SkyNoz   Offline
Colonel
Project Kfir!

Gender: male
Posts: 1720
*****
 
Quote:
Do you mean FS9 Windows called with SHFT+#?


Yessss... lol
 

Project Kfir!&&...&&My Gmax page&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
IP Logged
 
Reply #3 - Nov 24th, 2006 at 6:55pm

Gypsy_Baron   Offline
Colonel
USS Dewey DGL-14 &  VX-8
Daly City, California

Gender: male
Posts: 467
*****
 
[quote author=SkyNoz  link=1164269901/0#0 date=1164269901]I've been trying to figure out how to create a "CUSTOM" display toggle for a Window which appears when, toggle is selected? Anyone which can help me, would be a great help. ;D[/quote]


It's pretty simple to do. You simply need to use the "ident=xxxxx"
in the panel.cfg Windowxx section for the window you want to
toggle and have a custom icon to do the toggling.

Here's a sample of XML code to toggle a window with an ID of 10032:

<Gauge Name="Panel Icon" Version="1.0">
   <Image Name="Icon_Panel_32.bmp" ImageSizes="19,19,30,30"/>
   <Mouse>
     <Tooltip>Toggle Custom Window</Tooltip>
     <Cursor Type="Hand"/>
     <Click>10032 (>K:PANEL_ID_TOGGLE)</Click>
   </Mouse>
</Gauge>

The BMP is the Icon bitmap. You can easily create custom bitmaps
using Paintshop Pro and similar programs.

Here's the first part of the Window specification from a panel.cfg
file:
[Window14]
Background_color=0,0,0
size_mm=1024,768
position=7
visible=0
ident=10032      <---------- this is what you use to create custom windows. Some Idents are predefined by MSFS but
generally numbers above 10000 can be used at will.

You also need to call out the Icon gauge on your main panel.
I put my custom Icons into a folder "PDS_Icons". It contains
the XML file and the BMP file. It can be located in your main
Gauge folder of the panel folder where you are actually using
the custom icon.

I added this line to my panel.cfg to place the icon in the
lower left area of the panel.

gauge85=PDS_Icons!Panel_32_Icon, 5, 740, 20, 20

If the new window covers up the main window, you will also need
to place the toggle window icon on your custom window so you
can switch back. Simply add the same line as above with the
appropriate Gaugexx= number.

   Paul
 

...
IP Logged
 
Reply #4 - Nov 24th, 2006 at 7:50pm

SkyNoz   Offline
Colonel
Project Kfir!

Gender: male
Posts: 1720
*****
 
Thank you Gypsy_Baron! the key is just doing the indent, I was looking into it but must have forgot the indent!

-Cheers, SN Wink Grin
 

Project Kfir!&&...&&My Gmax page&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
IP Logged
 
Reply #5 - Nov 25th, 2006 at 11:35am

wji   Offline
Colonel

Posts: 1644
*****
 
Well, there ya go . . . just as I thought -- nothing to it.  Grin
 

... PhotoShop 7 user
IP Logged
 
Reply #6 - Nov 29th, 2006 at 7:18pm

SkyNoz   Offline
Colonel
Project Kfir!

Gender: male
Posts: 1720
*****
 
Tip

-Also, remember to compress the gauge file as .CAB or it wont load properly.  Wink
 

Project Kfir!&&...&&My Gmax page&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print