Jump to content

MarkLince

uniGUI Subscriber
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by MarkLince

  1. Hi,

    I Know there is UniHtmlMemo but, is there anyway a Unimemo can use html to display any formatting of text?

     

    The reason I ask is that using Fastreports and its memoview component can only understand very basic html tags so unihtmlmemo is too much for it to handle. If UniMemo can do html I want to create my own editor to only handle basic html tags which fastreports memoview can read from a db.  If that makes any sense to anyone!

     

    Mark

     

     

  2. This is a better option than Bryntum, better licencing/ cost 

    https://dhtmlx.com/docs/products/dhtmlxScheduler/?fromMenu

     

    This is Time line example which is what I'm most interested in.

    https://docs.dhtmlx.com/scheduler/samples/09_api/04_highlighted_sections_units.html

     

    Just need someone to port it to uniGUI!! or at least help with the JS

     

    Schedulers are everywhere these days, having a UniGUI component like this would certainly broaden the appeal of uniGUI, I'm sure of it.

    • Upvote 2
  3. TMS seem to all but abandoned development of their Intrawebs components and just seem to rebuild with new versions of delphi. The planner component is really old and has not changed for quite a few years. If UniGUI keeps making traction and users grow then maybe TMS will pick it up, but they seem to be into many things these days and dot net features heavily.

    • Upvote 1
  4. Hi Hayri,

    I have a problem with UniSPCheckCombo component.

     

    I have 2 UniSpCheckCombo called combo1 and combo2

     

    I'm population combo2 with values selected in combo1

    like;

    procedure TSearchForm1.combo1Change(Sender: TObject);
    var
    list1:TStringlist;
    count1:integer;
    begin
      list1:=Tstringlist.Create;
      combo2.BeginUpdate;
      combo2.clear;
      try
        list1.Sorted:=true;
        list1.Text:=combo1.SelectedIndex.Text;
        for count1 := 0 to list1.Count-1 do
        combo2.Addx(combo1.items[strtoint(list1[count1])],combo1.values[strtoint(list1[count1])]);
      finally
        combo2.EndUpdate;
        list1.Free;
      end;
    end;
    

    this works fine, but if I then change the selected items in combo1, then its weird as combo2 displays the items in drop down like a group set (see image)

    I can't see whats doing it please can you help.

     

    Thanks

    Mark

     

    post-4824-0-60118200-1502631149_thumb.png

    post-4824-0-36712300-1502631416_thumb.png

  5. I'm very interested in this also and need it for a project in pipeline.

    The bryntum scheduler is very expensive and maybe not usable with UniGUI and there will certainly be licencing issues.

    That said I would pay a decent wedge of cash for a UniGUI component like this, just not Bryntium price/ contract. 

    Mark

    • Upvote 1
  6. Hi,

    easiest way to save the png is to save it from the unimimage like;

     

    unimimage.picture.savetofile('YourPath/YourFilename.png')

     

    The other changes require some interaction with the js of the jquery control, I will look at that for you over the next few days, I'm  very busy at the moment.

    Regards

    Mark

  7. Hi,

     

    With ISAPI ap, can anyone tell me how to set Content Security Policy Header for UNIgui?

     

    I have tried to set this in IIS 8 using the Header Response but no matter what options I set, my ap stops loading (loading....)

     

    Thanks in advance.

    Mark

  8. Hi,

    Also This doesn't hide the selection it just adds custom color to cell/row selected and sets a border width of 0 to the grid body.

    .x-grid-row .x-grid-cell-selected {
      background-color: #FFFFFF !important;
    }
    .x-panel .x-grid-body {
        border-width: 0
    }
    

    To hide / prevent grid selection;

     

    uniguigrid-->clientevents-->unievents

    function beforeInit(sender, config)
    {
      sender.disableSelection = true;
    }
    

    Mark

    • Upvote 1
  9. A parent with no child is no longer a parent, it is a leaf. i.e. a node can be called a parent if it has 1 or more children.

     

    I do get that.

     

    I was just thinking of the parent as a "container" and children as "objects" that can be assigned to a container, in that instance a container is still a container even if its empty. Its not a big issue at all.

     

    With help, I have all my questions answered now like so;

      UniSession.SetStyle(
        ' .x-tree-view { background-color: ' + uniColor2Web(grouptree1.color) + ';'+
        '}'+
        ' .x-tree-view .x-grid-cell-inner-treecolumn{ background-color: ' + uniColor2Web(grouptree1.color) + ';'+
        '  color: ' + uniColor2Web(grouptree1.Font.Color) +';'+
        '  fontSize:' + uniColor2Web(grouptree1.Font.Size) +';'+
        '  font: ' + grouptree1.Font.ToString(False, False, False, False) +';'+
        '}'+
        ' .x-tree-view .x-grid-cell-selected .x-grid-cell-inner-treecolumn { background-color: #99cc00;'+
        '  color: ' + uniColor2Web(clBlack) +';'+
        '  fontSize:' + uniColor2Web(grouptree1.Font.Size) +';'+
        '  font: ' + grouptree1.Font.ToString(False, False, False, False) +';'+
        '}'+
        ' .x-tree-icon { height: 36px; width: 32px;'+
        '}'+
        '.x-tree-no-lines .x-tree-expander { background-image: url(files/elbow-plus-nl.png);'+
        '}'+
        '.x-tree-no-lines .x-grid-tree-node-expanded .x-tree-expander {background-image: url(files/elbow-minus-nl.png);'+
        '}'+
        '.x-tree-icon-leaf { background-image: url(files/leaf.png);'+
        '}'+
        '.x-tree-icon-parent { background-image: url(files/folder.png);'+
        '}'+
        '.x-grid-tree-node-expanded .x-tree-icon-parent { background-image: url(files/folder-open.png);'+
        '}'+
        '.x-grid-row-selected .x-grid-cell { background-color:#99cc00 !important;'+
        '}'
      );
    

    Thanks again

    Mark

  10.  

    Below methods are already implemented for TreeGrid.

      procedure FullExpand;
      procedure FullCollapse;

     

    Yes thanks Farshad. I did overlook those methods.

  11. Hi,
    Also I have noticed that when there is a parent with no child nodes the icon is leaf.png not folder.png which is what I would expect, any ideas about that?
    Thanks
    Mark

     

    post-4824-0-51697400-1495754036_thumb.png

     

     

     

     

×
×
  • Create New...