Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

paste text in edittext problem

Guest
May 11, 2011 May 11, 2011

Copy link to clipboard

Copied

Hi All,

I have a edittext, sometimes  I want to copy some text into this edittext, but when i enter ctrl+v, the text is paste into the document textframe. How can i solve this?

Thanks!!!

//--------------------

  #targetengine "session";
  var w = new Window ("palette");
  var et=w.add ("edittext");
  et.size=[200,20];
  w.show();

//--------------------

TOPICS
Scripting

Views

783
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 11, 2011 May 11, 2011

Copy link to clipboard

Copied

Hi, try this.

add line before show the window.

....

et.active = true;

w.show();

this works for me (OSX 10.6 + ID CS4)

thank you

mg.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 12, 2011 May 12, 2011

Copy link to clipboard

Copied

Thank you!  I test it, still have same problem.

my system: win xp + cs4

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 12, 2011 May 12, 2011

Copy link to clipboard

Copied

I need help please

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
May 12, 2011 May 12, 2011

Copy link to clipboard

Copied

Maybe you need:

#targetengine "session";

var w = new Window ("palette");
var et=w.add ("edittext");
et.size=[200,20];

w.onShow = function()
     {
     w.active = true;
     et.active = true;
     };

w.show();

@+

Marc

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 12, 2011 May 12, 2011

Copy link to clipboard

Copied

Thank you!

same problem.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2011 May 13, 2011

Copy link to clipboard

Copied

LATEST

This is a known problem: you can't use Ctrl+V to paste text into edittext controls. But this works: right-click, then pick Paste from the context menu.

Peter

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines