Hello,
I have three comboboxes(option type buttons). They are called cDay, cMonth, cYear.
They are basically for Day, Month and Year. I want to reset those comboboxes after I click a button.
Let's say I chose 5 June 1945 and I clicked a button called "Submit".
I want to the comboboxes to return their original state - 1 January 1940 or Day Month Year.
It will show the first value in the content or Day Month Year. In a nutshell, I am trying to clear the combobox for the next submission.
I would appreciate if sb could help me.
Regards,
ARAS
Combobox to First State
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Combobox to First State
Hi Aras,
LABEL is what you want to set:
---
set the label of btn "your btn here..." to line 1 of the text of btn "your btn here..."
...
Best
Klaus
LABEL is what you want to set:
---
set the label of btn "your btn here..." to line 1 of the text of btn "your btn here..."
...
Best
Klaus
Re: Combobox to First State
Hi Klaus,
It works.
Thank you,
ARAS
It works.
Thank you,
ARAS
Re: Combobox to First State
What Klaus said.
I always see it better when I set or read the menuHistory:
set the menuHistory of btn "yourCombo" to 1
Makes me pay attention to the actual line number shown. Also, you do not need to know what the text in line 1 actually is:
repeat with y = 1 to the number of btnsThatAreCombos
set the menuHistory of btn y to 1
end repeat
Craig Newman
I always see it better when I set or read the menuHistory:
set the menuHistory of btn "yourCombo" to 1
Makes me pay attention to the actual line number shown. Also, you do not need to know what the text in line 1 actually is:
repeat with y = 1 to the number of btnsThatAreCombos
set the menuHistory of btn y to 1
end repeat
Craig Newman
Re: Combobox to First State
Hi Craig,
yes, but just setting the label does not fire a "menupick" message like setting the menuhistory does!
Best
Klaus
yes, but just setting the label does not fire a "menupick" message like setting the menuhistory does!

Best
Klaus