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
 Forum for Origin C
 How to display the correct icon ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rainlane

China
22 Posts

Posted - 03/16/2017 :  11:29:13 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 9.0
Operating System:Windows XP

Hi:
In the legend, I using the " \l(1) " to show the icon.
Now, I want to show the icon on a dialog, how to do it?




    #include <GetNBox.h>
    void GETN_COMBO_ex1()
    {
        GETN_BOX( treeTest );
        GETN_COMBO(order, "legend", 2, "\l(1) |\l(2) |\l(3) |\l(4) ")
 
        if( GetNBox( treeTest ))
            out_tree( treeTest );
    }


I used the code,but it didn't work?
Can somebody help me?
Thanks!

forum

yuki_wu

896 Posts

Posted - 03/17/2017 :  04:13:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

In fact, \l(1) specifies the legend of the first plot in the active layer. You can check this page:
http://originlab.com/doc/LabTalk/ref/Legend-Substitution-Notation

Not sure whether you want to show a symbol list control in a GetN dialog. If yse, GETN_SYMBOL can help, for example:

void test_symbol()
{
	GETN_TREE(tr);
	GETN_SYMBOL(Symbol, "My Symbol", 2);
	GetNBox(tr);
}

Are you trying to build your own dialog now? I remember that you asked how to access Origin in Java, right? There is a new feature in Origin 2017 that you may interested in. Origin C now supports using HTML to build dialog boxes in Origin, you should have a look:
http://www.originlab.com/doc/OriginC/guide/HTML-Dialog

Regards,
Yuki
OriginLab
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