The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 DB list control
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mike Buess

USA
3037 Posts

Posted - 03/13/2002 :  5:38:58 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a way to scroll using Labtalk? I have a scrollable list with several rows. LstCtrl.choice=30 will select the 30th row but won't bring it to the top of the list. I need something like the "Go to Row" command for worksheets.

Mike Buess
Origin WebRing Member

rtoomey

USA
184 Posts

Posted - 03/14/2002 :  11:43:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

I believe the shift(offset) method could be used in conjunction with the choice property.

For instance, if the Boltzmann function (in the Origin Basic Functions category) is selected in the NLSF Wizard, I can move it up to the top and then back again as follows:

store=NLSFwiz!Step.Function.FuncList.choice; // store the current choice
NLSFwiz!Step.Function.FuncList.shift(-1*store); // shift the item up to the top
NLSFwiz!Step.Function.FuncList.shift(store); // shift the item back to its original location

Hope this helps.

- Ryan


Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/14/2002 :  12:49:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, Ryan. I'll try it tonight.

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000