Page 2 of 2
Re: Retrieve text from StringGadget that is inside ContainerGadget
Posted: Wed Jul 03, 2024 7:45 pm
by #NULL
It's probably the Init/ExamineKeyboard that steals the focus, not the screen itself (on linux).
Re: Retrieve text from StringGadget that is inside ContainerGadget
Posted: Wed Jul 03, 2024 10:56 pm
by Distorted Pixel
I switched the project to using #Constants
While I work on this, What is the best way to do the fonts enumeration? Some screens use the same font size. It keeps telling me that a font is already declared. The funny thing is, is that the program sees the declaration in the last screen and says in the screen before it that the font is already declared. Weird
I didn't have this problem using integer variables
Or should I use #Constants for everything but fonts? And use integers for fonts?
Re: Retrieve text from StringGadget that is inside ContainerGadget
Posted: Thu Jul 04, 2024 3:57 pm
by Distorted Pixel
#NULL wrote: Wed Jul 03, 2024 7:45 pm
It's probably the Init/ExamineKeyboard that steals the focus, not the screen itself (on linux).
I have solved the font issue, but I still have the problem of the user typed text in the StringGadget is not showing in the Debug. I am still trying to solve that issue
Re: Retrieve text from StringGadget that is inside ContainerGadget
Posted: Thu Jul 04, 2024 9:16 pm
by Distorted Pixel
I decided to do a separate 2 code file test to simulate the original project's 2 files written by hand without using IceDesign. Even though it is more simple code it does work. I believe the problem has to do with something about the previous window(s) or the focus. I'm not sold on the focus issue yet though, but I could be wrong. (I probably am lol)
I found this and it didn't even work. I could have set it up wrong, but I don't think so.
https://www.purebasic.fr/english/viewtopic.php?t=73843
If anyone has any ideas I would greatly appreciate them.
Re: Retrieve text from StringGadget that is inside ContainerGadget
Posted: Sun Jul 07, 2024 5:39 am
by Distorted Pixel
Ok button now working to send user typed name from the StringGadget inside the ContainerGadget to debug. I had to put the Select/EndSelect case in the main game loop in the main code file to get it to work (Weird). I can not get it to work from the include file loop where the StringGadget is.
Now I need to get the Return key to work for the same screen. I want the Ok button and the Return key to work so the user can do either one to process the user input name.