Adham Posted June 12, 2016 Share Posted June 12, 2016 سلام عليكم انا عامل كومب بوكس انا عامل واحد اسمها ادهم ابي لما يحدد عليها يطلع له ايديت و لابل Link to comment
Abdul KariM Posted June 12, 2016 Share Posted June 12, 2016 "onClientGUIComboBoxAccepted" guiComboBoxGetSelected guiComboBoxGetItemText اذا كنت تظهر ليبل او ايدت guiSetVisible اذا كنت تقفل او تفتح guiSetEnabled Link to comment
Adham Posted June 12, 2016 Author Share Posted June 12, 2016 طيب ونا كيف اختفي الايديت الب الوحه؟ Link to comment
Abdul KariM Posted June 12, 2016 Share Posted June 12, 2016 زي الفنكشنات , وتستخدم true or false Link to comment
Adham Posted June 12, 2016 Author Share Posted June 12, 2016 يعني احط تحت الايديت العمله بالوحه وش؟ Link to comment
Abdul KariM Posted June 12, 2016 Share Posted June 12, 2016 والله مافهمت وش تقول , لاكن طلبك شوفه بردي الاول <> Link to comment
Adham Posted June 12, 2016 Author Share Posted June 12, 2016 انا عامل كومب بوكس و حاطط في اسم ادهم ابي لما حد يحدد اسم ادهم يجي له ايديت في الوحه بس ما موجده من الاول غير لما يحدد فقط Link to comment
Mr.CoR Posted June 12, 2016 Share 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 Link to comment
Adham Posted June 12, 2016 Author Share 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 ) Link to comment
Mr.CoR Posted June 12, 2016 Share Posted June 12, 2016 جربه طيب وشوفه شغال تمام ولا فيه بقات Link to comment
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