Changeset 37 in svn


Ignore:
Timestamp:
Mar 26, 2015 10:25:30 AM (11 years ago)
Author:
jglee
Message:
 
Location:
trunk/zasc
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zasc/app_c/DST_WinFrequencySetting.c

    r34 r37  
    100100                char strText[256]; 
    101101                 
    102                 int nLineHeight = (this->rect.h) / 6; 
     102                int nLineHeight = (this->rect.h) / 7; 
    103103                // title 
    104104                this->setFontStyle(this, 21, 0xFFC8C8C8, ALIGN_MIDDLE, ALIGN_CENTER); 
     
    106106 
    107107 
    108                 // display max 
     108                this->DrawText(this, 0, (nLineHeight * 2)+(nLineHeight/3), (this->rect.w)/2, nLineHeight, (char*)"Min.", &(this->font)); 
     109                this->DrawText(this, (this->rect.w)/2, (nLineHeight * 2)+(nLineHeight/3), (this->rect.w)/2, nLineHeight, (char*)"Max.", &(this->font)); 
     110 
     111 
     112                // display min 
    109113                switch(nPos) 
    110114                { 
     
    125129                        int rf = DST_GetFrequencyNumberbyIndex(num); 
    126130                        int freq = DST_GetMHzFrequencybyIndex(num); 
    127                         sprintf(strText, "< Min : %d ( %dMHz ) >", rf, freq); 
    128  
    129                 this->DrawText(this, 0, nLineHeight * 2, this->rect.w, nLineHeight, (char*)strText, &(this->font)); 
    130                 // display min 
     131                        sprintf(strText, "%d (%dMHz)", rf, freq); 
     132 
     133                this->DrawText(this, 0, nLineHeight * 4, (this->rect.w)/2, nLineHeight, (char*)strText, &(this->font)); 
     134 
     135                //display up /down 
     136                this->setFontStyle(this, 21, 0xFFC8C8C8, ALIGN_MIDDLE, ALIGN_CENTER); 
     137                this->DrawText(this, 0, (nLineHeight * 3)+(nLineHeight/3), (this->rect.w)/2, nLineHeight, (char*)"^", &(this->font)); 
     138                this->DrawText(this, (this->rect.w)/2, (nLineHeight * 3)+(nLineHeight/3), (this->rect.w)/2, nLineHeight, (char*)"^", &(this->font)); 
     139 
     140                this->DrawText(this, 0, (nLineHeight * 4)+(nLineHeight*2)/3, (this->rect.w)/2, nLineHeight, (char*)"v", &(this->font)); 
     141                this->DrawText(this, (this->rect.w)/2, (nLineHeight * 4)+(nLineHeight*2)/3, (this->rect.w)/2, nLineHeight, (char*)"v", &(this->font));   
     142                // display ~ 
     143                this->setFontStyle(this, 21, 0xFFC8C8C8, ALIGN_MIDDLE, ALIGN_CENTER); 
     144                this->DrawText(this, 0, nLineHeight * 4, this->rect.w, nLineHeight, (char*)"~", &(this->font)); 
     145                 
     146                // display max 
    131147                switch(nPos) 
    132148                { 
     
    147163                rf = DST_GetFrequencyNumberbyIndex(num); 
    148164                freq = DST_GetMHzFrequencybyIndex(num); 
    149                 sprintf(strText, "< Max : %d ( %dMHz ) >", rf, freq); 
    150  
    151  
    152                 this->DrawText(this, 0, nLineHeight * 3, this->rect.w, nLineHeight, (char*)strText, &(this->font)); 
     165                sprintf(strText, "%d (%dMHz)", rf, freq); 
     166 
     167 
     168                this->DrawText(this, (this->rect.w)/2, nLineHeight * 4, (this->rect.w)/2, nLineHeight, (char*)strText, &(this->font)); 
    153169                // descriptor 
    154170                this->setFontStyle(this, 18, 0xFF666666, ALIGN_MIDDLE, ALIGN_CENTER); 
    155                 this->DrawText(this, 0, nLineHeight * 5, this->rect.w, nLineHeight, (char*)"Up/Down : Next", &(this->font)); 
     171                this->DrawText(this, 0, nLineHeight * 6, this->rect.w, nLineHeight, (char*)"Left/Right : Next", &(this->font)); 
    156172        } 
    157173 
     
    266282                                break; 
    267283                                 
    268                         case VK_UP: 
    269                         case VK_DN: 
     284                        case VK_LEFT: 
     285                        case VK_RIGHT: 
    270286                                nPos = nPos==1?0:1; 
    271287                                this->Show(this);                        
    272288                                break; 
    273289                                 
    274                         case VK_LEFT: 
     290                        case VK_DN: 
    275291                                switch(nPos) 
    276292                                { 
     
    287303                                break; 
    288304                         
    289                         case VK_RIGHT: 
     305                        case VK_UP: 
    290306                                switch(nPos) 
    291307                                { 
Note: See TracChangeset for help on using the changeset viewer.