pro_imaj Posted January 15, 2017 Share Posted January 15, 2017 Merhaba; Form açıldığın bir Combobox ile para birimi seçtiriyorum ve aşağıdaki kod satırı işliyor, fakat hiçbir değişiklik olmuyor! Aşağıdaki aynı kodu form create edilirken uyguladığımda sorunsuz çalışıyor. UniFormattedNumberEdit.FormattedInput.CurrencySign := '€'; Bu sorunu nasıl çözebilirim. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 15, 2017 Administrators Share Posted January 15, 2017 Evet doğru, uniGUI'de tüm özellikleri runtime esnasında değiştirmek mümkün değil. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 16, 2017 Author Share Posted January 16, 2017 Evet doğru, uniGUI'de tüm özellikleri runtime esnasında değiştirmek mümkün değil. Bir fatura kesiyorsunuz diyelim, faturanın para birimini değiştirmek istediğinde görüntüyü değiştirmem gerekiyor. Script yardımıylada mı olmaz? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16, 2017 Share Posted January 16, 2017 Merhaba, procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniFormattedNumberEdit1 do if FormattedInput.ShowCurrencySign then begin FormattedInput.CurrencySign := '€'; with JSInterface do begin JSAssign('uniFmtObj.aSign', [FormattedInput.CurrencySign]); JSCallGlobal('var el='#1';var inputEl=el.inputEl;if(inputEl) inputEl=$("#"+el.inputEl.id); '+ 'if(inputEl) inputEl.autoNumeric', ['update',JSObject('aSign:el.uniFmtObj.aSign')]); end; end; end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 16, 2017 Administrators Share Posted January 16, 2017 Çözüldü. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 16, 2017 Administrators Share Posted January 16, 2017 Sonraki sürümde entegre edilecek. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 16, 2017 Author Share Posted January 16, 2017 Merhaba, procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniFormattedNumberEdit1 do if FormattedInput.ShowCurrencySign then begin FormattedInput.CurrencySign := '€'; with JSInterface do begin JSAssign('uniFmtObj.aSign', [FormattedInput.CurrencySign]); JSCallGlobal('var el='#1';var inputEl=el.inputEl;if(inputEl) inputEl=$("#"+el.inputEl.id); '+ 'if(inputEl) inputEl.autoNumeric', ['update',JSObject('aSign:el.uniFmtObj.aSign')]); end; end; end; Teşekkürler sorunsuz çalıştı. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 16, 2017 Author Share Posted January 16, 2017 Sonraki sürümde entegre edilecek. Teşekkürler çok iyi oldu. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 20, 2017 Author Share Posted January 20, 2017 Güncellemeyle gelmiş, herkes için çok iyi bir ihtiyaç çözülmüş oldu. Teşekkürler. 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.