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
 Controlling buttons via code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 10/08/2005 :  03:15:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5SR5
Operating System: Win 2000

Hi,

I want to alter buttons eg simple text buttons at runtime and so have a general question as to what can be done via coding. The reason is I would like to share templates across similar appplications which have different requirements.

My immediate example is that I can change numitems (eg to 1) property but am then left with a large background corresponding to the original width.

The next requirement would be to change the text and code behind the button.

Any help would be great thanks.

Cheers,

Pete

Mike Buess

USA
3037 Posts

Posted - 10/08/2005 :  07:46:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Pete,

UIM objects can be sized and moved with standard object properties... tbutn.width, tbutn.height, tbutn.left and tbutn.top.

tbutn.l1$="Button Text";

Button code is in the Label Control box. The only way to change it is to put all action in a file... run.section(File,Section) ...and edit the file.

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