October 29, 200817 yr Hello again Folks.At the risk of appearing dense, I am confused a wee bit here.I have a radio display which shows all the radio frequencies on a grid, like the default Lear 45 in FS9. I will INC/DEC the freqs. by the use of a knob at the side of each freq. in the grid. Using selectable mouse areas.Here's the rub. I have read through the FS2X tutorial and decided that this code is what I need but I have a feeling that I should have a K var. assigned somewhere but I gather from the tutorial that the Click Event should do the job on it's own.But it doesn't!! Remember that I'm a newbie at this, so could someone please show me the error of my ways. Here's the code:-Regards...Kenny Regards...Ken Greer EGPH
October 30, 200817 yr Commercial Member Shouldn't it be (K:COM_RADIO_WHOLE_DEC)?? Ed Wilson Mindstar AviationMy Playland - I69
October 30, 200817 yr Author Hi ED,I really don't know. My XML knowledge is not advanced enough yet. I am still using snippets from the FS2X tutorial verbatum, plus of course what the folks here advise me with.Here's the part from the tut. There is a lot more of course, regarding swapping the standby freq. etc. but this is the bit I thought would apply.I can't seem to copy and paste it. I have placed it as an attachment. Regards...Ken Greer EGPH
October 30, 200817 yr Kenny,I redid the code and this works. I tested to make sure.I used a little knob for the test mounted on my main panel so that the statements you see reflect that. The bmp size I used was 31x31. If your is bigger just change the coordinates.http://forums.avsim.net/user_files/193835.jpgJust change the name to your bitmap.Douglas.
October 30, 200817 yr Moderator >Shouldn't it be (K:COM_RADIO_WHOLE_DEC)??That format is only needed for a type statement.(>K:Key_Event)For a Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
October 31, 200817 yr Author Hi Folks.Douglas, thanks for doing that for me. It made me think about using different ways to use the code rather than sticking slavishly to the tut. Also Bill and Ed, same applies, I am seeing the code in a different light now. I have the Com1 freq. inc/dec working fine now. I will go on now and work on the others.Regards...Kenny Regards...Ken Greer EGPH
Create an account or sign in to comment