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
 What About SetContentFilter()?

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
cdrozdowski111 Posted - 02/02/2013 : 9:01:13 PM
OriginPro 9.0.0 SR1, Win7 64-bit, running in VMware Fusion 5.0.2

While perusing the Origin C source code to help find a solution for a custom dialog I am creating, I came across the SetContentFilter() method.

Based on testing, it appears to mask what users can enter on Dialog controls (which was exactly what I was looking for).

But I am curious as to where it comes from. I can find no reference to it online. Is it an Origin C specific method?

1   L A T E S T    R E P L I E S    (Newest First)
Cecilia_syy Posted - 02/04/2013 : 01:06:20 AM
Hi,
As your testing result shows, it is a member function which can mask what users can enter on Dialog control. The syntax is
BOOL Edit::SetContentFilter(int nFilter)

The Parameter nFilter could be
CF_DOUBLE,	//allow unsigned numeric only
CF_INTEGER,	//allow unsigned integer only
CF_SIGNED_DOUBLE,	//allow signed numeric only
CF_SIGNED_INTEGER,	//allow signed integer only


Cecilia
OriginLab Corp.


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