Jump to content
uniGUI Discussion Forums

gerardocrisci

uniGUI Subscriber
  • Content Count

    88
  • Joined

  • Last visited

  • Days Won

    2

gerardocrisci last won the day on October 6

gerardocrisci had the most liked content!

Community Reputation

18 Good

About gerardocrisci

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location
    Italy

Recent Profile Visitors

185 profile views
  1. gerardocrisci

    I think my requests are not useful.

    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.
  2. gerardocrisci

    I think my requests are not useful.

    I await your news. Grazie
  3. gerardocrisci

    I think my requests are not useful.

    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.
  4. gerardocrisci

    Is it possible to create a project without setting up a theme?

    is it possible to do this? does this seem like a stupid request? do you want to give more freedom of personalization?
  5. gerardocrisci

    dbgrid Columns proposed increase DisplayFormat property

    Hi Pep, I hope my code will help you e I hope that Farshad Mohajeri will consider this solution.
  6. gerardocrisci

    Is it possible to create a project without setting up a theme?

    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
  7. gerardocrisci

    Is it possible to create a project without setting up a theme?

    Is it possible to have a project without a theme set? is it possible to set the variables ( .unigui_theme ) with a procedure?
  8. 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
  9. gerardocrisci

    How I can create new or modify existsing theme?

    solution? thank you
  10. gerardocrisci

    How I can create new or modify existsing theme?

    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
  11. gerardocrisci

    How I can create new or modify existsing theme?

    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. gerardocrisci

    dbgrid Columns proposed increase DisplayFormat property

    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.
  13. gerardocrisci

    dbgrid Columns proposed increase DisplayFormat property

    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
  14. gerardocrisci

    dbgrid Columns proposed increase DisplayFormat property

    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
  15. gerardocrisci

    dbgrid Columns proposed increase DisplayFormat property

    I think the problem can be solved http://forums.unigui.com/index.php?/topic/8468-tfloatfield-ongettext-no-display-in-grid/
×