Changeset 37 in svn
- Timestamp:
- Mar 26, 2015 10:25:30 AM (11 years ago)
- Location:
- trunk/zasc
- Files:
-
- 2 added
- 1 edited
-
app_c/DST_WinFrequencySetting.c (modified) (6 diffs)
-
image/BRACON_BLUE/Error/imgaudio.png (added)
-
image/zasq/menu/back.png (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_WinFrequencySetting.c
r34 r37 100 100 char strText[256]; 101 101 102 int nLineHeight = (this->rect.h) / 6;102 int nLineHeight = (this->rect.h) / 7; 103 103 // title 104 104 this->setFontStyle(this, 21, 0xFFC8C8C8, ALIGN_MIDDLE, ALIGN_CENTER); … … 106 106 107 107 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 109 113 switch(nPos) 110 114 { … … 125 129 int rf = DST_GetFrequencyNumberbyIndex(num); 126 130 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 131 147 switch(nPos) 132 148 { … … 147 163 rf = DST_GetFrequencyNumberbyIndex(num); 148 164 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)); 153 169 // descriptor 154 170 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)); 156 172 } 157 173 … … 266 282 break; 267 283 268 case VK_ UP:269 case VK_ DN:284 case VK_LEFT: 285 case VK_RIGHT: 270 286 nPos = nPos==1?0:1; 271 287 this->Show(this); 272 288 break; 273 289 274 case VK_ LEFT:290 case VK_DN: 275 291 switch(nPos) 276 292 { … … 287 303 break; 288 304 289 case VK_ RIGHT:305 case VK_UP: 290 306 switch(nPos) 291 307 {
Note: See TracChangeset
for help on using the changeset viewer.
