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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Controlling buttons via code

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook Posted - 10/08/2005 : 03:15:17 AM
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

1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 10/08/2005 : 07:46:54 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000