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
marclingk
Member
Members
March 26, 2021 - 8:59 am
Member Since: April 29, 2020
Forum Posts: 17
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:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 691

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 754

Posts: 2881

Newest Members:

Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin, joelr, PseudoSpaceMusic, duo.dirtykidz, Paul, Reakenzo

Moderators: W Pirkle: 569

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 569, VariableCook: 3