int NoteGetText(int me, char *value);

 

Gets the text from the note.

 

Return Value

 

Return value not used.

 

Parameters

 

me

Handle of the note control containing the text.

 

value

Pointer to a char buffer that will receive the text.  Provide a buffer 3000 characters in length to receive the text in the note.

 

Remarks

 

NoteGetText() will get the text from the specified multi-line edit box and populates the value parameter with the text.

 

Availability

 

Available in DragonFireSDK 2.0 and later.

 

Example

 

#include "DragonFireSDK.h"

 

int BackgroundView;

int MyNote;

bool MyNoteEditable=true;

bool MyNoteVisible=true;

int MyGetTextButton;

int MySetTextButton;

int MySetEditableButton;

int MySetVisibleButton;

char MyTextBuffer[3000];

 

int OnButton(int id)

{

  switch(id)

   {

      case 1:

       NoteGetText(MyNote,MyTextBuffer);

       printf("%s\n",MyTextBuffer);

      break;

      case 2:

       NoteSetText(MyNote,"This is the text\nset from a button.\n");

      break;

      case 3:

       MyNoteEditable=!MyNoteEditable;

       NoteSetEditable(MyNote,MyNoteEditable);

      break;

      case 4:

       MyNoteVisible=!MyNoteVisible;

       NoteSetVisible(MyNote,MyNoteVisible);

      break;

   }

  return(id);

}

 

int OnNoteDone()

{

   printf("Done editing the note!\n");

  return(1);

}

 

void AppMain()

{

   BackgroundView=ViewAdd("Images/Background.png",0,0);

   ViewSetSize(BackgroundView, 320, 200);

   MyNote=NoteAdd(0, 0, 320, 200);

   MyGetTextButton=ButtonAdd("Images/Button", 10, 210, OnButton, 1);

   MySetTextButton=ButtonAdd("Images/Button", 80, 210, OnButton, 2);

   MySetEditableButton=ButtonAdd("Images/Button", 150, 210, OnButton, 3);

   MySetVisibleButton=ButtonAdd("Images/Button", 220, 210, OnButton, 4);

   NoteSetOnDone(OnNoteDone);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}