Quantcast
EditBox for numbers? - ESOUI
Thread Tools Display Modes
07/12/21, 04:44 PM   #1
rp12439_3
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 41
EditBox for numbers?

Hi there,

is there a way to enable an editbox only for numbers?

I cant find a lot about "textType".

My sources:
https://wiki.esoui.com/UI_XML#EditBox

Thanks!
  Reply With Quote
07/12/21, 05:02 PM   #2
rp12439_3
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 41
ive done it with lua tonumber() and checked if the result is number
  Reply With Quote
07/13/21, 01:38 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,687
Use the forum search please:
https://www.esoui.com/forums/showthr...T_TYPE_NUMERIC

Another source would be e.g.
LibAddonMenu-2.0 -> controls -> edit widget
There is a setting to enable only numeric and I think it's a standard ZOs part of the editbox.

Code:
textType = TEXT_TYPE_NUMERIC
TextTypes can be found in the ESOUIDocumentation_Pxx.txt file at teh API versions:
https://wiki.esoui.com/APIVersion#live_API_version
-> Link "API TXT Documentation:"

If you search within the ESOUI source code then for the texttype constants you will find examples in ZOS code.
https://github.com/esoui/esoui/blob/...ialog.lua#L615

btw:
Instead of creating forum threads for such simple questions join us here:
https://gitter.im/esoui/esoui

Last edited by Baertram : 07/13/21 at 01:42 AM.
  Reply With Quote
07/13/21, 02:40 AM   #4
rp12439_3
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 41
Hi there,

I did search the forum and the wiki and did not find anything specific about the texttype. The according page in the wiki "EditBox" "textType" did not exist. The forum posting about editbox are useless and in parts wrong.

I created the posting for other people to find better results with the same question. There are so many locations to search for everything and find nothing. I allways do this for some hours and after this i create a posting.

btw. joined gitter, thx for hint

Last edited by rp12439_3 : 07/13/21 at 03:02 AM.
  Reply With Quote
07/13/21, 02:48 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,687
Originally Posted by rp12439_3 View Post
The forum posting about editbox are useless and in parts wrong.
From the link I had found via the forum search, 3rd comment by merlight:

https://www.esoui.com/forums/showpos...86&postcount=3
I do not see any wrong information here

And to ease the searches I have provided you the gitter chat, just come there and ask and we are glad to help.
btw: You are also able to change the wiki so add the info as example at the right to the tutorials or the howtos.
I've prepared a new entry for you, feel free to add the editbox XML stuff you found out that works etc.
https://wiki.esoui.com/How_to_use_ed...ric_input_only
Thanks

Last edited by Baertram : 07/13/21 at 02:59 AM.
  Reply With Quote
07/13/21, 03:06 AM   #6
rp12439_3
AddOn Author - Click to view addons
Join Date: Jun 2021
Posts: 41
Originally Posted by Baertram View Post
From the link I had found via the forum search, 3rd comment by merlight:

https://www.esoui.com/forums/showpos...86&postcount=3
I do not see any wrong information here

And to ease the searches I have provided you the gitter chat, just come there and ask and we are glad to help.
btw: You are also able to change the wiki so add the info as example at the right to the tutorials or the howtos.
I've prepared a new entry for you, feel free to add the editbox XML stuff you found out that works etc.
https://wiki.esoui.com/How_to_use_ed...ric_input_only
Thanks
thx! i searched for editbox i will add the texttype info to the wiki.

i am at gitter now
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » EditBox for numbers?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off