[APBeta] Anyone using a double-clickable list in a script?

Paul Rodman paul at ilanga.com
Sun Aug 23 07:00:13 PDT 2009


On Aug 23, 2009, at 3:52 AM, Jeff Young wrote:

> Cool; I'll wait for it.
>
> Do I need to do something special to get the double-click return  
> value (I note the Dialog.DoubleClickedList property), or will the  
> normal Dialog.ListChoiceParamter(listName) still work?

Correct. Pretty much all that happens is that the double-click  
effectively presses the OK button.

Paul R.

>> -----Original Message-----
>> From: apbeta-bounces at lists.astroplanner.net [mailto:apbeta-bounces at lists.astroplanner.net 
>> ] On Behalf Of
>> Paul Rodman
>> Sent: Sunday, August 23, 2009 4:47 AM
>> To: AstroPlanner Beta Testers
>> Subject: Re: [APBeta] Anyone using a double-clickable list in a  
>> script?
>>
>>
>> On Aug 22, 2009, at 1:23 PM, Jeff Young wrote:
>>
>>> I'm trying to get a dialog to work which has a single list of
>>> strings in it which is double-clickable.  Can anyone send me some
>>> example code?
>>>
>>> I've tried:
>>>
>>> 	const obsListTitle = "Observations:"
>>> 	dim obsList(-1) as string, i as integer
>>> 	for i = 1 to currObj.nObservations
>>> 		obsList.Append(currObj.Observation(i).Notes)
>>> 	next
>>>
>>> 	dim dlg as Dialog
>>> 	dlg = new Dialog
>>> 	dlg.ListChoiceParameter(obsListTitle, currObj.nObservations - 1,
>>> obsList, false, 10, true)
>>> 	if NOT dlg.Show("Copy Observation to Clipboard", true) then
>>> 		return
>>> 	end if
>>>
>>> but it throws an exception in dlg.Show if I double-click the list.
>>
>> Fixed for the next release.
>>
>> Paul R.




More information about the APBeta mailing list