Jump to content

Rav

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Rav

  1. Hello, 1) I wanted to deploy the trial unigui standalone app on the PC of the potential customer but failed. I did everything according to the unigui deployment doc: set the TUniserverModule vars: ServerRoot := 'c:\Program Files\MyApp\'; ExtRoot := '.\Uni\[ext]'; UniRoot := '.\Uni\[uni]'; CacheFolder := '.\Uni\'; FilesFolder := '.\'; TempFolder := '.\Uni\Temp'; then copied to 'c:\Program Files\MyApp\Uni\' directory the Unigui and ExtJs directories: 'ext-4.2.5.1763' and 'uni-0.99.95.1305' All I can see in the browser is the "Loading..." screen. I checked it on the other PCs with the same result Internet Explorer shows a small warning icon in the status bar telling that the page contains errors like 'Ext' - definition is missing 2) I tried to do the same on my PC with Delphi removing and restoring FMSoft directory from Program Files and found that sometimes(!) it works fine and sometimes I get the same"loading..." message. I could not find the rule but when the FMSoft directory is present the app is working in 100% cases. Did I miss something?
  2. Hello, Recently a new feature was added to UniGui that shows "Loading data..." message whenever the data control is refreshing. Sometimes it is useful for testing purposes but I couldn't find where to turn it off. Ravil -------------------------------------------------------------- Sorry, already found the LoadMask property.
  3. Hello, Is it possible to create HTML code that provides automatically resizing PDF viewer for placing to UniURLFrame? The code I have produces only a fixed size frame with PDF: <object style="width: 100%"><embed src="InBox/Sasha_160627_024049_770_0.pdf" border="1" ></object> P.S. I have resolved this problem through Ajax
  4. Hello, 1)Found that if only one column in UniDBGrid is filtered (even if it's not visible) and others are not, all columns appearance still suffer from it - large headers, columns' titles are aligned vertically in the center. IMHO It would be better if unidbgrid headers return to normal height when no visible filtered columns are present . Also it would be nice to allow changing vertical alignment of the header's title. 2)After clearing filter the OnColumnFilter handler receives variant Value parameter set to zero or empty string. This is not a good way of using variants cause these values might have meaning for the fields e.g. I have a Line field where 0 means the first line and so I cannot distinguish if the user cleared the filter or selected the first line. Also it could make minor troubles using DateTime (Date) parameters. IMHO it would be much better to use Null or Empty variant values. 3)I use JavaScript code that allows changing the UniDBgrid columns width on the client side automatically (using flex). In this case the FilterClear button is always shown with the width reduced to 1 pixel. If I don't use columns resizing the button appears normally. Thanks.
  5. Hello, I set UniServerModule.ServerLogger.Enabled to False, but log directory is still created if it doesn't exist and some actions are being logged.
  6. Rav

    Themes demo

    Thanks, All features demo zipped along with exe: https://yadi.sk/d/ijBQFBObsV623 Reproducing error: 1)Run exe 2)In web browser click Mask, Mask Data Another small bug: If Action's Execute is not specified, execution of the Action in browser results an error "Attempt to access nil session reference, "ExtPascal" line 1132"
  7. Rav

    Themes demo

    Hello, The last version 0.99.95.1305, trial 1) ThemeChange demo cannot be compiled under XE2 2) ThemeChange demo is compiled but is not working under XE10 Berlin 3) Allfeatures demo causes access violation when trying to click on "Mask data" demo under XE10 Berlin
  8. Hello, I need a container control with scrolling functionality and could not find it (a control similar to TCheckListBox). UniScrollbox can be scrolled but has no layout property, UniPanel and UniContainerPanel work fine with layouts but have no Scrollbars property. Is there a workaround to create such control?
  9. Thanks! That works perfect. I had no idea that such a simple request requires so deep knowledge of UniGui.
  10. Hello, I want to send the width of the form having AlignmentControl=uniAlignmentClient to the server but always receive various javascript errors. How to create a proper ajaxRequest? One of my bad tries: function window.destroy(sender, eOpts) { ajaxRequest(sender, 'WindowWidth', ['Width='+window.getWidth()] ); }
  11. Yes, sure. I have just tested UniFrame demo - your code disables the context menu when it's empty. If you go to any URL or load HTML file - the menu appears again. Maybe your code should be placed whenever UniFrame is changed? I will test it right now... No it doesn't work either
  12. Thanks, but didn't work - the context menu appears as before.
  13. Hello, I have a simple HTML file (report) and want to show it to the user. For this purpose I use TUniURLFrame in a way like this: uniURLFrame.HTML.LoadFromFile('c:\1.html'); It works perfect except that the browser context menu in uniURLFrame still works regardless of the boDisableMouseRightClick option in UniMainModule.BrowserOptions. It wouldn't have been a large problem but all browsers have the "Save as" option which works dreadful - the saved file is absolute nonsense. Is it possible to disable the context menu in UniURLFrame or is there another better way of showing the prepared HTML file?
  14. Hello, I need that all my Frames have the same virtual method RefreshData. I created a common ancestor for the frames: TCommonFrame = class(TUniFrame) procedure RefreshData; virtual;abstract; end; and placed it into MainModule. For my actual Frames I changed manually their ancestor from TUniFrame to TCommonFrame: TUniFrame1 = class(TCommonFrame) procedure RefreshData;override; end; where I overrided the RefreshData method. Everything looks nice and works fine until the moment when I decides to "View as Text" any Frame or merely restart Delphi. After that any my Frame immediately starts looking as a Form (border view is changed), a lot of errors appear and nothing works. Where did I make a mistake? Ho to do it properly? I also tried using Class Helper for TUniFrame with a single RefreshData method, compilation was successful, but running caused access violation. Another question, the Forms OnDestroy handler is called earlier than OnDestroy of the Frames it owns. Is it normal? I have made workarounds so the questions above are just theoretical
  15. I have been reading forums discussing this question for at least 15 years since appearing of the .Net but Delphi turns a deaf ear. Now I would say that it's rather .Net nearer to the death than Delphi despite the support of one of the largest company of the world. With UniGui I think it will last even longer.
  16. Rav

    HTML5 Audio

    Got another question. I want this audio controls panel is automatically resized along with UniHTMLFrame where it is located. As I read it can be done using styles like in this example. Can I do the same with UniGui?
  17. Rav

    HTML5 Audio

    Thanks! That works perfect!
  18. Rav

    HTML5 Audio

    Hello, I have a simple HMTL5 file that shows audio player and works properly: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Report</title> </head> <body> <audio controls><source src="file:///C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\HTML5 Audio\files\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio> </body> </html> I failed to embed it into UniGui. As far as I understand I need to use UniHTMlFrame component. 1) When I place the code into it: <audio controls><source src="file:///C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\HTML5 Audio\files\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio> I receive Java script error. 2) When I copy the tada.wav to "c:\" and change the code accordingly: <audio controls><source src="file:///C:\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio> No error Java script is shown but instead of a player I see a white box. 3) When I use HTMLFrame demo and place there the same code: <audio controls><source src="file:///C:\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio> Player appears normally but doesn't play the file
  19. Rav

    Setting images paths

    Thanks, that works!
  20. Rav

    Setting images paths

    I meant that the "Log" directory is automatically created in the directory where the application is started and you cannot change it dynamically unlike e.g. "Cache" directory (ServerModule's CacheFolder property) or "Temp" directory (TempFolder). Also there is a "FilesFolder" property which don't understand the purpose of but there is no "ImagesFolder" which could be quite useful for OnImageURL handler.
  21. Thanks! Is there a workaround? UniThreadTimer? Server Module thread?
  22. Hello, I have a windowless application with integrated UniGui and I need it to close from one of its threads. Without UniGUI I didn't use Application.run, didn't handle messages and instead of it I used a special thread which checked globally defined variable ApplicationTerminated that could be set out of everywhere. Now with UniGUI I need to stop Application.run from another thread. All the ways mentioned from this topic are not working: Application.Terminate (no result); UniApplication.Terminate (access violation); MainModule.UniMainModule.Terminate (access violation) Is there another way of proper closing the application?
  23. Hello, Is it possible to set the "images" folder for using in OnFieldImageURL handler? And I didn't find the "LogFolder" property in ServerModule parameters.
×
×
  • Create New...