KaduRo Posted May 9, 2014 Share Posted May 9, 2014 السلام عليكم label مثلآ يطلع لي في gridlist داخل row شباب , ابي إذا ضغطت على مثال ضغطت على كلام في رو يطلع لي في الليبل ! Link to comment
Mr-M3AND Posted May 9, 2014 Share Posted May 9, 2014 guiGridListGetItemText guiGridListGetSelectedItem guiSetText -- for Label Link to comment
KaduRo Posted May 9, 2014 Author Share Posted May 9, 2014 مكشور معاند بس عندي سؤال , مثلآ القريد ليست فيه سيارتين , وحده شرطة والثانية إسعاف , إذا ضغط على الشرطة , يطلع له بالليبل معلومات عن الشرطة , وإذا ضغط على ألاسعاف يطلع له معلومات عن الاسعاف , فشلون أستخدم guiGridListGetSelectedItem للسيارتين Link to comment
Mr-M3AND Posted May 9, 2014 Share Posted May 9, 2014 جرب هذي الطريقة addEventHandler ( "onClientGUIClick",root, function () if (source == Grid) then local row,col = guiGridListGetSelectedItem(Grid) if (row and col and row ~= -1 and col ~= -1 ) then local text = guiGridListGetItemText (Grid,guiGridListGetSelectedItem(Grid)) if text == 'Police Car' then guiSetText ( Label,"معلومات سيارة الشرطة" ) elseif text == 'Medic Car' then guiSetText ( Label,"معلومات سيارة الاسعاف" ) end end end end ) 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