Retrieve text from StringGadget that is inside ContainerGadget

Just starting out? Need help? Post your questions and find answers here.
#NULL
Addict
Addict
Posts: 1499
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Retrieve text from StringGadget that is inside ContainerGadget

Post by #NULL »

It's probably the Init/ExamineKeyboard that steals the focus, not the screen itself (on linux).
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 303
Joined: Sun Aug 29, 2021 4:34 am

Re: Retrieve text from StringGadget that is inside ContainerGadget

Post 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?
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 303
Joined: Sun Aug 29, 2021 4:34 am

Re: Retrieve text from StringGadget that is inside ContainerGadget

Post 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
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 303
Joined: Sun Aug 29, 2021 4:34 am

Re: Retrieve text from StringGadget that is inside ContainerGadget

Post 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.
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 303
Joined: Sun Aug 29, 2021 4:34 am

Re: Retrieve text from StringGadget that is inside ContainerGadget

Post 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.
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
Post Reply