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 / SetEditBox() and SetEditBoxExtendedFont () - designed for data entry in other languages than English ?!

Author
Message
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 2nd Jan 2015 09:42 Edited at: 2nd Jan 2015 11:12
Hey there! Happy New Year!
I ask because it works fine on a PC - when using the extended font takes great Latin and Cyrillic,, but does not work on Android - only Latin.
http://youtu.be/fq4WxFq3eN0

AGK 2 !
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 2nd Jan 2015 12:20 Edited at: 2nd Jan 2015 12:21
print the image handle on screen, maybe its because case sensitive filenames at android.

hny too

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 2nd Jan 2015 16:32
Marcus, explain, please? - I have all the files are named in Latin, and I do not understand - how it can be connected?

AGK 2 !
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 2nd Jan 2015 19:19 Edited at: 2nd Jan 2015 19:22
at pc is Ab = ab
at android is Ab <> ab
i mean if u useing img=LoadImage("Font.png")
use Print(img) on screen and see if it is <>0, means have a id.
or look at
GetErrorOccurred ()
GetLastError ()
SetErrorMode ( mode )

if img=0 it use the default font

other thing is the max texture size at devices.
what size have your font image?

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 3rd Jan 2015 08:43 Edited at: 3rd Jan 2015 09:44
Markus, you has encouraged me
But alas - no errors or regime change Rabten compiler (SetErrorMode) yielded no results.
No errors, no "last" error, IMG = 10001 ... Enhansed font is downloaded and installed for the input fields (EditBox) ...
In version AGK108.24 field can not be specified beforehand RUSSIAN text (SetEditBoxText) - it does not show. But AGK2 it shows. This saves reliable.
Size my font image - 8.04 Kb, 1026x112 pixels

SetText work with this font is ok.

Thank you, Markus!

Developers, help, somebody!

AGK 2 !
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 3rd Jan 2015 09:36
See what the scan codes are using Print(). They may be Unicode, and hence outside the range of the edit box text.

-- Jim - When is there going to be a release?
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 4th Jan 2015 17:25
in this case the function SetEditBoXExstendedFont () is not cross-platform. What is not mentioned in the help.
And how to get the scan code of the virtual keyboard? Codes Cyrillic characters ASC (cyr.symbol) - displays their values in the table with a minus sign.

AGK 2 !
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 4th Jan 2015 17:45
Maybe you can work out a table and pass the Unicode scans through it to convert to an ANSI value? That's what I would do.

-- Jim - When is there going to be a release?
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 4th Jan 2015 18:00
sorry, not minus. Code ASC(cyr.symbol) = (real ASCII CODE - 255) ...

AGK 2 !
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 4th Jan 2015 18:45
Quote: "i mean if u useing img=LoadImage("Font.png")
use Print(img) on screen and see if it is <>0, means have a id."


Btw, when you try to load a nonexisting image, AGK2 will currently return an ID that makes you think the loading command found and successfully loaded an image.
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 5th Jan 2015 08:28
MikeHart, I use this font for display Cyrillic text and displays it.

AGK 2 !
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 8th Jan 2015 20:04
in general, I have tried in different languages and keyboard layouts.
Neither kind of character is not entered in the field. Neither Hebrew nor Arabic or Cyrillic, NOTHING.
I think it is a bug and it should always write. Since I bought AGK2 through steam, then I will write there. I'm tired of waiting for answers from the team AppGameKit and fixes.

AGK 2 !
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 8th Jan 2015 23:41
Can you make a small example and post it, please?

Onwards and sometimes upwards

Login to post a reply

Server time is: 2024-11-25 14:34:32
Your offset time is: 2024-11-25 14:34:32