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
 Forum for Origin C
 How to display the correct icon ?

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
rainlane Posted - 03/16/2017 : 11:29:13 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 03/17/2017 : 04:13:26 AM
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

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