Jump to content

Farshad Mohajeri

Administrators
  • Posts

    12115
  • Joined

  • Last visited

  • Days Won

    807

Everything posted by Farshad Mohajeri

  1. In serverModule you should put a JS file. In MainForm you can put the script itself.
  2. For UniPanel: function OnBeforerender(sender) { sender.html='<img src="files/gradient.jpg" width="100%" height="100%"/>'; }
  3. Thanks for above code snippet. You can also put the above code in MainForm.Scripts, but you must use /* */ instead of // Current uniGUI parser doesn't handle // properly.
  4. There is no way to check it OnCreate event. You can check it in OnScreenResize event.
  5. procedure TMainForm.UniFormCreate(Sender: TObject); begin if WebMode then WebForm.ExtForm.Html:='<img src="files/gradient.jpg" width="100%" height="100%"/>'; end;
  6. When you click a row it will become the current row in the Dataset. You access row data using Dataset fields.
  7. Each browser has its own way of error handling. What is OK for browser A may cause an error on browser B. If page doesn't load, run browser in debug mode to see what's the problem.
  8. <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="400" HEIGHT="300" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"> <PARAM NAME="MOVIE" VALUE="Flower.swf"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="QUALITY" VALUE="best"> <PARAM NAME="LOOP" VALUE="true"> <EMBED SRC="files/Flower.swf" WIDTH="400" HEIGHT="300" PLAY="true" LOOP="true" QUALITY="best" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT> Above code should be assigned to a UniHTMLFrame. It plays a file named Flower.swf located under ./files folder.
  9. You can do it using a TUniHTMLFrame. In future we may add a separate Flash container Component for uniGUI.
  10. If you want a screen object (a UniPanel for instance) to always remain in center of its parent just make it "Anchorless" Anchors -> [ ] In your markbook site I can see that you have a main panel (with rounded corners). Remove all of its Anchors and it will remain in center of screen regardless of screen resolution. BTW, cool site. Couldn't notice that it is an Ext JS / uniGUI site.
  11. Yes, in webmode modal forms are not blocking. You must use OnClose event to process ModalResult.
  12. Doen ExtRoot point to a valid path?
  13. Can you paste contents of your .dpr file here.
  14. Do you see a blue screen or a white blank one in browser?
  15. Only if you manually migrate all forms and modules from standalone project to a newly created service project.
  16. It is just like the Service module when you create a standard Delphi service application. It is a descendant of TService. It gives you additional control over service initialization/termination and allows you to set service Name and other service related properties.
  17. There is no way to enable the scroll bars when Form top has a negative coordinate. There is no solution for this. It is either an Ext JS or a DOM limitation I'm not sure which one. So you must either adjust the coordinates yourself in OnScreenResize event or design your Form as maximized so Top bar will be always visible. TMainForm->MonitorScreenResize->True procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin if AHeight<Self.Height then begin Top:=1; Left:=1; end; end; In mfPage mode you must set AutoScroll->True to see the Scroll bars. I think best way is using mfPage mode + AutoScroll->True.
  18. Set MainForm->MonitorScreenResize->True In MainForm OnScreenResize event recalculate Form Left, Top, Width and Height so it will fit and show in desired position.
  19. Please specify OS, IE version, Delphi Version, URL you try to access
  20. I need to know the error code returned by IE
  21. You must copy ext-3.3.0 folder to new PC. Please see here for adjusting paths: http://www.unigui.com/doc/online_help/index.html?adjusting_paths.htm
  22. For UniPanel: function Onmouseover(sender) { sender.body.applyStyles('background-color:#ff0000'); }
  23. Already logged as #1020
×
×
  • Create New...