Jump to content
uniGUI Discussion Forums

andyhill

uniGUI Subscriber
  • Content Count

    566
  • Joined

  • Last visited

  • Days Won

    1

andyhill last won the day on November 30 2017

andyhill had the most liked content!

Community Reputation

9 Neutral

About andyhill

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Melbourne Australia

Recent Profile Visitors

679 profile views
  1. andyhill

    ajaxCallback problem

    AjaxEvent ONE Inside AjaxEvent ONE at end of event call AjaxEvent TWO
  2. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    TreeMenu is now much more sluggish, also I had to put a lot of Ajax delays to use it. Here is my DYNAMIC TreeMenu runtime clear/add node code:- MainModule //////////////////////////////////////////////////////////////////////////// MainmForm.SystemMenu.BeginUpdate; MainmForm.SystemMenu.Items.Clear; MainmForm.SystemMenu.JSInterface.JSCode(#1'.getStore().each(function(item){item.remove()});'); MainmForm.SystemMenu.EndUpdate; UniSession.Synchronize(); MainmForm //////////////////////////////////////////////////////////////////////////// // Init (TreeMenu is built from MyTreeMenuItems Visible Tag) //////////////////////////////////////////////////////////////////////////// SetLength(UniMainModule.MyTreeNodes, 0); j:= -1; // Walk MyTreeMenuItems and Build TreeMenu SystemMenu.BeginUpdate; for i:= 0 to Length(UniMainModule.MyTreeMenuItems)-1 do begin // Make Visible ? if UniMainModule.MyTreeMenuItems.Visible = True then begin Inc(j); // Used To Keep Tag In Proper Sequence if ( (i < 16) or (i = 20) or (i = 26) or (i = 33) or (i = 40) or (i = 41) ) then begin // Parent Nodes (15, 20, 26, 33 have multiple Child Nodes) SetLength(UniMainModule.MyTreeNodes, Length(UniMainModule.MyTreeNodes)+1); UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)]:= SystemMenu.Items.Add(nil, 'Parent'); UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].Text:= UniMainModule.MyTreeMenuItems.Name; UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].SelectedIndex:= i; UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].Tag:= i; LastParentIndex:= j; end; if ( ((i > 15) and (i < 20)) or ((i > 20) and (i < 26)) or ((i > 30) and (i < 33)) or ((i > 33) and (i < 40)) ) then begin // Children Nodes (they use last Parent Node[LastParentIndex]) SetLength(UniMainModule.MyTreeNodes, Length(UniMainModule.MyTreeNodes)+1); UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)]:= SystemMenu.Items.AddChild(UniMainModule.MyTreeNodes[LastParentIndex], 'Child'); UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].Text:= UniMainModule.MyTreeMenuItems.Name; UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].SelectedIndex:= i; UniMainModule.MyTreeNodes[High(UniMainModule.MyTreeNodes)].Tag:= i; end; end; // Visible end; // for SystemMenu.EndUpdate; SystemMenu.Refresh; // New (required for Sencha 7.x) UniSession.Synchronize;
  3. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    Update, I blew away the cache and some icons now appear -however- all of my working TreeMenu code no longer works - investigating ...
  4. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    My legacy WebApp (pre Sencha 7) is massive, it is not easy to strip out 1,000's of lines of code. How about the other users who reported the same, is it resolved for them ?
  5. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    At the very start of this post I show images clearly depicting missing icons, also others have reported the very same issue along with images showing missing icons.
  6. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    Farshad, Sherzod, I have asked many times how to resolve pre-Sencha 7 projects icon paint issues, you say it was fixed in 1531 but it is not (I am using projects built before Sencha 7) - what do I have to do to make them work like they did in Sencha 6.7 ?
  7. andyhill

    Clear (Empty/Flush) Ajax Event Queue - How ?

    When many Ajax Events are in the queue and each one when run takes time, I decide based on a particular user action at runtime I no longer want the remaining unrun queued events to run, I therefore need to STOP AND REMOVE ALL QUEUED EVENTS (DELETE). eg. while (!q.isEmpty()) { q.dequeue(); } $(selector).clearQueue(queueName) var stack = []; //put value on top of stack stack.push(1); //remove value from top of stack var value = stack.pop(); var queue = []; //put value on end of queue queue.push(1); //Take first value from queue var value = queue.shift();
  8. I have a WebApp built around the Canvas Object (both Desktop and Mobile). I need to clear the Ajax Event Queue before firing a particular Ajax Event, please advise how - thanks in advance.
  9. andyhill

    Toolbar - NativeImageList - ToolButton - Fontawesome

    Farshad, Please advise
  10. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    Sencha 7.0.0 Uni 1.90.0.1531 makes no difference, icons still missing. Question: When a UniGUI WebApp is made for the first time it obviously gets all of the required CSS setup. If now we go from one UniGUI version to another on that same project, does this CSS get replaced or updated ?
  11. andyhill

    Sencha 7-1-0 UniGUI 1-90-0-1528 Update Issues

    I still need a solution to fix the failure to paint icons that I reported some time ago plus many others have had the same issue. What do we need to do to fix this (Sencha 7.x) icon issues both Desktop and Mobile on pre-sencha-7 projects ?
  12. I have tried many different ways to use a custom fontawesome image for a toolbar button: Toolbar - NativeImageList - ToolButton - Fontawesome. Server: FontAwesomeVersion:= fontAws5; All attempts ({imageindex: -1, 0}; {IconCls: male, f183, fa-183}) do not produce the image, please advise - thanks.
  13. andyhill

    Canvas Draw Polygon with Fill in one operation

    Yes, Yes, Yes, my humblest apologies for making such a stupid mistake - Thank You Farshad.
  14. andyhill

    Canvas Draw Polygon with Fill in one operation

    Tried a few variations, still no go. with cArea do begin JSInterface.JSCall('var context=MainForm.cArea._cc_; '+ 'var poly = ['+s+']; '+ 'var shape = poly.slice(0); '+ '{ '+ ' context.fillStyle = ''#f00'' '+ ' context.beginPath(); '+ ' context.moveTo(shape.shift(), shape.shift()); '+ ' while(shape.length) '+ ' { '+ ' context.lineTo(shape.shift(), shape.shift()); '+ ' } '+ ' context.closePath(); '+ ' context.fill(); '+ '}; ' ); end;
  15. andyhill

    Canvas Draw Polygon with Fill in one operation

    I tried UniSession.AddJS( as well
×