Jump to content

Sherzod

Moderators
  • Posts

    19792
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Hi, This solution can also be helpful: http://forums.unigui.com/index.php?/topic/3137-is-it-possible-to-change-unimainmodulebrowseroptions-at-runtime/?hl=bodisablemouserightclick http://forums.unigui.com/index.php?/topic/3137-is-it-possible-to-change-unimainmodulebrowseroptions-at-runtime/&do=findComment&comment=21489 Best regards.
  2. Try: function afterrender(sender, eOpts) { sender.pagingBar.getComponent("refresh").handler = function () { //your custom logic... sender.getStore().load(); } }
  3. Hi, 1. It may help: http://forums.unigui.com/index.php?/topic/4425-grid-refresh-button/&do=findComment&comment=21879 2. Try: UniDBGrid1 -> .... function afterrender(sender, eOpts) { if (sender.pagingBar) { sender.pagingBar.getComponent("refresh").hide() } } Best regards!
  4. Hi Ulugbek! While, you can use this "solution", try: procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject); begin UniSession.AddJS('document.body.style.background = ''url("/files/Chrysanthemum.jpg") repeat scroll 0% 0%'''); end; Best regards.
  5. Merhaba Try: http://forums.unigui.com/index.php?/topic/3220-allowediplist/&do=findComment&comment=16541 Best regards!
  6. Hi! Try to use the property "DisplayValues": Best regards!
  7. Hi, http://forums.unigui.com/index.php?/topic/4531-unigui-trial-edition/&do=findComment&comment=22519 Best regards.
  8. Hi, Sorry, this is due to the limits of the trial version... Best regards.
  9. Hi, But what if you will use the property ScreenMask?! Best regards.
  10. yes, UniDataModule or MainModule ...
  11. Hi, I think at the moment you to probably should use dbgrid with pagination .. And at the expense the database, you can use the virtual table, it's just my opinion .. Try, maybe there are other solutions .. Best regards.
  12. Hi, But what if you will use "UniDBGrid" with pages ?! Best regards.
  13. Sorry, this is a trial limitation and it is around 3 minutes.
  14. I'm sorry, you are using a trial version ?!
  15. Hi, Try to increase the property "SessionTimeout" in UniServerModule (default 600000 milli seconds).. Best regards.
  16. Hi, Also you can without changing the files css, try adding this code: procedure TMainForm.UniFormCreate(Sender: TObject); begin // for example, for 32x32 UniSession.AddJS('Ext.util.CSS.createStyleSheet(".x-tree-icon { height: 36px; width: 32px; }")') end; It certainly is not a complete solution, still need to analyze the .x-tree-elbow-img Try, Best regards.
  17. Hi, You can use groupHeaderTpl Try to analyze this example: 1. Open: "C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\GridGrouping\grp.dproj" 2. Change grouping FieldName: 3. UniDBGrid1 -> ClientEvents -> UniEvents -> add function beforeInit function beforeInit(sender, config) { var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{ groupHeaderTpl: 'Date: {[Ext.util.Format.date(Ext.Date.parse(values.name, "d.m.Y G:i:s"), "l, d/m/Y")]}', hideGroupedHeader: true }); config.features = [groupingFeature] } 4. Result: Note: you may have a different date format Best regards.
  18. Hi, One of the solutions, try: MainForm.Scripts ... add: Ext.grid.RowEditor.prototype.cancelBtnText = "This is cancel"; Ext.grid.RowEditor.prototype.saveBtnText = "This is update"; Best regards.
  19. Hi! If you mean "UniCalendarPanel1"... I know that there is a better solution, It may be not yet complete solution, but try: MainForm -> ClientEvents -> UniEvents add function window.beforeInit the key point is a string: times.push(Ext.Date.format(dt, 'G:i')); // default 'ga' function window.beforeInit(sender) { Ext.calendar.template.DayBody.override({ constructor: function(config){ Ext.apply(this, config); Ext.calendar.template.DayBody.superclass.constructor([ '<table class="ext-cal-bg-tbl" cellspacing="0" cellpadding="0">', '<tbody>', '<tr height="1">', '<td class="ext-cal-gutter"></td>', '<td colspan="{dayCount}">', '<div class="ext-cal-bg-rows">', '<div class="ext-cal-bg-rows-inner">', '<tpl for="times">', '<div class="ext-cal-bg-row">', '<div class="ext-cal-bg-row-div ext-row-{[xindex]}"></div>', '</div>', '</tpl>', '</div>', '</div>', '</td>', '</tr>', '<tr>', '<td class="ext-cal-day-times">', '<tpl for="times">', '<div class="ext-cal-bg-row">', '<div class="ext-cal-day-time-inner">{.}</div>', '</div>', '</tpl>', '</td>', '<tpl for="days">', '<td class="ext-cal-day-col">', '<div class="ext-cal-day-col-inner">', '<div id="{[this.id]}-day-col-{.:date("Ymd")}" class="ext-cal-day-col-gutter"></div>', '</div>', '</td>', '</tpl>', '</tr>', '</tbody>', '</table>' ]); }, // private applyTemplate : function(o){ this.today = Ext.calendar.util.Date.today(); this.dayCount = this.dayCount || 1; var i =0, days = [], dt = Ext.Date.clone(o.viewStart), times = []; for(; i<this.dayCount; i++){ days[i] = Ext.calendar.util.Date.add(dt, {days: i}); } // use a fixed DST-safe date so times don't get skipped on DST boundaries dt = Ext.Date.clearTime(new Date('5/26/1972')); for(i=0; i<24; i++){ times.push(Ext.Date.format(dt, 'G:i')); dt = Ext.calendar.util.Date.add(dt, {hours: 1}); } return this.applyOut({ days: days, dayCount: days.length, times: times }, []).join(''); } }); } Best regards!
  20. Hi, Maybe this approach?: sender.addCls('glowing'); CustomCSS: input[type=text], textarea { -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; -ms-transition: all 0.30s ease-in-out; -o-transition: all 0.30s ease-in-out; outline: none; padding: 3px 0px 3px 3px; margin: 5px 1px 3px 0px; border: 1px solid #DDDDDD; } input[type=text]:focus, textarea:focus { box-shadow: 0 0 5px rgba(81, 203, 238, 1); padding: 3px 0px 3px 3px; margin: 5px 1px 3px 0px; border: 1px solid rgba(81, 203, 238, 1); } https://css-tricks.com/snippets/css/glowing-blue-input-highlights/ Best regards.
  21. Hi Tim, If I understand correctly, try: just add this: .x-progress-bar .x-progress-default .x-progress-bar { background-image: none; background-color: #ddffdd; border-color:#000000; } Best regards.
  22. Hi, may help.. http://forums.unigui.com/index.php?/topic/4542-howto-formborderstylenone-and-no-resize/&do=findComment&comment=22647 http://forums.unigui.com/index.php?/topic/3992-hideremove-the-form-border/&do=findComment&comment=19269 Best regards.
  23. Hi, Try: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS('var el = document.getElementById("'+UniMemo1.JSName+'_id-inputEl"); val = el.value; alert(val.slice(0, el.selectionStart).length)'); end; Best regards!
  24. Sherzod

    Minumum form size

    Hi mika! If I understand correctly, try: MainForm -> ClientEvents -> UniEvents -> add beforeInit function: function window.beforeInit(sender) { sender.minWidth = 200; sender.minHeight = 200; //sender.maxWidth = 400; //sender.maxHeight = 400; } Best regards!
×
×
  • Create New...