Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / T2 Edit boxes

Author
Message
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 18:00
So, after trying to get an "editbox" working for a few hours with no luck. If im not completley misstaken, the editboxes where added to replace textboxes. But I have not got it to work yet.

This is my creationcode


Is there something else that I should add to the code, right now, there is no indication of wheter the editbox is active or not, and it accepts no input
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Dec 2012 19:42
Try if( loading == 1 ) - note the double equals. In C++ a single equals sign is used for assignment while a double equals sign is used for comparison.

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 20:12
Oh, of course I hate that thing. However, that didn't help either...
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Dec 2012 20:17
We might need to see more code. Where are input and loading defined?

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 20:25


This is the whole main loop

Quote: "Where is input defined?"


Does that mean I need some type of code while inputting things to the editbox?
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Dec 2012 20:36
I can't immediately see anything wrong. I haven't set up an edit box in a long time though so I'm not sure if there's anything missing in the setup.

Quote: "Does that mean I need some type of code while inputting things to the editbox?"

What I meant was where are the variables input and loading declared?

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 20:41
Oh, they are defined in the template class which was included in the template I use.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Dec 2012 21:07
Try moving the Set..Focus and Set..Active after the Set..Text, in that order.

Does it work in Windows? Or you only coding in another platform?

Cheers,
Ancient Lady
AGK Community Tester
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Dec 2012 21:24
The setup code works fine on my mac.



The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 21:59
That code dosn't seem to work at all for me... And neither did moving the Active and Focus commands.

And im using windows with VS2010
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Dec 2012 22:12
If it's not too large, could you upload your entire template.cpp or interpreter.cpp code?

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th Dec 2012 22:41
It's not large at all, luckily I ran into this issue before I started doing anything else

I added the whole project as a zip file. Oh, and thanks a bunch for the help!

Attachments

Login to view attachments
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 5th Dec 2012 10:31
I tried compiling your template but got a bunch of errors due to some functions in the core.cpp. So I copy/pasted your template.h and template.cpp into one of my working templates, compiled and ran. It works on this end. See attached image.

I'm not sure why it isn't working for you. You wouldn't happen to have an ATI graphics card would you? Also, are you're using V1076?

Attachments

Login to view attachments
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 5th Dec 2012 11:26
Thats weird, and im using 1085 on a GTX550
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 5th Dec 2012 11:44
Quote: "im using 1085"

That would explain the errors I got. This could be a bug. I'm currently sticking to v1076 until 108 is out of beta but Ancient Lady or another AppGameKit CT T2 developer might confirm this for you. I can say that it works on v1076 on windows.

I hope this is solved soon Zoq2. Good luck.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 5th Dec 2012 16:02
I can confirm that this is a bug in v1085. I will post and confirm in the google and AppGameKit CT site.

Cheers,
Ancient Lady
AGK Community Tester
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 5th Dec 2012 16:13
Awesome, hopefully it will be fixed soon

Login to post a reply

Server time is: 2024-04-28 03:46:54
Your offset time is: 2024-04-28 03:46:54