Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
use CNewFileSelector with ASPiK
Avatar
Member
Members
March 26, 2021 - 8:59 am
Member Since: April 29, 2020
Forum Posts: 19
sp_UserOfflineSmall Offline

How to use use CNewFileSelector with ASPiK?

 

I get a path to a sound file in plugingui. ok:

if (pControl->getTag() == 11) //openFile
{
if (pControl->getValueNormalized() == 1) {

CNewFileSelector* selector = CNewFileSelector::create(getFrame(), CNewFileSelector::kSelectFile);
if (selector)
{
selector->addFileExtension(CFileExtension("WAVE", "wav", "audio/wav"));
selector->setDefaultExtension(CFileExtension("WAVE", "wav"));
selector->setTitle("Choose An Audio File");
selector->run(this);

char WaveFile[250]; // to be defined elsewhere
strcpy(WaveFile, selector->getSelectedFile(0));

selector->forget();
}
}
return;
}

But how do I pass this path to plugincore?

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

jim: 53

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

Nickolai: 39

JimmyM: 33

Member Stats:

Guest Posters: 1

Members: 732

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 42

Topics: 804

Posts: 3087

Moderators: W Pirkle: 640