Jump to content
uniGUI Discussion Forums

cbr

uniGUI Subscriber
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About cbr

  • Rank
    Newbie

Recent Profile Visitors

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

  1. cbr

    UnimHTMLFrame

    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
  2. cbr

    UniCheckBox Transparent

    You should use ParentColor property UniCheckBox1.ParentColor := True; regards Cesare
  3. 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
  4. cbr

    Xmas

    +1!
  5. 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
  6. 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
  7. 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
  8. 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
×