I create GUI Element and some buttons etc.
But now I want to delete the buttons or to move them or to make them invisible.
How can I do that?
GUI problem
-
- Posts: 35
- Joined: Wed Mar 24, 2004 2:34 pm
- Location: Germany
- Contact:
GUI problem
Look at http://www.z-software.de for interesting games.
Hi,
do you want to delete and move buttons dynamicly? I mean do you run your program and than the user should be able to move and delete buttons? If yes I would solve this by I menu like in the techdemo. By clicking the object there should open a menu to delete the button. If you say yes you just need to drop() the button. Moving is a little bit more comlicated, because you have to write a drag and drop routine. I think you can take that from some examples too, because a button is a GUI Element too.
Could I help?
do you want to delete and move buttons dynamicly? I mean do you run your program and than the user should be able to move and delete buttons? If yes I would solve this by I menu like in the techdemo. By clicking the object there should open a menu to delete the button. If you say yes you just need to drop() the button. Moving is a little bit more comlicated, because you have to write a drag and drop routine. I think you can take that from some examples too, because a button is a GUI Element too.
Could I help?
-
- Posts: 35
- Joined: Wed Mar 24, 2004 2:34 pm
- Location: Germany
- Contact:
No I want to have it static.
Thanks for help. I will try remove and setInvisible.
Thanks for help. I will try remove and setInvisible.
Look at http://www.z-software.de for interesting games.
-
- Posts: 35
- Joined: Wed Mar 24, 2004 2:34 pm
- Location: Germany
- Contact:
setVisible() works.
but remove make a problem.
first my text disaper, it is ok, but then the program ends because of an error.
but remove make a problem.
first my text disaper, it is ok, but then the program ends because of an error.
Look at http://www.z-software.de for interesting games.