Jump to content
uniGUI Discussion Forums


uniGUI Subscriber
  • Content Count

  • Joined

  • Last visited

  • Days Won


cbr last won the day on March 23

cbr had the most liked content!

Community Reputation

1 Neutral

1 Follower

About cbr

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Rafael, the main suggestion is not use the Align property that implements a server side alignment. Instead of that, in MainForm and in every contained panel, set the property AlignmentControl to uniAlignmentClient that uses the powerful client side alignment of ExtJs. You should find many examples in the forum (like http://forums.unigui.com/index.php?/topic/7848-layout-advanced-tutorial/) and in Clientside Alignment part of demos of your UniGui installation. For your specific question you can check also the Reference Manual in http://www.unigui.com/doc/online_help/api/LayoutForm.html Regards Cesare
  2. Hi cdev attached you can find a simple example. bye C. panelAlign.7z
  3. Hi cdev Set the tabsheet parent of the panel with: AlignmentControl= 'uniAlignmentClient' Layout = 'vbox' LayoutAttribs.Align = 'center' LayoutAttribs.Pack = 'center' you can see the examples in https://docs.sencha.com/extjs/4.2.2/extjs-build/examples/layout/vbox.html regards Cesare
  4. cbr


    Hi MOSGY a simple example: a) put in the HTMLFrame this code <script> function callServer(elmnt, event) { var HTMLFrame = Ext.getCmp("_HTMLFrame"); var params=[]; switch (elmnt.type) { case "text": params = ["id="+elmnt.id, "val="+elmnt.value, "xevent="+event ]; break; case "button": params = ["id="+elmnt.id, "val="+elmnt.value, "xevent="+event ]; break; case "checkbox": params = ["id="+elmnt.id, "val="+elmnt.value, "checked="+elmnt.checked, "xevent="+event ]; break; }; if (params.length>0) { ajaxRequest(HTMLFrame, 'callserver', params); } } </script> ... <span> <a href="#" style="text-decoration: none; color:white" onclick="callServer(this,'onclick')">3</a></span> b) in MainForm you can write the server side code in OnAjaxEvent procedure TMainForm.HTMLFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var sParam: string; begin if EventName = 'callserver' then begin sParam := Params['id'].AsString; if sParam = 'P' then begin ... end; end; end; best regards
  5. cbr

    UniCheckBox Transparent

    You should use ParentColor property UniCheckBox1.ParentColor := True; regards Cesare
  6. cbr

    Resizing and positioning of Panel

    Hi Frances, I suggest not mix the AlignmentControl uniAlignmentClient and uniAlignmentServer. If you use uniAlignmentClient (it is the fastest way) , don't use the Align property but the powerful LayoutConfig properties. Attached I propose some changes to your code, using the first Sherzod suggestion. Regards from Italy, Cesare ServerModule_1.zip
  7. cbr


  8. Hi Palf, you should follow the guide in http://www.unigui.com/doc/online_help/iis_7_0.htm for each domain, coping the dll file of each application in the content directory of the related site. regards
  9. cbr

    How to center the form in this example

    Hi Mierlp, my suggestions: - in frmAccount form, set AlignmentControl to uniAlignmentClient for each panel - UniPanel_Main Layout = fit LayoutAttribs.Align = stretch - add a new panel inside a UniPanel_Main and move inside UniDBEdit_Name and UniLabel_Name - for this panel Layout = 'vbox' LayoutAttribs.Align = center LayoutAttribs.Pack = start LayoutConfig.Flex = 1 - optionally for UniDBEdit_Name and UniLabel_Name add a top margin with LayoutConfig.Padding = '10 0 0 0' see in the attached file the changes. regards Cesare frmAccount.zip
  10. Hi wprins, if you dont'have found a way, I'm working with this one: http://forums.unigui.com/index.php?/topic/3236-unidbgrid-pagesize/?p=15025 regards
  11. cbr

    How to use ImageList in high-dpi display

    Hi Skepsis, a simple (server side) way to use the Google Material Icons is: 1) add the reference to Material Icons in ServerModule procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin ... CustomMeta.Add( '<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">' ); end; 2) Insert in the form a TUniLabel with AutoSize: False Caption: the icon name; see in https://design.google.com/icons Font.Name: 'Material Icons'; You can set the color and the size. See the page https://design.google.com/icons for available icons. In the TUniLabel caption property, replace the space contained in the name with the char "_": if the icon name is "shopping cart", write shopping_cart in the caption. Cesare GoogleMaterialIconsDemo.rar