Jump to content
uniGUI Discussion Forums

delagoutte

uniGUI Subscriber
  • Content Count

    395
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by delagoutte

  1. delagoutte

    About TUniRadioGroup.Caption

    try simply this function boxready(sender, width, height, eOpts) { if (sender.legend) { if (sender.legend.el) { var legend=sender.legend.el; legend.dom.setAttribute('align', 'center'); //left, right legend.dom.style['width']="auto"; legend.dom.style['margin-bottom']="0px"; legend.dom.style['border-bottom']="0px"; var legendText=legend.select('.x-fieldset-header-text').elements[0]; legendText.style['color']="green"; legendText.style['font-size']="12px"; legendText.style['font-weight']="bold"; legend.dom.style['text-align']='center'; } } }
  2. i see that with extjs 6.5 we could have advanced filter https://docs.sencha.com/extjs/6.5.0/classic/Ext.grid.filters.Filters.html (See features ->Filtering implementations) I would like this to be implemented natively in unigui
  3. delagoutte

    Grid Filter date/number/boolean/list

    do you think it will be possible ?
  4. delagoutte

    DBGrid column sort clear(reset)

    for cancel all sort you can use this : UniSession.AddJS('if ('+aGrid.JSName + '.getStore().sorters != null) {'+aGrid.JSName + '.getStore().sorters.clear();};');
  5. delagoutte

    How can i produce my own theme ?

    if not, do you think it would be possible to have a tutorial?
  6. Hello, Farshad/FMSoft would you be able to produce a tutorial on "how to create a custom theme" ? Where to start? tools needed ? how to proceed ? how to add in unigui adn how to deploy ?
  7. Hello, Actually i'm working with delphi XE7 and the last version of unigui that works with extjs 4.2.5 Its is my environnement that i use for my software that is deployed in production and i want keep this for the moment I 'm currently install delphi XE 10.2.2 and i would like install in this version of delphi the last version of unigui that works with extjs 6.5. It is possible to do this on same computer ? how can ido this without uninstall the version of unigui for delphi XE7
  8. delagoutte

    Change background color of Button on runtime

    create your css for apply to button onruntime : UniSession.AddJS('$(''#'+TUniControl(YourButton).JSId+''').addClass(''YourCssClass'')'); and for remove UniSession.AddJS('$(''#'+TUniControl(YourButton).JSId+''').removeClass(''YourCssClass'')');
  9. delagoutte

    How can i produce my own theme ?

    there is no aditional task ? we can use an extjs theme without adaptation or other task? hum, i doubt i had already work on method for produce custom theme,but ithink that it's unprofessional crafts, see : but i would like having an "official"method that is not DIY. I would like to have a tutorial with the best practices and start working on a theme with good foundation
  10. delagoutte

    How can i produce my own theme ?

    Yes ? no ? new template are produced with last version of unigui. Can you share the methods for produce it ?
  11. delagoutte

    Pivot Grid support

    any news for pivot grid in next version ?
  12. hello, i have update unigui from 1422 (extjs 4.2) to 1471 (Etxjs6.5) on my delphi XE7 (windows 8.1 in virtual computer) Since this upgrade i often have my delphi that hang/freeze/do not answer when i am in debug. if i'm waiting many minutes or if i taskkill my unigui executable, delphi give me the hand but if i launch again my project, i have the mesage "Could not bind socket. Address and port are already in use" i'm using tcpview from sysinternals, netstat -ano but the port is not in used. the only solution is to used an other port or rebbot my computer. does someone meet the same problem ? is there an update of indy packaged in unigui ? How can i close this ghost socket port used ?
  13. delagoutte

    Max length on a panel of tunistatusbar

    i have a status bar with X panels. the first panel width is set to 200px if the text on my firstpanel is longer than 200px, it is write over the second panel. what can i do for having "..." in the end of text and having the full value in the hint ?
  14. delagoutte

    Max length on a panel of tunistatusbar

    with this code UniStatusBar1.Panels[1].Text := 'long text long text long text long text long text'; that is not the property item.text that is modified (it keep the initial value), there is a new property item.html that is created with this new value. a unigui bug ? So for my problem i fixe it with a patch like this : if (item.html){ tip.update(item.html); } else { tip.update(item.text); }
  15. delagoutte

    Max length on a panel of tunistatusbar

    there is a bug with this method : if you set the text in runtime, the text in tooltip is the text that was define in design time
  16. delagoutte

    Max length on a panel of tunistatusbar

    ok it works on a sample project, probably a bad option in my code, i'll check it. thank you
  17. delagoutte

    Max length on a panel of tunistatusbar

    for style, it is ok but for the hint/tooltips, nothing is displayed
  18. In my app, when a user connect to the app, there is many configuration for his environment. i have a code that is is like this : if userconnnect = true then begin LoadMainGridtitle; //set column title with user value LoadMaingridColumnconf; //size, position, hidden... LoadMaingridFilter;// load saved filter value and apply LoadMainGridSort; LoadRightPanelConf; // size ans collapse state if not panelRight.collapsed then LoadFrameTree;//create frame TFrmTree and Assign to panel LoadLeftPanelConf; if not letfRight.collapsed then LoadFrameForLeftPanel; ..... end; All this code generate a big js (700ko) that is send to client by unigui but during this generation the client don't see anything move in front of his eyes. i would like do a thing like this but i not sure it is the best and the simple way. What do you think ? LoadMainGridtitle; //set column title with user value --->>send to client for apply in client side LoadMaingridColumnconf; //size, position, hidden... --->>send to client for apply in client side LoadMaingridFilter;// load saved filter value and apply --->>send to client for apply in client side LoadMainGridSort; --->>send to client for apply in client side What is the best way to do this ? i think a thing like but is it a good way and is it the simple way ? if user.connectd then begin LoadMainGridtitle; //set column title with user value unisession.addjs('ajaxrequest('+mainform.jsname',"LoadCustomConf",[value=1]'); end; ...... procedure tmainform.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if eventname = 'LoadCustomConf' then begin if params.values['value']=1 then begin LoadMaingridColumnconf; //size, position, hidden... unisession.addjs('ajaxrequest('+mainform.jsname',"LoadCustomConf",[value=2]'); end; if params.values['value']=2 then begin LoadMaingridFilter;// load saved filter value and apply unisession.addjs('ajaxrequest('+mainform.jsname',"LoadCustomConf",[value=3]'); end; ........ end;
  19. delagoutte

    Best way for cut code generate by unigui ?

    hum , maybe it is UniSession.Synchronize; that i need ?
  20. delagoutte

    PageSize Extension for UniDBGrid

    An other problem : if you use the combo box for changing pagesize it seems that it is changed only on client side. If you change datasource on server(on applying filter for exemple), it used the value that is in weboptions.pagesize and not the value that is in combo. How can we change value on serverside when we change on client side ?
  21. delagoutte

    PageSize Extension for UniDBGrid

    for extjs 6 change ptStore.pageSize = value[0].data.field1; by ptStore.pageSize = value.data.field1;
  22. delagoutte

    PageSize Extension for UniDBGrid

    for info : the plugin don't work with extjs 6
  23. delagoutte

    Filter + Tunicombobox and free entry

    For the moment i'm using ExtEvents function keypress(sender, e, eOpts) { if (e.getKey() == 13 ) { ajaxRequest(sender, 'select', [""]); } } it's seems working but is there a better solution ? an option that i don't know the meaning ?
  24. delagoutte

    Filter + Tunicombobox and free entry

    Open demo project Gridfilter Add Unicombobox on unihiddenpanel for column "Company Name" (or other) set property filtering.editor with this unicombobox.(no items for the moment) launch your app on filter for column "Company Name" type somme letter +Return ---> the event onColumnFilter is not called Add items to your combobox -> if you select an item in the list -> the event is called but not with free entry + Return How can i do for having event onColumnFilter that called when i type Return like a simple uniedit in demo gridfilter2
×