Search the Community
Showing results for tags 'color'.
-
I have a need to use the colour of the CheckBox tick to indicate a particular status where one can change its colour at runtime (not CSS) - please advise - thanks.
-
Есть небольшой проект (пример), как использовать стандартный uniComboBox для выбора цвета с помощью готовых констант TAlphaColor. Но есть и проблема: не получается правильно установить и перерисовать цвет программно. Для воспроизведения выберите в списке какой-нибудь текст, а потом нажмите кнопку Установить (красный) цвет. Буду благодарен, если подскажите, что и где дописать/переписать, чтобы можно было и программно устанавливать цвет в TuniComboBox. UniGUI_ColorComboBox.zip
-
there is no color select component for mobile Maybe there are ways how to use other (third) components for color selection?
-
Hi all, With following code changed Form window. I would like to change also Close button color from white to black. Any idea how to solve this issue? Thanks in advance. Marko Delphi 10.3 rio, UniGui: 1.90.0.1550 with Fstate.WebForm.JSInterface do begin JSAddListener('afterrender', JSFunction('sender','var me=sender; '+ 'me.header.el.setStyle({"background-color": "silver"}); '+ 'me.header.el.setStyle({"background-image": "none"}); '+ 'me.header.titleCmp.el.setStyle({"color": "black"}); '+ 'me.el.setStyle({"border": "solid 1px silver"}); '+ 'me.el.setStyle({"background-color": "silver"});')); JSConfig('baseCls', ['x-panel']); end;
-
Good afternoon, I would like to change the colors of the buttons of a mobile Upload Dialog as well as the text "browse" (of one button), which seems also to be standardized. Can anyone help me with the CSS and the Delphi Calls, I need? Thanks a lot in advance.
- 9 replies
-
- unimfileupload
- mobile
-
(and 2 more)
Tagged with:
-
Hello , I have a variable in number format. I have a button and a label object. When my variable is 1, the background color of the button and font color of the label will be green. When my variable is 2, the background color of the button and font color of the label will be red. How can I do these codes in Delphi and Javascript? My Version is 1.90.0 build 1547 TUniSpeedButton *offline1; offline1->Down=true; //not working offline1->Color=(TColor)0x003FEC89; // not working they are very simple things but They do not work properly. Where am I making a mistake? Thanks C.BEKTAS
-
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
-
I have the following code: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniButton1.Color := clRed; end; However the button color does not change. How can I change the background color?
-
I have a MainForm which contains a TUniLabel called lblHeader. In my external CSS file I have the following: .lblHeader { color: red !important; } Now if I don't have the !important the red color does not get applied to the label. The issue I have is I need to in code to be able to change the color of the label from red to blue in code. I tried the following code but it did not work: lblHeader.JSInterface.JSCode(#1'.setStyle("color","blue");'); The above does work if I remove the !important for the red but the color red doesn't get applied. I also tried: lblHeader.JSInterface.JSCode(#1'.setStyle("color","blue !important");'); But this does not work. How can I get the label to change from red to blue at runtime?
-
How do I change the color of pagecontrol's tab, text and close icon? moving here I managed to change the color, but I am not in the whole tab, only a part .... this using the class x-tab-wrap: background-color ...
-
i have a pagecontrol component in a separate unit set as frame. the mainmodule of the application has the theme set but the page control tabs are not changing their color. does anyone know why this is so? thanks!
- 1 reply
-
- pagecontrol
- theme
-
(and 1 more)
Tagged with:
-
Good Morning, I'm trying to change the color of the field when I get focus, I can not. Could you send me an example of how to do it. Thank you very much Amaro
-
How to change the color of the button? In the web version I use the css below, but on the mobile does not work? function beforeInit(sender, config) { config.cls='btAzul'; } .btAzul { width:120px; height:30px; background: #1E90FF; border: 5px solid #1E90FF; /* borda branca em volta */ margin: auto; /* centraliza com bordas automáticas nas laterais */ text-align: center; /* centraliza o texto */ font-family: Source Sans Pro; /* fonte */ font-size: 16px; /* tamanho da fonte */ color: #1E90FF; /* cor fonte */ border: 1px solid #ccc; border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25); border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-bottom-color: #b3b3b3; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05); }
- 24 replies
-
- unimbutton
- color
-
(and 1 more)
Tagged with:
-
I am trying to have custom colors on custom template - please advise - thanks. config.itemTpl = new Ext.XTemplate ( { '<table class="gridCustom">'+ '<tr>'+ '<td width="269px" style="color: var({[this.getColor(values)]}); text-align:left; height:80%">{[this.getStreet(values)]}</td>'+ '<td width="60px" style="text-align:left; height:80%">{[this.getNAH(values)]}</td>'+ '</tr>'+ '</table>', { getColor: function(values) { if(values[3] == 1) return 'blue'; else return 'black'; } },
-
Hi everyone, how do I change the background color of Hint? In normal Delphi, I use the command: application.hintColor : = clYellow ...and it gets ok. But in uniGUI this command is not working. Thank you
- 2 replies
-
- background
- color
-
(and 1 more)
Tagged with:
-
I want to set the Bar Brush Color on a Chart BarSeries - please advise - thanks. My Delphi code:- UniBarSeries1.Title:= 'Processed'; UniBarSeries1.XLabelsSource:= 'DepartmentName'; UniBarSeries1.YValues.ValueSource:= 'ServicedCalls'; UniBarSeries1.YValues.Brush.Color:= clBlue; this is what I want to achieve but no such property - FAILS ? UniBarSeries1.DataSource:= UniMainModule.DataSource1; My Ajax Code (copied from pie example - FAILS ?): function chart.beforeInit(sender, config) { config.series = [ { type: "bar", highlight: true, renderer: function(sprite, record, attr, index, store) { return Ext.apply(attr, { fill: ["#bdea74", "#36a9e1", "#ff5454", "#fabb3d", "#efe767"] [index%5] I will need Blue and Red for now }); }, showInLegend: true, style: { stroke: 'white', lineWidth: 2 }, field: "A", label: {field: "LL"} } ]; }
-
Hello good afternoon, I would like to know how to change the font and colors of a dbgrid line at run time. for example, if any field in the dataset is of a format to change the color of the dbrid. Best regards Anderson Manoel Ribas Brazil
-
-
Alguien sabe como colorear un renglón seleccionado de un TUniStringGrid ?
-
- UniStringGrid
- SelectedRow
-
(and 1 more)
Tagged with:
-
Hello, how do I set the color of a button, regardless of the theme used? can be "uniButton" or "uniBitBtnButton" Leandro