revised version of F746_SD_GraphicEqualizer
Dependencies: BSP_DISCO_F746NG F746_GUI F746_SAI_IO FrequencyResponseDrawer LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed
Fork of F746_SD_GraphicEqualizer by
Diff: MyClasses_Functions/FileSelectorWav.hpp
- Revision:
- 12:87f6955b5a80
- Parent:
- 10:fc6367c2ffcf
--- a/MyClasses_Functions/FileSelectorWav.hpp Wed Jun 22 03:59:21 2016 +0000 +++ b/MyClasses_Functions/FileSelectorWav.hpp Thu Jul 07 05:58:52 2016 +0000 @@ -138,7 +138,7 @@ } // ファイルの一覧の表示 - void DisplayFileList(bool sort = true) + void DisplayFileList(int highlighted, bool sort = true) { for (int n=0; n<fileCount_; n++) sortedFileNames_[n] = fileNames_[n]; @@ -149,6 +149,11 @@ rect_->DrawAll(); for (int n=0; n<fileCount_; n++) fileNameLabels_[n]->Draw(GetFileNameNoExt(n)); + if((highlighted>-1) && (highlighted < fileCount_)) + { + fileNameLabels_[highlighted]->Draw(GetFileNameNoExt(highlighted), TOUCHED_COLOR_); + prev_ = highlighted; + } } void Erase(uint16_t x, uint16_t y, uint16_t width, uint16_t height,