A question about the textpad-component in SAS/AF

Accepted Solution Solved
Reply
Super Contributor
Posts: 298
Accepted Solution

A question about the textpad-component in SAS/AF

Hi everyone,

Building applications is still a bit new for me, so this question may seem stupid for experts in SAS/AF.

I have added a textpad-component in my frame. Then, in my scl-program I would like to have some control of the text that appears in the textpad, forexample:

rc=insertc(mytextpad.text,'This is the firstline',-1);

rc=insertc(mytextpad.text,'This is the second line',-1);

Why does the textpad not show these two lines? Do I need to call some function to get the textpad updated with the new entries?

I made some experience with using a text-entry component instead. here the text is autmatically updated, but this component can only contain one line.

Jacob


Accepted Solutions
Solution
‎03-10-2014 04:20 AM
SAS Super FREQ
Posts: 708

Re: A question about the textpad-component in SAS/AF

Posted in reply to JacobSimonsen

Since you only change the SCL List contents the widget is not aware of any changes.

You can you the _refresh, or _needRefresh method, so that the widget redraws it s content.

Something like:

   rc = insertc(textPad.text, tempString, -1);

   textPad._needRefresh();

View solution in original post


All Replies
Solution
‎03-10-2014 04:20 AM
SAS Super FREQ
Posts: 708

Re: A question about the textpad-component in SAS/AF

Posted in reply to JacobSimonsen

Since you only change the SCL List contents the widget is not aware of any changes.

You can you the _refresh, or _needRefresh method, so that the widget redraws it s content.

Something like:

   rc = insertc(textPad.text, tempString, -1);

   textPad._needRefresh();

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 183 views
  • 0 likes
  • 2 in conversation