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
 Origin Forum
 UIM - combox OriginPro7G
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blt2si

Germany
37 Posts

Posted - 10/29/2003 :  09:33:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi all,
This may seem like a really simple thing, but i can't actually get it to work. How do i edit the list and add names to a UIM COMBOX (in OriginPro 7G)? I've tried right clicking on the COMBOX and trying to access properties but it wont open the properties menu at all. Is there something i have to activate to allow it to work or am i going about it all wrong?
Thanx heaps for any help!

greg

USA
1379 Posts

Posted - 10/29/2003 :  11:33:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can only programmatically access the ComboBox and ListBox items - that is, a user can only select from the items in the list.
If you need to allow the user to edit the lists, then you need to provide the controls and code to do that.



Go to Top of Page

blt2si

Germany
37 Posts

Posted - 10/30/2003 :  03:34:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, maybe i didnt explain that properly! Im doing programming in Origin using Labtalk and would like to create a list for a user to select from, which is why i want to insert a COMBOX and edit the list with choices for the user to choose from. If the only way to access the combox is through programming, can anyone provide a small example of how to program the choices on these lists? Thank you!!
Go to Top of Page

ToniMueckl

Germany
Posts

Posted - 11/01/2003 :  4:32:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

the following examples I took from the (english version of the) Origin7G help file on the LabTalk getn (GetNumber) command:

----

%A = enter name;
i = 1;
j = 1;
k = 0;
%B = "line1 line2 line3"; // drop down list with three entries
getn
(X Minimum) MyVar // a variable
(my boolean) k:2s // show remaining items if k = 1 (checked)
(my list) i:B // use %B as the list items
(Color) j:@C // color list, init j = 1
(Your Name) %%A // %% to preserve %A for holding the name
(Title of this dialog); // end of getnumber

----
You also might find more details there. You can create a dialog window with up to nine different boxes.

Bye
Toni
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/01/2003 :  6:57:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
UIM documentation is in your OriginPro Manual. COMBOX starts on page 223 in the English version.

BTW, if you're using Origin 7 and have placed your COMBOX in the plot control region you won't be able to edit it manually by accessing it with the mouse. But Labtalk properties and methods should still work. (I mention that because you said you can't get at its properties.)

...As I recall, COMBOX has no properties that are manually editable anyway. In other words, the Properties selection on its context menu does nothing no matter where you've placed it.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 11/01/2003 7:22:29 PM

Edited by - Mike Buess on 11/01/2003 7:40:53 PM
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