Welcome to %s forums

BrainModular Users Forum

Login Register

Input type

Create your own modules in C++
Post Reply
Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 20 May 2009, 11:47

Hi,

How can I create an input like in the A*B module?
I'm saying an input without prefixed limits and if there's no cable connected I can double ckick on the module and type a number in.
I tried with a DataField type with ReadOnly false, but the number is not stored in the field.

Thanks

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 23 May 2009, 22:31

sorry to answer so lately, I was on the road
you can set
ParameterType = ptDataField.

also set

in the
<float.h>
they are several definitions
#define FLT_MAX 3.402823466e+38F /* max value */
#define FLT_MIN 1.175494351e-38F /* min positive value */

so you can set your parameter to

minValue = FLT_MIN
maxValue = FLT_MAX

Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 24 May 2009, 15:24

Nice, thanks,

the other problem is that I can't see the value stored in the module, I only see the caption of the DataField...

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests