how to tag the toggle button (FT800)

I am using FT800 screen . I draw toggle button using this instruction
FTImpl.Cmd_Toggle(175, 149, 40, 27, 0, 65535, "on\xFFoff");

I want to write instruction to know if i press the toggle then change its state from on to off..

what I should do

thanks

what I should do

Post some code so there is some context for your question.
Post links (NOT text of URLs) to the libraries you are using.

That way, someone else can look at the documentation for you to figure out exactly what the class does when you press a button of type Cmd_Toggle.

thanks for you

my code

#include <EEPROM.h>
#include <SPI.h>
#include <Wire.h>
#include <FT_ADAM_4DLCD_FT843.h>

FT800IMPL_SPI FTImpl(10,5,3);
void setup()
{
FTImpl.Init(FT_DISPLAY_WQVGA_480x272);
FTImpl.SetDisplayEnablePin(FT_DISPENABLE_PIN);
FTImpl.SetAudioEnablePin(FT_AUDIOENABLE_PIN);
FTImpl.DisplayOn();
FTImpl.AudioOn();
FTImpl.Cmd_Calibrate(0);
FTImpl.DLStart();
FTImpl.Finish();
FTImpl.DLStart();
FTImpl.DLEnd();
FTImpl.Finish();
}

void loop()
{
FTImpl.DLStart();
FTImpl.Cmd_Toggle(175, 149, 40, 27, 0, 0, "on\xFFoff");

// I want to check if the toggle is pressed or isn't

FTImpl.DLEnd();
FTImpl.Finish();
}

Post some code so there is some context for your question.

You did that, but not correctly. Go read the stickies at the top of the forum - the ones you were supposed to read BEFORE posting here.

Post links (NOT text of URLs) to the libraries you are using.

You failed to do that.

I didn't understand what I should do

halaakram:
I didn't understand what I should do

I've told you that you need to:

  1. Read the links at the top of the forum.
  2. Post your code properly
  3. Post a link (as a link, not text) to the library you are using.

Which step do you not understand?

If you can't understand such simple instructions, I don't hold out much hope of you completing your project.