Bektas Posted May 8, 2021 Share Posted May 8, 2021 bir global sayi(integer) değişkenim var. Sayi değişince, buton1 ve label1 objelerin renginin, değişmesini istiyorum. sayi=1 olunca kırmızı buton rengi sayi=0 olunca gri buton rengi bu işlem delphi kodları ile nasıl yapılır? bu işlem javascript fonksiyonu ile nasıl yapılır? Version:1.90.0 build 1547 kullanıyorum. Teşekkürler Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 8, 2021 Share Posted May 8, 2021 Merhaba Hangi surumu kullaniyorsunuz? Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 8, 2021 Author Share Posted May 8, 2021 2 hours ago, Bektas said: butonVersion:1.90.0 build 1547 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 9, 2021 Share Posted May 9, 2021 Merhaba Bu sayiyi nerden degistiriyorsunuz? Kullanici web tarafindan mi degistiriyor yoksa server birseyleri kontrol edince mi degisiyor? Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Author Share Posted May 10, 2021 On 5/8/2021 at 6:09 PM, Bektas said: form içinde global değişkenim var . bu değişken belli şartlarda delphi kod içinde değişiyor. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 10, 2021 Share Posted May 10, 2021 Merhaba Client tarafindan bir istek gelmedigi surece, client tarafini degistiremezsiniz. Onerim bir unitimer koyup bunu kontrol etmeniz. Quote Link to comment Share on other sites More sharing options...
Bektas Posted May 10, 2021 Author Share Posted May 10, 2021 1 hour ago, Hayri ASLAN said: Merhaba Client tarafindan bir istek gelmedigi surece, client tarafini degistiremezsiniz. Onerim bir unitimer koyup bunu kontrol etmeniz. Client tarafı değişimi istemiyorum client tarafı global değişkenim durumuna göre buton rengini gösterecek. Quote Link to comment Share on other sites More sharing options...
sinanaydin Posted May 20, 2021 Share Posted May 20, 2021 if Sayi =1 then label1.color:=clred; butonlarda tema olduğu için javascript ile yapmanız gerekir servermodule.Customcss .btnyesil { background:#009900; !important; color:#009900 !important; -webkit-transition: background 0.5s ease-in-out; transition: background 0.5s ease-in-out; } .btnkirmizi { background:#CC3300; !important; color:#660000 !important; -webkit-transition: background 0.5s ease-in-out; transition: background 0.5s ease-in-out; } if Sayi=2 then button1.ClientEvents.ExtEvents.values['added'] := 'function added(sender, container, pos, eOpts) {sender.addCls("btnkirmizi");}'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.