-
Posts
421 -
Joined
-
Last visited
-
Days Won
9
Content Type
Profiles
Forums
Events
Posts posted by rgreat
-
-
Selfhost + ngnix can be easier to set up and maintain.
- 1
-
Especially headless version (no GUI linux).
-
You can use self hosting service application.
-
-
Can you reveal your update policy on these themes?
-
UniFormCreate
Moved to UniFormShow and it's work. Thank you!
- 1
-
22 minutes ago, Sherzod said:
Why do you need this?
One possible solution I think:
procedure TMainForm.UniFormReady(Sender: TObject); begin with UniPanel1 do begin Caption := 'this is first line<br>this is second line'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; end;
UniPanel1.JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+UniPanel1.Caption+'");');
Error:
Cannot read property 'setHtml' of null
-
I need multiline caption to be positioned strictly by design.
Automatic word wrapping is done on wrong world.
I need <br> after comma here:
Below task is done by using TWO TUniLabels, which cause problems when i modify font size.
-
Caption:='this is first line<br>this is second line'; Caption:='this is first line'#13#10'this is second line';
Both approaches do not work.
-
4 minutes ago, Sherzod said:
You should use this approach at the moment I think:
Thanks. I already did something like this.
But it would be nice to have more direct approach to cell styles.
- 1
-
Workaround for someone who might be interested:
.mygrid div table td div{ text-align: center !important; } .mygrid div table td:nth-child(1) div{ text-align: left !important; } .mygrid div table:nth-child(1) td div{ text-align: center !important; } .mygrid div table:nth-child(2) td:nth-child(1) div{ text-align: right !important; }
And set grid LayoutConfig.Cls to 'mygrid'.
- 1
-
I managed to design this grid, but I can not set cell text alignment.
I cannot seems to currectly use Attribs.Style SG0DrawCell event.
procedure TMain.SG0DrawCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Attribs: TUniCellAttribs); begin Attribs.Font.Size:=10; Attribs.Font.Style:=[fsBold]; if ARow=0 then begin Attribs.Font.Color:=clBlack; end else begin if ACol=0 then begin Attribs.Font.Color:=rgb(0,32,96); Attribs.Color:=rgb(152,152,152); end else begin Attribs.Font.Color:=clBlack; Attribs.Color:=rgb(213,213,213); end; Attribs.Style.Style := 'text-align: center;'; // <- this like breaks all previous settings and does not seems to do anything itself. end;
Can someone give out example of setting cell styles through OnDrawCell event?
I would also like to know how to disable cell selection rectangle drawing.
-
5 hours ago, zhyhero said:
Try ajaxRequest.
Thank you.
It would be nice if this bug would be fixed, though.
-
On 9/6/2019 at 7:25 AM, Sherzod said:
Hi,
Can you make a simple testcase for this?..
procedure TMainForm.UniComboBox1RemoteQuery(const QueryString: string; Result: TStrings); var i: Integer; begin Result.Clear; for i:=1 to 9 do begin Result.Add(i.ToString); end; end;
1.
2.
Even if you change UniCombobox.Style to csDropDownList nothing will change.
ItemIndex will still be -1.
This make impossible to reliably select item in list unless you fallback to dirty tricks like adding ID in listbox item text.
-
Just now, Sherzod said:
Thank you.
Would you add that into UniStringGrid by default?
-
On 12/8/2019 at 4:46 PM, Sherzod said:
Hi,
Can you try with this config?:
procedure TMainForm.UniFormCreate(Sender: TObject); begin UniStringGrid1.JSInterface.JSConfig('bufferedRenderer', [false]); end;
Seems like it works as intended.
Thank you.
Would you add that into UniStringGrid by default?
-
On 12/5/2019 at 6:32 AM, Sherzod said:
Hi,
Can you please make a testcase for reproduce?
Thanks
Here you go.
-
1. Run http://127.0.0.1/ and click on second column cell.
2. Scroll with mouse wheel in bottom direction.
3. Result:
P.S. I only have UniGui 1.50.0.1480, though.
-
Easy way to get that behaviour is to use multi-line text in grid cells.
-
17 hours ago, d.bernaert said:
Want to see something, this is run on a mac:
Looks like "hello world" application.
Don't TMS Web Core have something real to show?
- 2
-
UniCombobox with remote query where you can only select items from list.
I'd like to get UniCombobox.itemindex working with remote query enabled. Not working for me now.
And also like to auto-revert user typed input when i exit UniCombobox if no item is selected.
So to summarise i'd like to have UniCombobox with csDropDownList itemindex behaviour but with option to search through it like on csDropDown+remote query.
-
-
-
1 hour ago, Sherzod said:
We will try to analyze.
Thank you.
Also i use this code to make captions to look good:
UniSession.SetStyle('.myCpt{word-wrap: break-word; white-space: pre-line;}'); for i:=0 to DBG1.Columns.Count-1 do begin DBG1.Columns[i].Title.Caption:='<span class="myCpt">'+DBG1.Columns[i].Title.Caption+'</span>'; end;
And maybe that's not the best way to make caption word wrap.
Row select marks the selected cel
in General
Posted
Solution does not work in "crisp" theme.
Help?
Trying something like:
.testgrid .x-keyboard-mode .x-column-header.x-column-header-focus .x-column-header-inner:before { border: none; }
And variants...