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
 Slider dialog as a Labtalk function

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
aplotnikov Posted - 06/23/2020 : 02:39:00 AM
OriginPro 2020b (64-bit) 9.7.5.184
Operating System: W10Pro v.1809

Hello,

I would appreciate an example of a Slider dialog implementation (using Slider class) as a function for Labtalk (should return Position value).

Kind regards,

Alex
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 06/30/2020 : 9:08:08 PM
We have not improved LT GetN for 5 years, so we can add this in 2021.

I have added ORG-22180


Just curious that you posted this on OC forum, and you can certainly have a slider in OC like this

#include <GetNBox.h>
void slider()
{
    GETN_BOX( tr );
    GETN_SLIDER(pos, "From", 0, "0|255|255")
    if( GetNBox( tr ))
        printf("result=%d\n", tr.pos.nVal );
}




CP
aplotnikov Posted - 06/30/2020 : 11:17:48 AM
Thanks for reply. Surely I took a look at this code before asking. I need something simplier - just a single slider returning an integer value. I am not as familiar with OriginC to modify this code quickly by myself and asked for help.
lkb0221 Posted - 06/30/2020 : 09:20:26 AM
Something like this?
https://www.originlab.com/doc/OriginC/odk/Accessing-a-Static-and-Slider-Controls-with-Origin-C

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