Jump to content

AMIT

uniGUI Subscriber
  • Posts

    142
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by AMIT

  1. I need to change its color (Font and Background color) depending on the value it contains. Please help.
  2. I have the data that will be shown on the dbGrid. I need to highlight each cell which contains minus value. Is it possible to do this?
  3. Yes it has. But why does it display correctly when using HTML.LoadFromFile? What is the different?
  4. What is the different between uniURLFrame.HTML.LoadFromFile('UniServerModule.ServerRoot+'\html\myHTML.html'); and uniURLFrame.URL:='../html/myHTML.html'; ? I thought it should be the same but there is a problem. 1. Both are work fine when the HTML File (myHTML.html) contain english character only. 2. When the myHTML.html file contain non-english character there is a problem. using uniURLFrame.HTML.LoadFromFile('UniServerModule.ServerRoot+'\html\myHTML.html'); -> non-English Character display correctly. using uniURLFrame.URL:='../html/myHTML.html'; -> non-English Characters cannot be display (unreadable character display on the screen. Please help me to clarify this problem.
  5. How to get the Client Screen resolution?
  6. Farshad, Is this summary I made correct? CONDITION 1: Don't want to Install "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" on the Target Server 1. Set ExtRoot property of uniServerModule to ".\ext-4.2.1.883\" 2. Build the application. 3. Copy Application Folder to the Target server. 4. Copy C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883 folder to Application folder on Target Server 5. Copy C:\Program Files\FMSoft\Framework\uniGUI\uni-0.96.0.1068 folder to Application folder on Target Server the final Content of the Application Folder on the target Server will be D:\uniGUITestApp - \ext-4.2.1.883 - \cache - \files - \log - \temp - \uni-0.96.0.1068 - testapp.exe CONDITION 2: install "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" on the Target Server once. ( Once it was installed, we may uninstall it later. it will not necessary to copy "\uni-0.96.0.1068" to the Application folder even if it was uninstalled). 1. Set ExtRoot property of uniServerModule to blank (it will show [ext]\) 2. Build the application. 3. Copy Application Folder to the Target server. 4. Copy C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883 folder to Application folder on Target Server the final Content of the Application Folder on the target Server will be D:\uniGUITestApp - \ext-4.2.1.883 - \cache - \files - \log - \temp - testapp.exe
  7. Does it really require copying "uni-0.96.0.1068" folder to the application folder? I have on the 2 server. The one that I have problems and start asking you. I try many things on this server including install the "fmsoft_unigui_extjs_0.96.0.1068_setup.exe". Now I had uninstall it already. But it doesn't need to have "uni-0.96.0.1068" in the application folder. I had reboot this server and test it works fine. Now I copy this folder to the second server which have never install "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" before. I run the application, and from client pc try to access the web the problem still exist just only loading... show on the browser. Even I try to access the web locally using So I copied "uni-0.96.0.1068" folder to the application folder. The problem has gone. I'm so confuse. Can you explain me why?
  8. I get confuse but now it works and it's also not necessary to have "uni-0.96.0.1068" in the application folder. I had already uninstalled "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" too. By the way, thank you for your help.
  9. In the Application Folder. Let's say D:\TestApp has uniGUI Application I named as testApp.exe. In this folder it has ext-4.2.1.883 folder. D:\TestApp - \ext-4.2.1.883 - \cache - \files - \log - \temp - testapp.exe
  10. Farshad, I copied ext-4.2.1.883 and set ExtRoot->".\ext-4.2.1.883". The result is still the same. If I install "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" it works fine. So this means that we must install "fmsoft_unigui_extjs_0.96.0.1068_setup.exe" on the server. Now the next question I have is Will the old uniGUI app created with extjs 4.1.1 still be able to run properly?
  11. Dear Farshad, I create Standalone Application Mode name (TestWeb.exe). It works fine on the developing PC. I move the whole folder of TestWeb to Server (Win 7 x64 IP:192.168.1.10). And also copy ext-4.2.1.883 folder to server too. Running testweb, then try to access the web on client PC by typing I got only message loading.... on the browser nothing more. Question: 1. Just copying the ext-4.2.1.883 to the testweb folder is enough to run the app. 2. The folder name of extjs should be ext-4.2.1.883 or only ext. 3. I try to set the folder name to both ext-4.2.1.883 and ext, but it still be the same result. 4. Do I have to install fmsoft_unigui_extjs_0.96.0.1068_setup.exe on the server? 5. if the answer is yes in question 4, Will the old uniGUI app created with extjs 4.1.1 still be able to run properly?
  12. Everything work fine now. I can fix the problem using unit scope names in Project/Option. Please ignore this post.
  13. I have installed uniGUI on XE and XE2. XE has no problem at all but XE2 has a problem about the unit reference. For example the error will be on uses clause and any place that has unit reference when compile in XE2 uses Windows, ... I have to add directive and put WinApi. in front of Windows. uses {$IFDEF VER230} WinApi.Windows, {$ELSE} Windows, {$ENDIF} ... There are many places to fix them and I can not finish them all. Is there any other way to fix these problems? I've just found that if I create a new project there is no problem when compile. If I open the old project which was created from XE then compile it will error.
  14. He forgot as he said in #9. Anyway I knew he had many thing to do but I still hope he will make it soon.
  15. Thank you for your help.
  16. Hi Farshad I sent my test file, Have you ever try my case? Please let me know what is wrong.
  17. OK. My PC is cleaned. But the problem is still exist. I attached the program I made. I have 2 Forms , MainForm and uniForm1. Please run the program click on Open 2nForm button. 1. Try to put something on MainForm and use WriteDataToUniForm1 button, it works fine. whatever you change on the two uniEdit on mainform and click on WriteDataToUniForm1 button on mainform you will get the correct result on the uniForm1. 2. But if you change the data on Mainform and goto uniForm1 and click on ReadDataFromMainForm button, you will get the data update sometime, not everytime you click the button. 3. you can test it again by changing the data on the uniForm1 instead. I don't know if this the bug or you intend to design it this way. Project1.rar
  18. I found something strange on my PC and Antivirus program show my PC was infected by some virus. Let me clean my PC and make sure it will not caused by virus. I will test it again and let you know after it was clean. Thank for your help.
  19. Form2 still be opened. I just use the mouse click on form1 and click on the Unibutton2.
  20. The original code had no uniForm2.Refresh command. Since it did not work properly so I try to play with it by adding some command like uniForm2.refresh to see if it may solve the problem. I ran the code and click on button to open the second form. On the 2nd form have 2 uniEdit, I put some string on both uniEdits. Go back to the 1st Form and click on UniButton2, only sometimes it update the uniEdit1 and uniEdit2 on Form1. I don't know why. The version I use is 0.88.941.
  21. It's not work perfectly as you said. I found it work sometime on the browser (I use Firefox), But it works perfectly on Win32. Here is code I made. unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, uniButton, uniGUIBaseClasses, uniEdit; type TMainForm = class(TUniForm) UniEdit1: TUniEdit; UniButton1: TUniButton; UniButton2: TUniButton; UniEdit2: TUniEdit; procedure UniButton1Click(Sender: TObject); procedure UniButton2Click(Sender: TObject); private { Private declarations } public { Public declarations } end; function MainForm: TMainForm; implementation {$R *.dfm} uses uniGUIVars, MainModule, Unit2; function MainForm: TMainForm; begin Result := TMainForm(UniMainModule.GetFormInstance(TMainForm)); end; procedure TMainForm.UniButton1Click(Sender: TObject); begin uniForm2.show; end; procedure TMainForm.UniButton2Click(Sender: TObject); begin uniForm2.Refresh; uniEdit1.Text:=uniForm2.UniEdit1.Text; uniEdit2.Text:=uniForm2.UniEdit2.Text; end; initialization RegisterMainFormClass(TMainForm); end. Here is for unit2 unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, uniGUIBaseClasses, uniEdit; type TUniForm2 = class(TUniForm) UniEdit1: TUniEdit; UniEdit2: TUniEdit; private { Private declarations } public { Public declarations } end; function UniForm2: TUniForm2; implementation {$R *.dfm} uses MainModule; function UniForm2: TUniForm2; begin Result := TUniForm2(UniMainModule.GetFormInstance(TUniForm2)); end; end.
  22. How to pass the data such as string, integer, double, ... between form? For example, I want to set the value of uniEdit of Form2 before I show it and when I close Form2 I need to have some value return to Form1.
  23. Thank you for your reply. I wonder the 'url' must be predefined, isn't it? Is it possible to do something on the server in the onclick event such as dynamic creating pdf file and store it on the server. Then create the clientevent and replace 'url' to point to the location that we just create the pdf file. My purpose is just want to have the onclick button to work as the sequence like follow. 1. Generate the PDF 2. Send the generated PDF to the client by open the new window at the client side
×
×
  • Create New...