Search the Community
Showing results for tags 'color'.
-
grdWorkSheet.ClientEvents.UniEvents.Clear; MyScript:= 'pagingBar.afterCreate=function pagingBar.afterCreate(sender)'+ '{ '+ ' sender.add( '+ ' [ '+ ... ' { '+ ' xtype: ''tbseparator'' '+ ' }, '+ ' { '+ ' xtype: ''label'', '+ ' id: "gridLabelid", '+ ' text: ''abc'', '+ ' color: ''red'', '+ ' margin: ''0 0 0 10'', '+ ' }, '+ ' { '+ ' xtype: ''tbseparator'' '+ ' }, '+ ... ' ]); '+ '} '; grdWorkSheet.ClientEvents.UniEvents.Add(MyScript); I tried color: 'red' which compiles and runs without error but does not change the label's text color, please advise - thanks.
-
Hi master: thanks for your help. why am i not use the dgRowSelect props? because, when it opend, when i enter data, the input focus/cell will jump to other cells. means the gridview will be changed. If i want to use the below code ,how to coding it ? original image.rar
-
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'; } },
-
At RUNTIME, i would like to REMOVE "background-color" and "color" properties from the element. Here's why. If I am editing a field (tuniEdit), I change the background and foreground color to something specific so the user knows the field is EDITABLE. Once the user saves the record the TuniEdit should go back to the ORIGINAL background/font colors, based on the theme. So, I figured, if i could REMOVE the "color" and "background-color" from the ELEMENT, then it would revert back to the THEME colors for the TuniEdit. How can I do this? Thanks DAvie
-
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.
-
there is no color select component for mobile Maybe there are ways how to use other (third) components for color selection?
-
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 ...
-
Есть небольшой проект (пример), как использовать стандартный uniComboBox для выбора цвета с помощью готовых констант TAlphaColor. Но есть и проблема: не получается правильно установить и перерисовать цвет программно. Для воспроизведения выберите в списке какой-нибудь текст, а потом нажмите кнопку Установить (красный) цвет. Буду благодарен, если подскажите, что и где дописать/переписать, чтобы можно было и программно устанавливать цвет в TuniComboBox. UniGUI_ColorComboBox.zip
-
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;
-
Hello, how do I change the background color of a button? The TuniSpeedButton component has the Color option, however, the selected color does not. Thank you.
-
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:
-
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
-
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
-
Hello, how do I set the color of a button, regardless of the theme used? can be "uniButton" or "uniBitBtnButton" Leandro
-
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?
-
- 1 reply
-
- tunistringgrid
- color
-
(and 1 more)
Tagged with:
-
If you run the Demo, go to the drag/drop file upload function. You will see a nice place to drag/drop. Now change the font to uni carbon (something very dark). You will notice that the drag/drop upload area is almost impossible to read because the font is still black. It SHOULD have used the THEME coloration. Right? Now if you take the component and use "ButtonVisible:=True" then it DOES honor the them coloration. I noticed this because I happen to like the darker themes. It uses less battery to power the display (i think). The second issue is about the drag drop giving me "Error: Please Select A File" message after I drop a file. I've got many firefox browsers and it works on most of them. Version 52 is the one that it gives me the error. I know it's older, but a lot still use it. I was wondering if there was a way to look at the code to see if you could make it work for FF52. If not, I understand. Davie
- 11 replies
-
- tunifileuploadbutton
- font
-
(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"} } ]; }
-
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?
-
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
-
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:
-
-
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:
