Jump to content
Sign in to follow this  
Sangeeta25Jagdish

Combo box & radio button

Recommended Posts

Sangeeta25Jagdish

Hi..

Any body Plz

My problem is that When I select the particular Radio button according to that the combo box dropdown list should show record & select the particular record which will get displayed on the combo box ...

Reply immidiately..

Thanks in advance

Share this post


Link to post
Share on other sites
star2

first of all ur topic should be in the GUI help and support

I would recommend u to use the help file

I hope this example will be helpfull 4 u

#include <GUIConstants.au3>

GUICreate("TEST", 250, 150)
$rad_1 = GUICtrlCreateRadio ("item 1" ,20,20,200)
$rad_2 = GUICtrlCreateRadio ("item 2" ,20,40,200)
$rad_3 = GUICtrlCreateRadio ("item 3" ,20,60,200)
$comb = GUICtrlCreateCombo ("" ,20, 100 , 200 , 30)
GUICtrlSetData(-1,"item1|item2|item3")
$staslable = GUICtrlCreateLabel ("", 20 ,130,230,25)
GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    Select
        Case $msg = $rad_1
        GUICtrlSetData ($comb , "item1")
        GUICtrlSetData ($staslable , "u have selected Radio 1")
        MsgBox (-1,"info", "Radio 1 checked")
        Case $msg = $rad_2
        GUICtrlSetData ($comb , "item2")
        GUICtrlSetData ($staslable , "u have selected Radio 2")
        MsgBox (-1,"info", "Radio 2 checked")
        Case $msg = $rad_3
        GUICtrlSetData ($comb , "item3")
        GUICtrlSetData ($staslable , "u have selected Radio 3")
        MsgBox (-1,"info", "Radio 3 checked")
EndSelect
WEnd

see ya :)

Edited by star2

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites
PsaltyDS

Reply immidiately..

Oooh... Yes sir, Sir! Is that an order, sir?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Sangeeta25Jagdish

Oooh... Yes sir, Sir! Is that an order, sir?

:)

NO this is not an order but as a request :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×