getvalue from combobox when button clicked?

Thought this was working until I changed the selection on the
combobox to another item. Only seems to pick the 1st item.

Using a read-only combobox. If use a EVT_TEXT or EVT_COMBOBOX,
can make it print out the value it changes to. But don't want the selection
used until a button is clicked. There are 5 items in the list.

When click the button don't seem to get anything but the 1st selection.
GetValue() doesn't seem to work for me correctly.

Do I have to make the value Global or something from the EVT_TEXT
or EVT_COMBOBOX? Would prefer to just pick the item from the
drop down list and when the button is clicked execute the choosen
command. Can't seem to find a good example of this anywhere.

Any pointers. Thanks.

Dave