Jump to content

Roberto Nicchi

uniGUI Subscriber
  • Posts

    226
  • Joined

  • Last visited

Everything posted by Roberto Nicchi

  1. Hello. I use the CSS below to customize Tunitreeview Now the text for each note is aligned to the top, as you can see in this screenshot. I'd like the text is centered vertically. Thanks .menu .x-tree-icon { width: 32px; height: 32px; line-height: 32px; cursor: pointer; } .menu .x-tree-elbow-img { width: 18px; height: 30px; line-height: 32px; } .menu .x-tree-node-text { line-height: 24px; cursor: pointer; font: 600 12px/15px Segoe UI; } .menu .x-tree-view { background-color: #F0F0F0; } .menu .x-tree-view .x-grid-item { background-color: #F0F0F0; } .menu .x-tree-view .x-grid-item-alt { background-color: BlueViolet; } .menu .x-tree-view .x-grid-item-over { background-color: Aqua; } .menu .x-tree-view .x-grid-item-selected { background-color: Aquamarine; } .menu .x-tree-view .x-grid-item-focused .x-grid-cell-inner:before { border: none; }
  2. I changed the encoding code in sstream:=TStringStream.Create; try tnetencoding.base64.encode(astream,sstream); encodedimage:=sstream.DataString; finally sstream.free; end; but didn't help. Seems i have found the solution anyway: have to remove line breaks in the encoded text. encodedimage:=StringReplace(StringReplace(encodedimage, #10, ' ', [rfReplaceAll]), #13, ' ', [rfReplaceAll]); I only miss the possibility to resize the image but i can live without it ... for the moment. To set in HTML the image width helps. I see that if i set the width, the height is calculated automatically and the image is not stretched. htmltext:='<img width="300" src="data:image/jpeg;base64,'+encodedimage+'" />'; thanks for your help Roberto
  3. Hello, i have almost done it. I have an exception "Invalid or unexpected token" in the line UniSession.AddJS( Look at my code below. If i replace the encoding code with a constant encoded text (the one from your example) i see that the image (red dot) is correctly inserted into the htmlmemo So i guess there's a mistake in how i'm encoding the image. My code is wrong ? procedure TMainForm.UniFileUpload1Completed(Sender: TObject; AStream: TFileStream); var htmltext:string; encodedimage: String; sstream:TStringStream; begin sstream:=TStringStream.Create; try encodestream(astream,sstream); encodedimage:=sstream.DataString; finally sstream.free; end; // encodedimage:='iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='; htmltext:='<img src="data:image/jpeg;base64,'+encodedimage+'" />'; UniSession.AddJS(UniHTMLMemo1.JSName + '.execCmd(''InsertHTML'', '''+htmltext+''')'); end;
  4. Hello, i have checked the post but i'm afraid it's not what i need. The first and most important problem is that the image is not embedded into the html. The image is uploaded into a directory of the HD. I need the image is embedded into the html because the html will be used as a body for an email. Email that is sent using Indy. And, secondary, the image can't be resized after it's been displayed into the html memo thanks
  5. Would be useful if in a future version of UNIGUI you add a function in TuniHTMLMemo that allows to: 1) Insert an embedded image into the HTML (copy and paste would be great) 2) Resize the inserted image using mouse. thanks Roberto
  6. Hello @Sherzod, here you are attached the testcase. What i would like is to see in the grid the svg icon (16x16) in full size using the classic theme, now it's cut. If necessary the row height can be incrased. I'd like this is done using a general css that affects all the application. thanks Roberto Project1.zip
  7. Ok, seems i have solved chaing the HTML that comes from the memhtml and adding a tag to set the background. emailHtmlText:='<html><body style="background-color:white;">MemoHtmlText+'</html>
  8. Because the email created with this html is visualized by Mozilla Thunderbird in this way, and is not very fancy. I think that the background should be uniform (all white or all gray). thanks Roberto
  9. Hello, Using the crisp theme icons are displayed in full size into the grid: Using the classic theme icons are cut: I'm using svg icons (TUniNativeImageList) The css class for icon is defined like this .deleteIcon16 { background-size: 16px auto; background-image: url("files/icone/deleteIcon.svg"); } Is there a solution to avoid the icon is cut using the classic theme ? thanks in advance Roberto
  10. Hello, I have this problem. You can replicate with the demo application (htmlEd project) Inserte three lines in the memo. Change the background color of one line (the second in my test). The first and the third lines will have a white background and won't be transparent. Look below the HTML created by TuniHTMLMemo. The first line and the third line have background-color: rgb(255, 255, 255) that is white. Is it possible to avoid this happens ? I have tryed to set the htmlmemo.color property to clNone. Doesn't help. thanks Roberto Unigui ver. 1.90.0.1561 <span style="background-color: rgb(255, 255, 255);">Row 1</span><div style=""><span style="background-color: rgb(255, 0, 0);">Row 2</span></div><div style="background-color: rgb(255, 255, 255);">Row 3<br><div><b><br></b></div></div>
  11. Nevermind, i have uninstalled everything (my app and unigui runtime) and reinstalled. Now works. Roberto
  12. I have just tryed to deploy my application recompiled with 1.90.0.1561 (hyperserver) Of course i have installed also the unigui runtime that corresponds to that version. In the hyper_serve_exe folder i find a log file the contains the text below. The UNI folder doesn't exists. The application doesn't start. I see only the background image and the text LOADING in the upper/left corner. If can help in my apllication i use the following code to change where the application read the theme files. procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin self.UniPackagesRoot:=Tpath.combine(self.FilesFolderPath,'jsExt'); thanks Roberto hyper_service.exe: 00005480: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-ext.css hyper_service.exe: 00003518: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\autoNumeric\autoNumeric-1.9.35.js hyper_service.exe: 000047B0: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-treenode-plugin.js hyper_service.exe: 00005D10: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme-common.css hyper_service.exe: 000016F4: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\MaskedInput\jquery.inputmask.min.js hyper_service.exe: 0000520C: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-sync-min.js hyper_service.exe: 000055A0: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-unicommon-min.js hyper_service.exe: 00004698: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme-colors.css hyper_service.exe: 0000335C: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\jquery-1.11.2.min.js hyper_service.exe: 00002988: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme.css hyper_service.exe: 0000446C: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-unigui-min.js hyper_service.exe: 00000670: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-unicommon-min.js hyper_service.exe: 00000E64: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-sync-min.js hyper_service.exe: 00003CDC: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\jquery-1.11.2.min.js hyper_service.exe: 0000201C: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\MaskedInput\jquery.inputmask.min.js hyper_service.exe: 00000308: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\jQuery\autoNumeric\autoNumeric-1.9.35.js hyper_service.exe: 0000477C: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-treenode-plugin.js hyper_service.exe: 00000D08: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme-colors.css hyper_service.exe: 000057F8: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme-common.css hyper_service.exe: 00004464: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\css\uni-xtheme.css hyper_service.exe: 00005624: 14:19:37 [HandleFileRequest[127.0.0.1]]:File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\uni\ext-unigui-min.js
  13. Probably this is an old question but i can't find a topic in the forum. I see that the component allows to choose only 6 fonts. Is it possible to have all fonts installed ? Or add some fonts to the list ? thanks Roberto
  14. I have just tryed using the grid's refresh method and it solved the problem. I'm quiet sure i tryed it some time ago with no success. Probably i'm wrong or something has been changed in the meantime... thanks
  15. No i don't, have to ? I'll try asap. Anyway look the the example i have attached to the bug report. Does it work for you adding refresh ?
  16. I have tryed also with 1.90.0.1561. Same problem. Roberto
  17. @Hayri ASLAN i have double checked and it's not working with 1560. And the support ticket FSD-4116 is marked as OPEN. thanks
  18. Hi there @Hayri ASLAN Nothing about this thing ? I guess you have been able to reproduce the problem with my demo app. Thanks.
  19. The class of the form that is going to be opened with showmodal...
  20. Not sure to understand. The following code is wrong ? var frm:Taform; begin frm:= Taform.Create(uniguiapplication.UniApplication); frm.anEditControl.text := sometextvalue; frm.showmodal(procedure(sender:Tcomponent;res:integer) begin if res=mrOk then begin ....
  21. Unfortunately i can't try with Delphi 11. I have tryed your test app many times. I have changed the filter from SOUSCONTRAT = TRUE to SOUSCONTRAT = FALSE, have removed it and applyed it again. I have had no error.
×
×
  • Create New...