We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hi! i am trying to make a compiler with processing. i had wanted to try a pop-up window but all i found on google was useless to me. do you know a SIMPLE way of making pop-up windows?
Answers
Does this help? https://forum.processing.org/two/discussion/3555/g4p-button-to-open-new-window
no, i mean another window witch i can use functions like rect on
You're going to have to create a new class that extends
PApplet
and then call therunSketch()
function to run it. Here's an example:But please note that this isn't exactly trivial, and can lead to a lot of confusing problems if you don't know what you're doing. You might be better off switching to using Java and calling Processing as a library, but again, that can be confusing if you don't know what you're doing.
i tried but i only got one window
update: oops, it added a tab when i click the mouse
and even more if i kept pressing!
What do you mean it added a tab?
Please note that my answer is an example that pops up a new sketch whenever you click. You're going to have to take it and change it to do what you want.
Have a look at this link. I hope this helps,
Kf
https://forum.processing.org/two/discussion/comment/72574/#Comment_72574
@kfrajer I'm pretty sure you just linked to a previous answer of mine, which is the same answer I posted above :p
so that is for pop-up, can you make another of the same sketch appear
something like:
also, could i make it disappear and find out WICH of the sketched is closed? i tried
exit()
, but it didn't workhttps://forum.Processing.org/two/discussions/tagged?Tag=papplet.runsketch()
so...
ceptionssss.pde
yea, it works... you seen it now...
still gotta figure this exit and stuff out... also... this might be fun! https://forum.processing.org/two/discussion/25779/everybody-post-novelty-stuffs-here#latest