Kurt Wendt wrote:
> Hey folks,
>
> I never got this to work (and I've been sidetracked with other projects
> for the past week).
> I now created a cursor(Menu_pass2) that represents the next level down
> in the menu system, and has a boolean field called Sub_OPT. For the
> column in the Grid within question - I initial set the Control to be the
> Text box instead of the Button. Then, with the Form Init I have the
> following code:
>
> thisform.GrdSubMenu.SetAll("DynamicCurrentControl", ;
> "IIF(!Menu_pass2.Sub_OPT, ;
> 'Thisform.GrdSubMenu.Column3.Dummy_Txt', ;
> 'Thisform.GrdSubMenu.Column3.Sub_Opt')", "Column3")
>
> However, when the Form runs - the column continues to ONLY show text -
> and no buttons - and the content is True if it's a Sub-Menu option.
> Where as - if its True - then I actually want it to change and show a
> Button instead of the Text.
>
>
Hi Kurt,
Here's one I use in my code
thisform.grdTo.SetAll("DynamicBackColor","IIF(source='1',RGB(255,255,128),
RGB(255,255,255))", "Column")
One difference you have is "Column3" instead of "Column" at the end.
In the true bit of the IIF you need to set the .CURRENTCONTROL of the
column you want to change.
Thisform.GrdSubMenu.Column3.currentcontrol = dummy_txt (not sure if you need
quotes round the dummy_text)
or
Thisform.GrdSubMenu.Column3.currentcontrol = sub_opt
dummy_txt and sub_opt must be the names of the objects in column3
Never actually tried to do that before so don't know if it will work.
Cheers
Peter
----------------------------------------------------------------
Rajan Imports has changed - we are now Whispering Smith Ltd. For more
information see our website at www.whisperingsmith.com
Please update your address book with my new email address:
[email protected]
.
This communication is intended for the person or organisation to whom it is
addressed. The contents are confidential and may be protected in law.
Unauthorised use, copying or
disclosure of any of it may be unlawful. If you have received this message in
error, please notify us immediately by telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700
Fax:0161 831 3715
London Office:17-19 Foley Street, London W1W 6DW Tel:0207 299 7960
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.