czar's Forum Posts

  • Hooray! A break through

    http://numberworks.com/nwonl/caretdemo/index.html

    Ashley, we have implemented a before and after text expression.

    This works in firefox/chrome not in IE, would it be possible to have this functionality added to the official TextBox?

    It would be very useful in long term for me and I hope others will also find a use for it.

    https://www.dropbox.com/s/6eujr7t39njz8vn/TextBoxNWW.zip

    I have included the Custom component code which is derived from textbox and I have included a capx that shows what I use it for.

  • We are looking at making a textbox variant and seeing if we can implement a BeforeText and AfterText expression, i.e., text before and after the caret. Out of my comfort zone

  • CaptainIce to get any response I think you will need to show everyone what you are working on and if you are making a commercial product then it is a bit rich to expect artists to work for nothing. Having a name on a product doesn't really cut it.However, maybe you will get someone intersted enough.

  • Rayek I know what you mean I had similar shock recently. However, I have found ludei to be very receptive this week. Why not email them? devsupportzdj@ludei.com

    They are currently helping me work out what is required to get my ipad working on older hardware.

  • Ashley, this suggestion has been made before but I am going to ask again.

    In order to get my app to work with ipod touch, iphone 3gs and ipad 1 I have to reduce my textures.

    The problem is that the when sprites are resized the size they are in the layout changes to match.

    Could you please look into an option where it is possible to resize the texture but keep its representation in the layout the same size, i.e., it will stretch.

  • ludei,

    I have just batch converted my pngs to 40% original size and then with Texture Reducer I get my app up an running - nothing looks right but I can see it works. How can we use the texture reducer in the cloud compiler? i.e., not through the launcher

  • bump.

    The inability to expose the caret position is a real problem for me and this app. I would appreciate any help.

    I am prepared to offer a bounty if someone can show me how to retrieve the caret position of an edit field. Either through a custom component or based on the official textbox.

    I have been making a case for using C2 at work and I made a small demo proejct that everyone loved now working on a bigger project and it starting to look like C2 cannot handle the job :(

    Help!

  • Pinco,

    I have a capx to explain my issue here

    https://www.scirra.com/forum/textbox-caret-position_topic73092.html

    Do you think it is possible to expose where the caret is within the edit box?

  • ludei, thanks for the update. Appreciated.

    Will compatibility for various devices be improved. My current app takes about 29MB of RAM (estimated by c2) and yet it won't function on ipad 1, ipod touch and iphone 3gs. Is there anything we can do to help improve compatibility with these older idevices?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here is a capx of the app as it currently - very early

    https://www.dropbox.com/s/k544igpnaifrqez/InsertText_Caret.capx

    Simply open it type in x+2

    use left arrow to sit between x and the + and then click the n^2 virtual key, i want the exponent to appear where the user had their cursor but I don't know where their cursor was.

  • Yes setting a breakpoint would be an invaluable addition

  • Hoyer Bit hard to explain. I am using c2 for maths software.

    I am using a text box to allow user to enter text. However, a virtual keyboard is also on screen that is requires to enter text that the student cannot enter by keyboard alone, e.g., exponents

    i.e, I need to know where the caret is so that I can insert text.

    I can post a capx tomorrow if it helps

  • Pinco, is there a property that shows where the cursor/caret is?

    e.g.,

    "I am ^ typing"

    if I want to be able to insert text at the ^, where the user has put the cursor I need to know what that position is.

    I found this on the net but no idea where to begin

    function setCaretPosition(elemId, caretPos) {

        var elem = document.getElementById(elemId);

        if(elem != null) {

            if(elem.createTextRange) {

                var range = elem.createTextRange();

                range.move('character', caretPos);

                range.select();

            }

            else {

                if(elem.selectionStart) {

                   elem.focus();

                   elem.setSelectionRange(caretPos, caretPos);

                }

                else

                   elem.focus();

            }

        }

    }

  • simple question difficult answer.

    Is there a way to know at which position the caret/cursor is?

  • The problems seems to be pretty bad at the moment though. I wish it would be sorted as it is a frustration that we don't need.