mspak Posted September 22, 2011 Posted September 22, 2011 Hi, 1) I may suposed thath all visual componets tath comes with Delphi will works fine with unigui in web mode ? 2) Unigui translate to the equivalent for running in the web ? Thank ´s in advance. Marcelo Quote
JasonReid Posted September 22, 2011 Posted September 22, 2011 No, UniGui comes with its own (very comprehensive) set of controls including data-aware components, charts and syntax highlighting with the addition of some controls that don't exist in delphi. Quote
mspak Posted September 22, 2011 Author Posted September 22, 2011 Has Unigui a method to convert a previus proyect programed withouth unigui to unigui components ? Quote
rsanford Posted September 22, 2011 Posted September 22, 2011 I don't think the framework was designed to convert an existing VCL application to the UniGui (EXT JS) controls. You really need to reconsider your application design especially if targeting the web. Quote
JasonReid Posted September 23, 2011 Posted September 23, 2011 its easy enough to copy and paste controls onto a TUniForm and then View as text and change TButton To TUnibutton for example. Quote
ibandyop Posted September 25, 2011 Posted September 25, 2011 GExperts has a Replace Component Wizard Quote
Administrators Farshad Mohajeri Posted October 12, 2011 Administrators Posted October 12, 2011 Has Unigui a method to convert a previus proyect programed withouth unigui to unigui components ? There can be many differences so all conversion should be done manually. The easiest way is to open Form DFM file in an editor and replace all instances of say TEdit with TUniEdit. Quote
JaroB Posted January 9, 2012 Posted January 9, 2012 Are there a finite number of pairs of names for the conversion (like TButton <> TUniButton)? Is possibble create TUniEdit descendant with special convertion method or property for use in web (by your uniGui methodology)? Quote
Administrators Farshad Mohajeri Posted January 9, 2012 Administrators Posted January 9, 2012 What do you mean by "special conversion method"? Quote
JaroB Posted January 9, 2012 Posted January 9, 2012 What do you mean by "special conversion method"? like by AsInteger, AsFloat, AsHexadecimal... etc. for better access to values without individual change Text property: property AsInteger: Integer read GetInteger write SetInteger; ... function <editdesc>.GetInteger: Integer; begin if not TryStrToInt(Text, Result) then Result := 0; //may be raise exception ? end; procedure <editdesc>.SetInteger(Value: Integer); begin Text := IntToStr(Value); end; Quote
Administrators Farshad Mohajeri Posted January 10, 2012 Administrators Posted January 10, 2012 You create TUniEdit descendants and add any custom methods you like. Quote
Administrators Farshad Mohajeri Posted January 10, 2012 Administrators Posted January 10, 2012 Has Unigui a method to convert a previus proyect programed withouth unigui to unigui components ? There is no converter for this. Best practice is to manually convert a VCL project to uniGUI. Quote
JaroB Posted January 10, 2012 Posted January 10, 2012 Sorry, are there any insurmountable limitations on/during the transfer VCL or may not be used for some components? Thank you Quote
gm3h Posted January 13, 2012 Posted January 13, 2012 like by AsInteger, AsFloat, AsHexadecimal... etc. for better access to values without individual change Text property: property AsInteger: Integer read GetInteger write SetInteger; ... function <editdesc>.GetInteger: Integer; begin if not TryStrToInt(Text, Result) then Result := 0; //may be raise exception ? end; procedure <editdesc>.SetInteger(Value: Integer); begin Text := IntToStr(Value); end; of course you can make a descendant of TUniEdit to accomplish this. I myself, already make TUniXNumericEdit (to avoid name duplication if one day Farshad make TUniNumericEdit available to us). Several features I've made are: property: - IntValue - FloatValue - MinValue - MaxValue - DecimalSeparator/ThousandSeparator - DecimalPrecision - IntegersOnly well, not 100% optimized yet, but it works already. PS: I will not make this available to public before I get permission from Farshad. Quote
JaroB Posted January 14, 2012 Posted January 14, 2012 of course you can make a descendant of TUniEdit to accomplish this. I myself, already make TUniXNumericEdit (to avoid name duplication if one day Farshad make TUniNumericEdit available to us). Several features I've made are: property: - IntValue - FloatValue - MinValue - MaxValue - DecimalSeparator/ThousandSeparator - DecimalPrecision - IntegersOnly well, not 100% optimized yet, but it works already. PS: I will not make this available to public before I get permission from Farshad. OK, I understand. I have my own implementation like TPubEdit component as TEdit descentant with AsXXX properties and some enhancements like converters, autocomplete, long-hint, evaluation, focus colorize etc. but only target Windows or .NET; and I should try convert some properties convert to uniGUI, no more. if it allows the right/permisions/licence to add anything to the product uniGUI... Quote
gm3h Posted January 14, 2012 Posted January 14, 2012 OK, I understand. I have my own implementation like TPubEdit component as TEdit descentant with AsXXX properties and some enhancements like converters, autocomplete, long-hint, evaluation, focus colorize etc. but only target Windows or .NET; and I should try convert some properties convert to uniGUI, no more. if it allows the right/permisions/licence to add anything to the product uniGUI... yeah, there will abundant of problem converting component targeted for Windows to UniGUI. But it's still possible to simply add properties like xxx.AsYYYY. The only problem is only with 'visual'. You need JavaScript to change/add the visual of the component. About the rights/permissions, I think Farshad will gladly to allow you to make a descendant component of uniGUI component. But for license, AFAIK, until current version (0.88.931), uniGUI still free, and it still bound to the license of extJS (if you want to make it commercial). Quote
Administrators Farshad Mohajeri Posted January 14, 2012 Administrators Posted January 14, 2012 You can create your own components based on uniGUI controls. uniGUI license doesn't avoid this. Of course, like any other package you can only distribute your own code with your own license. uniGUI source code and binaries are subjected to uniGUI license terms. IOW, you can't distribute uniGUI code/binaries as an integrated part of your package. Quote
dionel1969 Posted January 14, 2012 Posted January 14, 2012 You can create your own components based on uniGUI controls. uniGUI license doesn't avoid this. Of course, like any other package you can only distribute your own code with your own license. uniGUI source code and binaries are subjected to uniGUI license terms. IOW, you can't distribute uniGUI code/binaries as an integrated part of your package. I read this a long time ago, and I just saw that is still there: YOU MAY NOT: i) Create derivative library, framework or similar works based on this beta; Is there any contradiction to your words??? Or is this applied to beta and not to alfa release??? I'm a little confused, because you can create just one component or create a set of component and in this case it will call a "library", for example: "UNIGUI Extension library for Medical Purporses". Quote
Administrators Farshad Mohajeri Posted January 14, 2012 Administrators Posted January 14, 2012 I read this a long time ago, and I just saw that is still there: Is there any contradiction to your words??? Or is this applied to beta and not to alfa release??? I'm a little confused, because you can create just one component or create a set of component and in this case it will call a "library", for example: "UNIGUI Extension library for Medical Purporses". It depends on how you interpret derivative work. We may need to make it more clear in license. By saying derivative library we mean a library which provides a similar functionality like uniGUI. For example, you may take uniGUI add some additions or modifications and distribute the whole package, including parts of or complete uniGUI binaries, under a different name. It is forbidden. The point here is simple. When you create a uniGUI extension library, you are allowed to distribute your own part of code/component/library. uniGUI binaries can only be distributed as an integrated part of an executable binary targeting end-users. Quote
dionel1969 Posted January 14, 2012 Posted January 14, 2012 It depends on how you interpret derivative work. We may need to make it more clear in license. By saying derivative library we mean a library which provides a similar functionality like uniGUI. For example, you may take uniGUI add some additions or modifications and distribute the whole package, including parts of or complete uniGUI binaries, under a different name. It is forbidden. The point here is simple. When you create a uniGUI extension library, you are allowed to distribute your own part of code/component/library. uniGUI binaries can only be distributed as an integrated part of an executable binary targeting end-users. Ok, I totally agree with you and the doubt is totally clarified. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.