Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. Delphi Developer: I also had this error ONLY in latest version (6.5) and I think it because the way that Extjs 6.5 works (MVC) and you must use 'requires' for the used class.

     

    I mean if I use custom component of Extjs, for example: Ext.draw.Container it will through the same error unless you add the appropriate class in the 'requires'  of the App, and I don't know where to do that?

     

    I already sent Farshad a PM about this, do you have any solution for that?

     

     

    Example code: try to execute this in the console while running your app

    var drawContainer = Ext.create('Ext.draw.Container', {
        renderTo: Ext.getBody(),
        width:200,
        height:200,
        sprites: [{
            type: 'circle',
            fillStyle: '#79BB3F',
            r: 100,
            x: 100,
            y: 100
         }]
    });
    

    The error:

    Uncaught TypeError: c is not a constructor
        at eval (eval at getInstantiator (ext-all.js:20), <anonymous>:3:8)
        at Object.create (ext-all.js:20)
        at <anonymous>:1:25
    

    If I add 'unichart' to uses clause then it works fine :-)

  2. Hello,

     

    When I set the url for the uniimage:

     img:=TUniImage.Create(self);
     img.Parent:=pnl;
     img.LayoutConfig.Margin:='0 4 0 4';
     img.Url:='files/images/Desktop/docket/plus.png';
     img.Width:=9;
     img.Height:=9;
    

    The Image dosn't displayed because the framework adds width=0 and height=0 why????

    <img src="files/images/Desktop/docket/plus.png" width="0" height="0"> 

    url.png

     

    Why doesn't it set the url only without the width/height??

  3. Hi,

     

    I really love unigui and love you all guys... and a lot of you ask me for help here and help there especially with 'layouts' so I thought maybe I should do it more professional, so I will ask you:

     

    [unigui layouts - Extjs / Touch]

    Do you prefer a guide - pdf OR online live video conference (2 hours)?

    • Upvote 2
  4. Hello,

     

    When we use 'GlobalCache' in ServerModule to create the images ONLY once when the app runs for the First time the unigui also creates the images in the session directory and the actually image's url is the 'cache/res/....'. here the unigui creates double instance for each image for each session !!!!

     

    Any explanation?

×
×
  • Create New...