Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Create Radio Buttons in a Wizard?
 

Create Radio Buttons in a Wizard?

I would like to create/use radio buttons within a wizard. I do not want to create a customize page but utilize a known feature ( such as within system.windows.forms).

For example, within a recipe where I have my visual ( assume I already defined my boolean Arguments above) I would like to have a radio button. I can easily get the non-radio buttons but how to make a group of buttons radio? Below was my attempt but to no avail.

<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0" Help="ms-help://NFCGuidlines/NFCGuidlines/Docs/NFCSW.htm">
<
Pages>
<
Page >
<!--

Here is an example of a builtin feature to return back a directory path. This is a native function within 'System.Windows.Forms.Design'.
Looking for something like this but for a radio button effect.
-->

<Field ValueName="NfcLibrariesPath" Label="NFC Library Path">
<
Tooltip>The NFC Library Path</Tooltip>
<
Editor Type="System.Windows.Forms.Design.FolderNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Title="Select NFC Library Path."/>
</
Field>

<!--

RADIO BUTTONS ???
-->

<Field ValueName="IBMDBType" Label="DB2 Type" PanelType="radio" >
<
Tooltip>DB2 Database Used or Not</Tooltip>
<
Editor Type="System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

</Field>

<Field ValueName="MSDBType" Label="MS-SQL Type" PanelType="radio" >
<
Tooltip>MS-SQL Database Used or Not</Tooltip>
<
Editor Type="System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

</Field>

</Fields>

:
:

thanks in advance,
-bja

rta_llc  Wednesday, September 17, 2008 6:04 AM
Joes, Thanks for the reply. I will write my own CP -- I did this for some other stuff and that was simple enough but hopefully in the future simple controls like radio-buttons could be added. A simple approach would be labeling the same name to more than one boolean control which would interpret it as a radio button. Anyway, Thanks,

-bja
  • Marked As Answer byrta_llc Saturday, September 20, 2008 2:00 PM
  •  
rta_llc  Saturday, September 20, 2008 1:59 PM
Hi,

In the Editor argument you should use an UITypeEditor, so you can create a custom dialog which will be showed when the user press on the "..." button. If you wanna a have a radio button for each value in a page you should make your own custom page.

You can also have your own Wizard, check here for more info
Use a simple Form instead of the GAX Wizard

hth.
jose



Jose Escrich - weblogs.asp.net/jescrich
  • Proposed As Answer byJose Escrich Wednesday, September 17, 2008 10:04 PM
  •  
Jose Escrich  Wednesday, September 17, 2008 10:04 PM
Joes, Thanks for the reply. I will write my own CP -- I did this for some other stuff and that was simple enough but hopefully in the future simple controls like radio-buttons could be added. A simple approach would be labeling the same name to more than one boolean control which would interpret it as a radio button. Anyway, Thanks,

-bja
  • Marked As Answer byrta_llc Saturday, September 20, 2008 2:00 PM
  •  
rta_llc  Saturday, September 20, 2008 1:59 PM
Joes, Thanks for the reply. I will write my own CP -- I did this for some other stuff and that was simple enough but hopefully in the future simple controls like radio-buttons could be added. A simple approach would be labeling the same name to more than one boolean control which would interpret it as a radio button. Anyway, Thanks,

-bja
rta_llc  Saturday, September 20, 2008 2:00 PM

You can use google to search for other answers

Custom Search

More Threads

• What is the benefit of using GAT versus implementing patterns
• How do I uninstall GAX manually from a Vista64bit os
• What's the best way to programatically call an action from within another action?
• Guidance Package Build
• Project Type "Service Factory: Modeling Edition" not found under Guidance Packages
• Not able to create a new Guidance Package project
• How to create a local method in a T3 script.
• Web Client Software Factory: I cannot create a module with name Menu
• Include file with "Add as a link"
• Will GAT/GAX be avalible for VS 2008?