Help with variable FEQ's in run time CREATE's 
Author Message
 Help with variable FEQ's in run time CREATE's

Hi Ya'll;

I'm trying to create a kind of a survey form with 19 option controls, and 11
radios within each option. Will the following technique work?

YOption = 46    ! Option Y Position
Xradio = 230     ! Radio X Position

LOOP Z = 1 TO 19
  X += 1
  OptFeq = CREATE(0,CREATE:Option,TabFeq)
  Feq[X] = OptFeq
  ?Feq[X] {PROP:Xpos} = 223
  ?Feq[X] {PROP:Ypos} = YOption
  ?Feq[X] {PROP:Width} = 121
  ?Feq[X] {PROP:Height} = 13
  ?Feq[X] {PROP:TRN} = 1

  LOOP ZZ = 1 TO 11
    X += 1
    Feq[X] = CREATE(0,CREATE:Radio,OptFeq)
    ?Feq[X] {PROP:Xpos} = XRadio
    ?Feq[X] {PROP:Ypos} = YOption + 2
    ?Feq[X] {PROP:Width} = 9
    ?Feq[X] {PROP:Height} = 10
    ?Feq[X] {PROP:TRN} = 1
    XRadio += 10
  END

  YOption += 10
  END

TIA

Greg Scales



Sat, 01 Oct 2005 06:24:06 GMT  
 Help with variable FEQ's in run time CREATE's
| Hi Ya'll;
|
| I'm trying to create a kind of a survey form with 19 option controls, and 11
| radios within each option. Will the following technique work?
|
| YOption = 46    ! Option Y Position
| Xradio = 230     ! Radio X Position
|
| LOOP Z = 1 TO 19
|   X += 1
|   OptFeq = CREATE(0,CREATE:Option,TabFeq)
|   Feq[X] = OptFeq
|   ?Feq[X] {PROP:Xpos} = 223
|   ?Feq[X] {PROP:Ypos} = YOption
<snip>

It should work once you remove the "?" from ?Feq[X].  There is no such field equate
created by the compiler when you create the controls at runtime.  You want the integer
value before the property expression.   ?MyField{PROP:Xpos} resolves to something like
8{PROP:Xpos}.  (I made up the "8")

HTH,
Larry Sand



Sat, 01 Oct 2005 06:42:08 GMT  
 Help with variable FEQ's in run time CREATE's
Thanks Larry;

The '?' didn't really look cool to me either ...

Greg


Quote:

> | Hi Ya'll;
> |
> | I'm trying to create a kind of a survey form with 19 option controls,
and 11
> | radios within each option. Will the following technique work?
> |
> | YOption = 46    ! Option Y Position
> | Xradio = 230     ! Radio X Position
> |
> | LOOP Z = 1 TO 19
> |   X += 1
> |   OptFeq = CREATE(0,CREATE:Option,TabFeq)
> |   Feq[X] = OptFeq
> |   ?Feq[X] {PROP:Xpos} = 223
> |   ?Feq[X] {PROP:Ypos} = YOption
> <snip>

> It should work once you remove the "?" from ?Feq[X].  There is no such
field equate
> created by the compiler when you create the controls at runtime.  You want
the integer
> value before the property expression.   ?MyField{PROP:Xpos} resolves to
something like
> 8{PROP:Xpos}.  (I made up the "8")

> HTH,
> Larry Sand



Sat, 01 Oct 2005 06:46:40 GMT  
 Help with variable FEQ's in run time CREATE's
Hi Greg,

On Mon, 14 Apr 2003 17:24:06 -0500, "Greg Scales"

Quote:

>  Feq[X] = OptFeq
>  ?Feq[X] {PROP:Xpos} = 223

No ?  Just plain old Long<g>  You may need to adjust the x/y on the
radio buttons - it may be relative to the x/y of the group they belong
to, but I may be confusing this with template group/radio so don't
take me too seriously on this one<g>

Best regards,

Arnr Baldvinsson
Icetips Software        
San Antonio, Texas, USA
www.icetips.com

Subscribe to information from Icetips.com:
http://www.icetips.com/getnotificationinfo.htm



Sat, 01 Oct 2005 07:10:59 GMT  
 Help with variable FEQ's in run time CREATE's
Hi Arnor;

Longs? Why not Shorts?

I took the X/Y from creating the controls in the screen formatter, and
looking at the pattern. If that doesn't work then sheeesh!

Thanks, Arnor.

Greg


Quote:
> Hi Greg,

> On Mon, 14 Apr 2003 17:24:06 -0500, "Greg Scales"

> >  Feq[X] = OptFeq
> >  ?Feq[X] {PROP:Xpos} = 223

> No ?  Just plain old Long<g>  You may need to adjust the x/y on the
> radio buttons - it may be relative to the x/y of the group they belong
> to, but I may be confusing this with template group/radio so don't
> take me too seriously on this one<g>

> Best regards,

> Arnr Baldvinsson
> Icetips Software
> San Antonio, Texas, USA
> www.icetips.com

> Subscribe to information from Icetips.com:
> http://www.icetips.com/getnotificationinfo.htm



Sat, 01 Oct 2005 07:29:23 GMT  
 Help with variable FEQ's in run time CREATE's
Hi Greg,

On Mon, 14 Apr 2003 18:29:23 -0500, "Greg Scales"

Quote:

>Longs? Why not Shorts?

Help on "CREATE (return new control created)"

Return Data Type:        SIGNED

EQUATES.CLW:

  COMPILE('***',_WIDTH32_)
SIGNED                  EQUATE(LONG)
UNSIGNED                EQUATE(LONG)
_nopos                  EQUATE(080000000H)
  ***

Best regards,

Arnr Baldvinsson
Icetips Software        
San Antonio, Texas, USA
www.icetips.com

Subscribe to information from Icetips.com:
http://www.icetips.com/getnotificationinfo.htm



Sat, 01 Oct 2005 10:13:30 GMT  
 Help with variable FEQ's in run time CREATE's
Oh yea .... :-)

Hey, it's gettin' late!

Thanks,

Greg


Quote:
> Hi Greg,

> On Mon, 14 Apr 2003 18:29:23 -0500, "Greg Scales"

> >Longs? Why not Shorts?

> Help on "CREATE (return new control created)"

> Return Data Type: SIGNED

> EQUATES.CLW:

>   COMPILE('***',_WIDTH32_)
> SIGNED                  EQUATE(LONG)
> UNSIGNED                EQUATE(LONG)
> _nopos                  EQUATE(080000000H)
>   ***

> Best regards,

> Arnr Baldvinsson
> Icetips Software
> San Antonio, Texas, USA
> www.icetips.com

> Subscribe to information from Icetips.com:
> http://www.icetips.com/getnotificationinfo.htm



Sat, 01 Oct 2005 12:49:15 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Help on 'timing loop'

2. Help with USE 'variable' visibility

3. un-'upvar'ing/un-'global'ing variables

4. ! (A.S.A.P) Help Please Creating Menu Choices At Run-Time

5. Vo: Help creating a Dialog window at Run-time

6. Vo: Help Creating a dialog window at Run time

7. Defining Menu's at run time

8. Lisp's unique feature: compiler available at run-time

9. Can't Uninstall Labview Run-Time engine 6.0

10. Can't install LabVIEW Run-Time Engine 6.1 on Windows Terminal Server

11. Calculating a program's run time

12. Can't find entry point in dll, Run time error 453

 

 
Powered by phpBB® Forum Software