Jump to content

gerardocrisci

uniGUI Subscriber
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by gerardocrisci

  1. Ciao With extjs from version 4 to version 6.7 there is an example of how to create with a simple personalized "Data Store" for a grid that recovers data without pagination (ver 7.0 does not show the page). https://examples.sencha.com/extjs/6.7.0/examples/classic/grid/buffered-store.html This is the property of the grid that many have been waiting for for many months. Is this difficult to implement for at least non-editable grids? It would seem easy .... just create the right store.proxy.url or better make it respond with that range of data. Someone tried to use it. I ask Farshad Mohajeri: if "Buffered" for WebOptions refers to this.? And when does it still take to make it happen? I'm sorry to insist but this option is important to me. Thank you
  2. thanks for your sample video .. great job ..you are very good I also managed to add voice recognition to my project .. unfortunately .. usable well only on chrome (I can give the essential commands with reference to the actions .. I can't simulate the movement keys .. example the "tab"). I thank you for sharing your idea. PS: in your video "Unigui view office files online" do you use an iframe with a link to Google Docs Viewer?
  3. my notebook has some problems, can I temporarily install my license on another pc? Can I use uniGUI on two PCs for my own use? Thank you for your work.
  4. Ciao Stemon63 Io mi sono limitato a segnalare limiti della libreria che non posso modificare da solo, alle volte perché mi mancano sorgenti di unit di componenti che penso che dovrebbe distribuire ( es. uniImageList.pas) In particolare ho chiesto modifiche per la distribuzione di progetti e la personalizzazione ( per me troppo bloccata per un uso Web). Ci sono problematiche - su Combo con remotequery, - con gli items di TreeMenu, - con una diversa gestione del tasti direzione e scroll del dbgrid - o auto-paginazione nelle griglie del numero di righe visibili (senza lasciare spazzi vuoti o andare oltre al box visibile della griglia), - bloccare i form nello spostamento fuori dalla visualizzazione del browser, - l'uso del tasto "tab" che quando un Form in showmodal può accedere al form sottostante ... eccetera eccetera. tradotto: Hi Stemon63 I limited myself to reporting library limits that I can not modify alone, sometimes because I miss component unit sources I think it should distribute (eg uniImageList.pas) In particular I asked for changes to the distribution of projects and personalization (for me too blocked for Web use). There are problems - on Combo with remotequery, - with the items of TreeMenu, - with a different management of the direction and scroll keys of the dbgrid - or auto-pagination in the grids of the number of visible lines (without leaving empty spaces or going beyond the visible grid box), - blocking the forms when moving out of the browser view, - the use of the "tab" button that when a Form in showmodal can access the form below ... etc. and so on.
  5. Maybe I do not have much luck with this forum. I have made requests to develop or modify some features, but I have not had any answers, weeks have passed and even months have passed. It would be enough to write that: "your requests are not useful and will not be made". However, I asked them to improve the usability of UniGui. Request No. 1: If you use OnGetText for a field to automatically force the format of the relative column string in a DBGrid. Many have complained about how to use DisplayFormat. This would have helped. http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-568 Request No. 2: Create a UniNativeImageList that contains the names of the icons or the links. I do not want to load all these files into UniNativeImageList as images, creating a large dfm. It is more useful to have stored the name or the url of an image. I do not have the sources of uniImageList.pas and therefore be able to create my TUniImageListUrls. Even if I have paid the "uniGUI Complete - Professional Edition" version, it includes the component sources and I should also have that of the unit uniImageList.pas. http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-449 Request No. 3: I would like to create myself a setting of my theme, as is generally done for websites, by lynching the css files. But this is not possible. Unigui, I do not know why, even if I do not express the name of a theme requires that of default. I asked to use a configuration without recalling a theme, and also to publish the procedure that allows to set some variables to build one. Logically lynching the various custom files of the css (UniServerModule.CustomFiles.Strings) is google translate that does not translate well from Italian? Can I have answers? Grazie.
  6. is it possible to do this? does this seem like a stupid request? do you want to give more freedom of personalization?
  7. Hi Pep, I hope my code will help you e I hope that Farshad Mohajeri will consider this solution.
  8. it is obvious that without a css file there is not a correct visualization. But I could create one on request or using UniServerModule.CustomFiles.Strings = ('files / my.css'). The problem is that the program always searches for a default theme. Another problem is setting the variables ( unigui_theme ). This gives the programmer the ability to customize a project at the request of the user. is it possible to get this? Thank you
  9. Is it possible to have a project without a theme set? is it possible to set the variables ( .unigui_theme ) with a procedure?
  10. The theme is checked at the start of a unigui program, if it does not exist or is empty a standard theme is loaded. This operation takes for granted a fixed folder structure on the site and leaves little freedom of customization. TUniMainModule.Theme with empty value, or with a new property (ignore theme), program does not have to load any thema or it does not have to verify the presence of folders containing the files of a theme. You should have the specifications of the prodecure to set the variables in the initialization phase of the program .unigui_theme { border-left-width:? px; border-bottom-width:? px; window-header-height:? px; tab-header-height:? px; tab-border-width:? px; menu-band-height:? px; panel-header-height:? px; panel-header-width:? px; calendar-form-width:? px; calendar-form-height:? px; ... } ... It gives the possibility to the programmer to create a dynamic and customizable thema without necessarily creating a fixed scheme of folders and css files. I hope for your observation Thank you
  11. if I use an installed theme normally, example uni_classic, I have an url /unipackages-1.15/themes/css/uni-xtheme-uni_classic.css which contains the version of the UniPackages (1.15) ..... I created a theme and created the folders in the main path of the site so I set up UniServerModule.UniPackagesRoot = 'files\\' UniGUIMainModule.Theme = 'uni_mytheme' everything works well and I have a url like that /unipackages/themes/css/uni-xtheme-uni_mytheme.css but I always have a start url /unipackages/ I would like to change this fixed part today I would like to add my own version (to update the files) and have a url: /unipackages-v2/themes/css/uni-xtheme-uni_mytheme.css how can I do ? thank you
  12. if I use an installed theme normally, example uni_classic, I have an url /unipackages-1.15/themes/css/uni-xtheme-uni_classic.css which contains the version of the UniPackages (1.15) ..... I created a theme and created the folders in the main path of the site so I set up UniServerModule.UniPackagesRoot = 'files\\' UniGUIMainModule.Theme = 'uni_mytheme' everything works well and I have a url like that /unipackages/themes/css/uni-xtheme-uni_mytheme.css but I always have a start url /unipackages/ I would like to change this fixed part today I would like to add my own version (to update the files) and have a url: /unipackages-v2/themes/css/uni-xtheme-uni_mytheme.css how can I do ? thank you
  13. CAP - ZIP Code, codice postale es.Roma 00100 but in some databases the value is saved as an integer = 100 to get this, in case the field has a DisplayFormat or GetText I created this function function GetFieldUseDisplayFormat(Fld: TField): boolean; begin Result := false; if (Fld=nil) then exit; if ( Assigned(Fld.OnGetText) ) then Result := true else if Fld is TDateField then Result := (Fld as TDateField).DisplayFormat <> '' else if Fld is TTimeField then Result := (Fld as TTimeField).DisplayFormat <> '' else if Fld is TDateTimeField then Result := (Fld as TDateTimeField).DisplayFormat <> '' else if Fld is TCurrencyField then Result := (Fld as TCurrencyField).DisplayFormat <> '' else if Fld is TFloatField then Result := (Fld as TFloatField).DisplayFormat <> '' {$ifdef COMPILER_14_UP} else if Fld is TSingleField then Result := (Fld as TSingleField).DisplayFormat <> '' {$endif} {$ifdef COMPILER_11_UP} else if Fld is TExtendedField then Result := (Fld as TExtendedField).DisplayFormat <> '' {$endif} else if Fld is TBCDField then Result := (Fld as TBCDField).DisplayFormat <> '' else if Fld is TFMTBCDField then Result := (Fld as TFMTBCDField).DisplayFormat <> '' else if Fld is TNumericField then Result := (Fld as TNumericField).DisplayFormat <> '' end; I changed the line of the function GetFieldFormat(ACol: TUniBaseDBGridColumn; Fld: TField; var IsString: Boolean; var FType: string; DefaultFloatFormat: string =''): string; in the unit uniDBUtils Result := ''; FType := ''; IsString := True; if (ACol.ForceStringFormat) or GetFieldUseDisplayFormat(Fld) then // <-------- begin // it must be string end else if Fld is TDateField then I changed the line of the function TUniCustomDBGrid.GetCellData(const ColNo: Integer; var HasAttr: Boolean): TUniCellRecord; in the unit uniDBGrid else begin if GetFieldUseDisplayFormat(AField) then // <-------- begin if RawData then rValue := StrToJS(AField.DisplayText) else S := StrToJS(AField.DisplayText); end this variation created it every time I apply a version update.
  14. how do you not understand the usefulness? - in a vcl application it is possible to format a column. - in some databases the CAP is integer but is displayed with the forward zeros - in some cases you do not want to display zero ... but in its place a hyphen. - if you want to format the number of digits after the decimal point etc etc ... http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-568 I disagree with the visual result ... it can cause the original format to be lost to the field. I did a test ... always using the same code procedure TMainForm.ClientDataSet1LengthcmGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin Text:=FormatFloat('0.00',Sender.AsFloat); end; and the VCL and UniGui visualization is different... look at the image attached. I believe that UniGui is a great library and is used to bring your work on the web, keeping the operation more similar. Thanks and thanks again for your work. OnGetTextDiff.zip
  15. even if I insisted on having a simpler solution, today you have to write this code for the field's OnGetText method procedure TMainForm.DataSetMyFieldGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin Text:=FormatFloat('000000',Sender.AsFloat); end; But (if Farshad Mohajeri does not change his mind) his only works if you change the property in the column Column.ForceStringFormat =true Good job everyone
  16. I think the problem can be solved http://forums.unigui.com/index.php?/topic/8468-tfloatfield-ongettext-no-display-in-grid/
  17. All of this does not work in extjs 6. Does anyone have a solution? Thank you
  18. you can add a property to the style in TUniMenuItem (example RowCls) so you can set it directly node.data.rowCls = "...." Thank you the Enable property for TUniMenuItem does not set node.data.disabled. Thank you again.
  19. you can create an event on TUniNativeImageList OnGetImageIconCls (FImageIndex); OnGetImageDefaultUrl (FImageIndex); so you can change the results of the procedures Images.GetImageIconCls (FImageIndex); Images.GetImageDefaultUrl (FImageIndex); or you would need a documentation of how TUniNativeImageList is done to be able to inherit the functions to be changed.
  20. perfect. Grazie. I could not add a Listener, now I know how to do it. But there is a consideration: when I create a node that is not enabled, for example in dfm Dashborad1.Enabled = False because node.data.disabled has a value of false and always displays an active item .. is it a bug?
  21. hello Delphi Developer thanks for your answers I have created a different solution. Each node without an icon is transformed into a similar label Email1.ImageIndex := -1; UniTreeMenu1 > ClientEvents > UniEvents function beforeInit(sender, config) { config.tree.getItemConfig=function (node, parent) { var item = Ext.apply({ parentItem: parent.isRootListItem ? null : parent, owner: this, node: node, indent: this.getIndent() }, this.getDefaults()); if(node.data.iconCls==="x-tree-node-icon-blank"){ node.data.rowCls="nodolabel"; } return item } } and create a style .x-treelist-nav .nodolabel .x-treelist-item-text { color:#1b9; margin-left: 0px; } however the node must not be selectable. I can not disable it.
  22. do you have a solution? I at least know how to disable a node? Thank you.
  23. I have not found a satisfactory solution yet How was the menu that I see in the attached image created?
×
×
  • Create New...