[Iup-users] How to create a text box that allows 3 characters only
Steven Mak
tcmak at yahoo.com
Wed Dec 19 07:31:37 GMT+3 2007
Hi,
How to create a textbox which only permits a user enter no more than 3 characters?
_text_ip_1 = IupText("myaction");
IupSetAttribute(_text_ip_1, IUP_SIZE, "30");
Also, I read from the document that "Width in 1/4's of the average width of a character for the current FONT of each control.". I didn't get it. What is the proper way to set the size of the textbox to cater 3 characters? Is there any example on this?
I didn't set any FONT attribute. How I retrieve the FONT size?
Thank you,
Steven
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.luaforge.net/pipermail/iup-users/attachments/20071219/628b509a/attachment.html
More information about the iup-users
mailing list