Jump to content



Photo
- - - - -

Clear Screen In Classpad 330


  • Please log in to reply
1 reply to this topic

#1 dark_soul

dark_soul

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    ClassPad 330

Posted 20 August 2009 - 11:22 PM

Hi everyone I'm learning how to make programs in the classpad, but I have some questions I wait you can help me, the questions are:

1.- in the main screen have a menu with two options , one CPPegString, this recive the option in menu and a button, this works perfectly but when push the button I want to clear screen complete and searching on internet I found that:

WORD estil_invisible = FF_NONE|AF_TRANSPARENT|FF_THIN;
lbl4->DataSet(""); //Label
mopt->DataSet(""); // CPPegString
mopt->FrameStyle(estil_invisible);
b3->FrameStyle(estil_invisible); //button

And the action of this instruction only change the button and CPPegString in Visible or Invisible, but if the pencil pointer is exactly in the position in which the button or the CPPegString are, then, I can push it or write in the CPPegString and it's a problem for me, so ¿How can I destroy or clear the screen completely?

2.- SIGNED Trans::Message(const PegMessage &Mesg) here detect when the buttons is pushed, but when I create a button after the initialization the button are unable, what means, is like a button not exist, it don't do anything ¿how or where I need to create buttons after the initialization?

I wait you can help me, for all thank you.

Hector

#2 wolff

wolff

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • Location:Rotenburg, Germany

  • Calculators:
    Classpad 330

Posted 08 January 2010 - 06:01 PM

1: You can simply clear the screen by calling "ClearScreen();" :)

2: It's done like this:
PegRect rect;
rect.Set(50,50,200,200);
PegTextButton *newbutton = new PegTextButton(rect, "I'm a button", 1, TJ_CENTER|AF_ENABLED);
Add(newbutton);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users