Jump to content

Farshad Mohajeri

Administrators
  • Posts

    12122
  • Joined

  • Last visited

  • Days Won

    808

Everything posted by Farshad Mohajeri

  1. If Form is centered no position is given and Ext JS automatically centers it. Since no position is specified when you read it it returns 0,0.
  2. MainForm->MonitorScreenResize->True procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin Left:=(AWidth-Width) div 2; Top:=(AHeight-Height) div 2; end;
  3. It is a solid JS framework, but I don't think there is anything superior to Ext JS.
  4. I add a issue log for it when SSL is not used: #1190
  5. Best solution here is using SSL. You can use it in ISAPI mode. We will implement it for Standalone server soon.
  6. Very easy. Just recalculate MainForm position in MainForm's OnScreenResize event.
  7. Your ISP should provide VPS services. VPS is the best way to run uniGUI and similar apps. VPS (Virtual Private Server) services are becoming competitive with very affordable prices. Comparing its advantages with shared hosting I think shared hosting is a waste of money. Overselling resources is the biggest problem here. Bandwidth, memory and disk resources can be oversold in both shared hosts and VPS hosts. If an ISP claims that they'll give you unlimited bandwidth and disk space they're lying. Resources are limited, especially bandwidth and memory. Some of the virtualization technologies like XEN doesn't allow overselling resources. XEN guarantees that you'll get all the RAM and Disk space dedicated to your VPS. One recommendation here is to keep Ext JS files as read only so JS injection attacks will be impossible.
  8. Yes you must set that Column to ReadOnly.
  9. AFAIK, Ext JS 3.4 is not sold separately. You can buy an Ext JS 4 license for 329 USD and it will include Ext JS 3.4.
  10. I attach source code for related Form which is attached to tray icon. I haven't tested it but I hope you will be able compile it along with other uniGUI DCUs. uniGUICP.rar
  11. The only way to achieve this is using a TuniTimer and monitor your DB connection at each timer tick.
  12. OK. Form is not automatically centered when change brosser size. You need to manually handle this in MainForm ScreenResize event.
  13. http://forums.unigui.com/index.php?/topic/1430-version-0870/page__view__findpost__p__5859
  14. Download the latest build 907.
  15. I re-designed some of the internal mechanisms related to Lookup controls.
  16. Besides, please specify the exact piece of code where you are stuck, the exact steps to reproduce your problem and the exact error messages you get. In your project at many points I receive "Can not perform X on a closed Dataset" I don't see this as a problem as it has nothing to do with uniGUI. Thanks
  17. Please wait for next build which addresses some of your issues. ----- procedure TmainForm.setlevel0; begin btnPresignacija.Visible:=false; btnDodajObavezu.visible:=false; FrmPredmet.btnStampanjeDostavnice.visible:=true; frmPredmet.btStampanjeOmota.visible:=true; frmPredmet.btnDodavanjeAkata.visible:=true; UniPanel11.Visible:=false; UniPanel9.Visible:=true; UniPanel4.Visible:=true; UniToolBar1.Visible:=true; UniPagecontrol1.Pages[1].Visible:=true; end; In above code you modify frmPredmet, but you don't show it. Modifying an invisible Form is not supported in uniGUI. Beside you never use frmPredmet in your code afterwards. In above code you do lots of Visble:=True/False. While it is legal to do that it is not best way to design a Web app. It creates lots of unnecessary JS code at runtime which slows down your app performance. ------- Why you create Forms in code? Why not simply call: frmStavke.ShowModal; ------ procedure TMainForm.UniFormResize(Sender: TObject); begin UniPageControl1.Width:= screen.Width -95; UniPageControl1.height:= screen.height; UniPageControl1.left:=0; end; procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin UniPageControl1.Width:= screen.Width -150; UniPageControl1.height:= screen.height -270; UniPageControl1.left:=97; end; You use lots of code to manually maintain positions. It is not needed and adds unnecessary complexity to your code. Use built-in Aligning and Anchoring features which are powerful enough to create a decent floating UI.
  18. No, I don't have messenger installed in my dev. PC.
  19. I put 01 and 02 and no error appears. Maybe because of recent changes I've done to Lookup components. Which dataset should I attach UniDBNavigator to ? There are so many Datasets in your project.
  20. OK, what will I choose next in problematic form to reprduce it? There are so many options there.
  21. I did and I got this error: qPredmeti: Type mismatch for field 'klas', expecting: WideString actual: Integer Where is first UniDBLookupCombo.? Where is UniDBNavigator? I get below error when I press some of the buttons: Cannot perform this operation on a closed dataset Please give me exact steps to reproduce your errors.
  22. Workaround: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin MimeTable.AddMimeType('csv', 'text/plain'); end; I will add this internally in next build.
  23. Two Issues logged: 0001186: Bug when exception is raised in Form.OnShow event 0001185: Bug when exception is raised before created form is shown Temporary workaround: Create forms using below method: frmPredmet:= TfrmPredmet.Create(uniapplication); try . . . frmPredmet.show; . . . except frmPredmet.Free; raise; end;
×
×
  • Create New...