The Origin Forum
File Exchange
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
 Slider dialog as a Labtalk function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aplotnikov

Germany
65 Posts

Posted - 06/23/2020 :  02:39:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

lkb0221

China
484 Posts

Posted - 06/30/2020 :  09:20:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Something like this?
https://www.originlab.com/doc/OriginC/odk/Accessing-a-Static-and-Slider-Controls-with-Origin-C
Go to Top of Page

aplotnikov

Germany
65 Posts

Posted - 06/30/2020 :  11:17:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Edited by - aplotnikov on 06/30/2020 11:20:30 AM
Go to Top of Page

cpyang

USA
1121 Posts

Posted - 06/30/2020 :  9:08:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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