Jump to content

طلب


Recommended Posts

Posted

سلام عليكم

ابي اول م يكتب حروف او ارقام في الايديت

يزيد الـ ProgressBar

ولما يمسح الحروف من الايديت

ينقص الـ ProgressBar

Posted
On 3/5/2018 at 00:56, #\_oskar_/# said:

اظن ماينفع تكتب حروف ارقام فقط

 

قصدو لما يكون مسوي للأديت بوكس حد يعني مثلا 10 حروف

كل ما يكتب حرف او رقم يزيد نسبه البروجرس بار

addEventHandler("onClientGUIChanged", guiRoot,
	function()
		if source == yourEditBox then
			local text = guiGetText(yourEditBox)
			local textlength = string.len(text)
			local maxlength = guiGetProperty(yourEditBox, "MaxTextLength")
			local progress = (textlength/maxlength)*100
			guiProgressBarSetProgress(yourProgressBar, progress)
		end
	end
)

 

Chillin' with some demons, satans and vamps

Posted
guiEditSetMaxLength(yourEditBox, 100)
_Setprogress = function(_T)
guiProgressBarSetProgress(yourProgressBar,_T)
guiSetText (window,_T )
end

addEventHandler("onClientGUIChanged",yourEditBox,function()
local T_T = guiGetText(yourEditBox)
local _progress = guiProgressBarGetProgress(yourProgressBar)
if _progress >= 100 then
_Setprogress (string.len(T_T)) -- -
else
_Setprogress (string.len(T_T)) -- +
end
end, false)

هل تقصد كدا ؟ او انا فهمت غلط

 

TehLMGN.png?1

 

سبحان الله وبحمده سبحان الله العظيم

Posted
On 3/5/2018 at 23:15, KemoEgypt said:

م يزداد ال بروجرسر

guiSetProperty(yourEditBox, "MaxTextLength", عدد الحروف الي تباها)

ضيف الكود ذا تحت كود انشاء الأديت بوكس

Chillin' with some demons, satans and vamps

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...