Maksoud Posted June 22, 2016 Share Posted June 22, 2016 السلام عليكم و رحمة الله و بركاته سويت لوحة بها جريد ليست و اديت بدى لما احدد رو بالجريد ليست يجيبه بالاديت شكرا مقدما Link to comment
Abdul KariM Posted June 22, 2016 Share Posted June 22, 2016 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemText guiSetText Link to comment
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 function selectAdmin ( ) if ( guiGridListGetSelectedItem ( AdminsList ) ) then local theAdminName = guiGridListGetSelectedItemText ( AdminsList ) guiSetText(AdminNameEdit,theAdminName) end end addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) ممكن تصحيح ؟ Link to comment
Mostafa MohammeD Posted June 22, 2016 Share Posted June 22, 2016 function selectAdmin ( ) if ( guiGridListGetSelectedItem ( AdminsList ) ) then local theAdminName = guiGridListGetSelectedItemText ( AdminsList ) guiSetText(AdminNameEdit,theAdminName) end end addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) ممكن تصحيح ؟ function selectAdmin ( ) if ( guiGridListGetSelectedItem ( AdminsList ) ) then local theAdminName = guiGridListGetItemText ( AdminsList ) guiSetText(AdminNameEdit,theAdminName) end end addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) جرب هيك Link to comment
iMr.SFA7 Posted June 22, 2016 Share Posted June 22, 2016 function selectAdmin() if (guiGridListGetSelectedItem ( AdminsList ) ~= -1) then local theAdminName = guiGridListGetItemText(AdminsList, guiGridListGetSelectedItem ( AdminsList ), 1) if theAdminName and theAdminName ~= '' and theAdminName ~= ' ' then guiSetText(AdminNameEdit,theAdminName) end end end addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) سطر 3 تأكد أن الكولمن هو رقم واحد اذا ماكان رقم واحد بدل الرقم Link to comment
Abdul KariM Posted June 22, 2016 Share Posted June 22, 2016 (edited) addEventHandler( "onClientGUIClick", resourceRoot, function( ) if source == Grid then local Sel_ = guiGridListGetSelectedItem ( source ) if Sel_ and Sel_ ~= -1 and Sel_ ~= "" then local Text = guiGridListGetItemText ( source, Sel_ , 1 ) -- بدل رقم 1 بالكولمن الي تبي تجيب التكست حقه guiSetText ( YourEdit , Text ) end end end ) Edited June 22, 2016 by Guest Link to comment
' A F . Posted June 22, 2016 Share Posted June 22, 2016 addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == YourGridlist ) then if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) else guiSetText ( YourEdit , "" ) end end end ) بدل الـ YourGridlist = متغير القريد ليست الي عندك YourEdit = متغير الايديت الي عندك Link to comment
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == YourGridlist ) then if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) else guiSetText ( YourEdit , "" ) end end end ) بدل الـ YourGridlist = متغير القريد ليست الي عندك YourEdit = متغير الايديت الي عندك مشكووور Link to comment
' A F . Posted June 22, 2016 Share Posted June 22, 2016 addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == YourGridlist ) then if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) else guiSetText ( YourEdit , "" ) end end end ) بدل الـ YourGridlist = متغير القريد ليست الي عندك YourEdit = متغير الايديت الي عندك مشكووور العفو حياك الله 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