Jump to content

GerhardV

uniGUI Subscriber
  • Posts

    385
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by GerhardV

  1. After some more debugging I had a look at the "page source" in the browser of the main form for both scenarios. Without a Login Form the HTML code for the HTMLFrame exists in the source but not when a Login Form is included. view-source_localhost_8077_WITHOUT_Login.html view-source_localhost_8077_WITH_Login.html
  2. Same issue. I have attached a small test case. Thanks.
  3. Hi - thx. CSS is loaded from HTML. <link href="files/tabmenu/tabmenu.css" rel="stylesheet" type="text/css"/> Yes busy creating a test app.
  4. I have recorded a video of the issue I am experiencing with regards to the above. 2017-02-06_09-28-48.zip
  5. How can we achieve with UniGUI the effect of a form that slides in from the side and then slides back when closed? Something like this: http://www.aorank.com/tutorial/slidingform/slider.html
  6. I am experiencing strange behavior with regards to the Login Form. I have a TUniHTMLFrame on my main form which contains a CSS menu. It works perfectly when I do not have a login form. When I do add the login form the CSS menu does not show or behaves correctly except for the first tab. It is a CSS "TabMenu" and the display doesn't update when moving over the other tabs nor does it receive the mouse clicks. I also have one panel with its position slightly altered. Any ideas why the Login Form can have such an influence on the main form when included? See the two images attached - the second image is the one with the broken CSS menu. Thanks.
  7. I am trying to build and install the CustomControl5 demo but get the following error. It is the same for all the CustomControl demos. What am I missing?
  8. Thank you...was just the other day looking for something like this.
  9. Thank you sir, works like a charm! I did find that exact code with a Google search but I am not always sure to which event to put it. UniEvents or ExtEvents...and then even within those I am unsure. Maybe something we can add as a property to TPageControl?
  10. Does anybody know how to adjust the spacing between the tabs of a PageControl? Thanks.
  11. Farshad, will you make the source code available for UniGUIClasses?
  12. Thanks Farshad I see, but I am still not sure why it is necessary. I am trying to think of a use case other than when an event handler is assigned. I see TUniPanel inherits from TUniCustomContainerPanel which is declared in UniGUIClasses but we don't have the source for that. I wanted to see the logic implemented around that. Will you make the source code available for that?
  13. Same thing happens when dragging the panel and there is nothing assigned to the OnEndDrag event. "It also seems that an AjaxRequest is sent when dragging the panel but I am unable to locate the code that generates the EndDrag event."
  14. Farshad thanks for the fix in 1343 but did you also fix the EndDrag event?
  15. Thanks Farshad but actually everything is using Client Side alignment, that was the first thing I checked as that was my suspicion, unless I miss something. But what you are also saying is that we need another check and that is to check "AlignmentControl = uniAlignmentServer"? BTW the EndDrag event I was looking for might be in the uniGUIClasses file which we don't seem to have the source for. procedure TUniCustomPanel.InitCollapseEvents; begin {We only want to send these events when alignment is controlled by the server} if ((AlignmentControl = uniAlignmentServer) or Assigned(FOnCollapse)) then JSCall('on','"collapse",function(){ajaxRequest('#1',"collapse",["w="+'#1'.getWidth(),"h="+'#1'.getHeight()])}'); if ((AlignmentControl = uniAlignmentServer) or Assigned(FOnExpand)) then JSCall('on','"expand",function(){ajaxRequest('#1',"expand",["w="+'#1'.getWidth(),"h="+'#1'.getHeight()])}'); end;
  16. I have done some further investigation and made some changes to the "InitCollapseEvents" method for TUniCustomPanel. procedure TUniCustomPanel.InitCollapseEvents; begin if Assigned(FOnCollapse) then JSCall('on','"collapse",function(){ajaxRequest('#1',"collapse",["w="+'#1'.getWidth(),"h="+'#1'.getHeight()])}'); if Assigned(FOnExpand) then JSCall('on','"expand",function(){ajaxRequest('#1',"expand",["w="+'#1'.getWidth(),"h="+'#1'.getHeight()])}'); end; It seems to work and no AjaxRequest is sent to the server if there is no event handler assigned in the Delphi code. The question now is....will this have side effects that I am not aware of? It also seems that an AjaxRequest is sent when dragging the panel but I am unable to locate the code that generates the EndDrag event.
  17. Hi Farshad: I was playing around, thinking about a design to minimize network traffic, when I noticed the following whilst having the Chrome Debug Console open. I basically have a panel that is collapsible to the left. I noticed that every time I would collapse or expand the panel it would send an AjaRequest to the server (handleEvent) even though nothing is assigned to the OnCollapse or OnExpand events in Delphi. Below is the temporary code that UniGUI generated for this. O22C.on("collapse", function () { ajaxRequest(O22C, "collapse", ["w=" + O22C.getWidth(), "h=" + O22C.getHeight()]) }); O22C.on("expand", function () { ajaxRequest(O22C, "expand", ["w=" + O22C.getWidth(), "h=" + O22C.getHeight()]) }); Now I might be wrong or maybe don't fully understand the design but could we not maybe cut down on network traffic in this case by not generating any code for an AjaxRequest if no "Event" code for OnCollapse or OnExpand were assigned? If this holds true then it can have a huge impact on performance, especially with a significant number of users. Is there any other places where this logic can be applied as well?
  18. Is it possible to see what changed in each build? There is the change log but it is difficult to tell from that what is new/fixed in the current build. I am talking about the minor builds though as the Change Log is keep track of major releases. So I want to see what changed from build 1339 to 1341 for example. Thank you.
  19. Thank you mate....I am not sure how the search work but I did search for "hide form border", "form no border", "borderless" and did not find anything. I normally add tags to my questions.
  20. How do you get a form, except for the MainForm which can be set to mfPage, to display without a "window" border/frame? The idea is to display a modal form which looks like a white panel with rounded corners... Thanks.
×
×
  • Create New...