• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Highlighting Text in C++

Messages
278
Country
ca-britishcolumbia
Hello all,
I have been working (more to the point "Learning") with Doug Dawson on a ELT/Direction Finding Receiver to learn C++ coding. It is really exciting to what we have managed to achieve with C++ over XML (truthfully would be hard pressed to go back due to limitations of XML) and I believe we will both pleased with the end result as well as the potential for other uses in gauges.

My current problem is neither of us really understand the use SEQ_REC command to highlight text and not really sure if that is what we really want.

In the attached picture of the real life receiver unit is what I would like to display on our gauge


we have used 8 MAKE_STRING (the number of lines that fit into the screen) to be able scroll through active alerts. The plan is and hopefully achievable to have the three lines of information per alert highlighted as shown and then the user can click to select the desired alert to gain more information and DF on other pages of the gauge.

Any help is greatly appreciated.

Cheers
Greg
 

Attachments

  • messagescreen.jpg
    messagescreen.jpg
    14.2 KB · Views: 721
Uh....Why use the MAKE_STRING macro? Try the GDI+ example (or replace GDI+ with Direct2D based on an example in the FSDev wiki). You can find it here: http://www.fsdeveloper.com/forum/threads/vs2013-question.432296/#post-693218

The answer then would be to fill a rectangle before drawing the text, using the same bounding rect that the DrawString will use, and to change the color of the brush, or change the brush used for drawing the text if need be.
 
Thank you Sir,
Read the Wiki and the Direct 2D may be the best approach for what I am attempting to do. So I am thinking draw a rectangle have the test scroll through it and then hopefully have whatever alert is in the rectangle be selected for access of information on the other two pages. Will have to wait and see if this approach works. Thanks again.

Greg
 
Back
Top