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. 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. 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? 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; 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ü. 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. 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ı. 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. 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now