Adham Posted June 12, 2016 Posted June 12, 2016 سلام عليكم انا عامل كومب بوكس انا عامل واحد اسمها ادهم ابي لما يحدد عليها يطلع له ايديت و لابل
Abdul KariM Posted June 12, 2016 Posted June 12, 2016 "onClientGUIComboBoxAccepted" guiComboBoxGetSelected guiComboBoxGetItemText اذا كنت تظهر ليبل او ايدت guiSetVisible اذا كنت تقفل او تفتح guiSetEnabled
Abdul KariM Posted June 12, 2016 Posted June 12, 2016 والله مافهمت وش تقول , لاكن طلبك شوفه بردي الاول <>
Adham Posted June 12, 2016 Author Posted June 12, 2016 انا عامل كومب بوكس و حاطط في اسم ادهم ابي لما حد يحدد اسم ادهم يجي له ايديت في الوحه بس ما موجده من الاول غير لما يحدد فقط
Mr.CoR Posted June 12, 2016 Posted June 12, 2016 طيب ونا كيف اختفي الايديت الب الوحه؟ لو تفتح الفانكشنات الي عطاهن لك عبد الكريم وتقرأهن احسن ، لان الفانكشن داخله كلام مهم جدا لازم تقراه على شان تعرف تستخدمه هذا الفانكشن bool guiSetEnabled ( element guiElement, bool enabled ) bool مكتوب فيه يعني تقدر تحطه true : اذا تبي تفعله false : اذا تبي تعطله This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events. واذا تبي تخفي او تظهر عنصر في اللوحه استخدم guiSetVisible
Adham Posted June 12, 2016 Author Posted June 12, 2016 صح كدا؟ addEventHandler("onClientGUIComboBoxAccepted",root, function() if ( source == combox ) then local item = guiComboBoxGetSelected(combox) local text = guiComboBoxGetItemText(combox, item) guiSetVisible(edit,true) end end )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now