EL-JoKeR Posted January 15, 2015 Share Posted January 15, 2015 اذا ابي احط صورة مكان الـ Wnd وش استخدم ؟ وهل اقدر اغير البوتن بصور ؟ Link to comment
# L 7 N Posted January 15, 2015 Share Posted January 15, 2015 اذا ابي احط صورة مكان الـ Wndوش استخدم ؟ وهل اقدر اغير البوتن بصور ؟ تقدر تستخدم صوره كـ نافذة ، وتقدر تستخدم كود يحول النافذة الى صوره هذا الكود: function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "img.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 50, 0, 400, 100, titleBarText2, false, mainBackground ) guiLabelSetColor ( mainBackgroundLabel, 255, 0, 0) guiSetEnabled ( mainBackgroundLabel, false ) guiBringToFront (mainBackground) return mainBackground end . بخصوص تغير الزر الى صوره تقدر تسوي صوره كـ زر Link to comment
EL-JoKeR Posted January 15, 2015 Author Share Posted January 15, 2015 شكرا لحن افدتني كتير طيب ازاي اغير البوتن إلي صور ؟ بس لما احط الماوس عليه يجي صوره تاني لما ابعد الماوس يجي صوره تانية ؟ Link to comment
# L 7 N Posted January 15, 2015 Share Posted January 15, 2015 شكرا لحن افدتني كتير طيب ازاي اغير البوتن إلي صور ؟ بس لما احط الماوس عليه يجي صوره تاني لما ابعد الماوس يجي صوره تانية ؟ حيآك الله ، تقدر تستخدم الصوره كـ زر يعني تسوي صوره بدل م تسوي زر واذ ظغط عليها ( كمل مودك )ء بخصوص طلبكك" 'onClientMouseEnter' -- اذ لمس الصوره guiStaticImageLoadImage -- تتغير الصوره 'onClientMouseLeave' -- اذ ابعد الماوس عن الصوره guiStaticImageLoadImage -- تتغير الصوره Link to comment
EL-JoKeR Posted January 15, 2015 Author Share Posted January 15, 2015 شكرا لحن افدتني كتير طيب ازاي اغير البوتن إلي صور ؟ بس لما احط الماوس عليه يجي صوره تاني لما ابعد الماوس يجي صوره تانية ؟ حيآك الله ، تقدر تستخدم الصوره كـ زر يعني تسوي صوره بدل م تسوي زر واذ ظغط عليها ( كمل مودك )ء بخصوص طلبكك" 'onClientMouseEnter' -- اذ لمس الصوره guiStaticImageLoadImage -- تتغير الصوره 'onClientMouseLeave' -- اذ ابعد الماوس عن الصوره guiStaticImageLoadImage -- تتغير الصوره شكرآ , اتمني ان اكون م ازعجتك يسلمؤؤو Link to comment
EL-JoKeR Posted January 25, 2015 Author Share Posted January 25, 2015 ضروري ابي كود اغير الزر لصورررررررة Link to comment
' A F . Posted January 26, 2015 Share Posted January 26, 2015 تفضل هاذا الكود يتم تغير جميع الازرار الى صورهه function guiCreateButton( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "img.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 50, 0, 400, 100, titleBarText2, false, mainBackground ) guiLabelSetColor ( mainBackgroundLabel, 255, 0, 0) guiSetEnabled ( mainBackgroundLabel, false ) guiBringToFront (mainBackground) return mainBackground end img.png -- اسم الصورهه ذذ 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