[vwnc] Number of lines shown for drop down of combo box

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Number of lines shown for drop down of combo box

Paul Baumann
Is there a way to get more than five lines to show up for the drop-down list of a ComboBox? The painter tool doesn't have the number of lines as a configuration option. I didn't see anything on ComboBoxSpec that looked like I could configure it by editing the windowSpec. I found this comment interesting:
 
ComboBoxSpec>>getComboListIn: aUIBuilder
  ...
 "To temporarilty deal with the fact that ComboBox drop list were once menus."
  ...
 
Whoops, the code I see defines the combolList with a menu. Perhaps more lines would show if I convert to a List or change the menu definition?
 
Paul Baumann 
 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Number of lines shown for drop down of combo box

Dennis smith-4
wrapper widget menuButton maxLines: n

I usually put it in postBuildWith:



Paul Baumann wrote:
Is there a way to get more than five lines to show up for the drop-down list of a ComboBox? The painter tool doesn't have the number of lines as a configuration option. I didn't see anything on ComboBoxSpec that looked like I could configure it by editing the windowSpec. I found this comment interesting:
 
ComboBoxSpec>>getComboListIn: aUIBuilder
  ...
 "To temporarilty deal with the fact that ComboBox drop list were once menus."
  ...
 
Whoops, the code I see defines the combolList with a menu. Perhaps more lines would show if I convert to a List or change the menu definition?
 
Paul Baumann 
 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

-- 
Dennis Smith                 		         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@...
Canada			         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Number of lines shown for drop down of combo box

Paul Baumann
Thanks Dennis.
 


From: Dennis Smith [mailto:[hidden email]]
wrapper widget menuButton maxLines: n

I usually put it in postBuildWith:
 
 
Paul Baumann wrote:
Is there a way to get more than five lines to show up for the drop-down list of a ComboBox? The painter tool doesn't have the number of lines as a configuration option. I didn't see anything on ComboBoxSpec that looked like I could configure it by editing the windowSpec. I found this comment interesting:
 
ComboBoxSpec>>getComboListIn: aUIBuilder
  ...
 "To temporarilty deal with the fact that ComboBox drop list were once menus."
  ...
 
Whoops, the code I see defines the combolList with a menu. Perhaps more lines would show if I convert to a List or change the menu definition?
 
 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Number of lines shown for drop down of combo box

Dennis smith-4
It is of course highly intuitive :)

Paul Baumann wrote:
Thanks Dennis.
 


From: Dennis Smith [[hidden email]]
wrapper widget menuButton maxLines: n

I usually put it in postBuildWith:
 
 
Paul Baumann wrote:
Is there a way to get more than five lines to show up for the drop-down list of a ComboBox? The painter tool doesn't have the number of lines as a configuration option. I didn't see anything on ComboBoxSpec that looked like I could configure it by editing the windowSpec. I found this comment interesting:
 
ComboBoxSpec>>getComboListIn: aUIBuilder
  ...
 "To temporarilty deal with the fact that ComboBox drop list were once menus."
  ...
 
Whoops, the code I see defines the combolList with a menu. Perhaps more lines would show if I convert to a List or change the menu definition?
 
 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

-- 
Dennis Smith                 		         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@...
Canada			         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Number of lines shown for drop down of combo box

Paul Baumann
BTW,
 
I found that implementing as a menu instead of list was also part of the problem. "self list size" answers 0 for a menu so the size gets set to five (from #emptySize) despite setting maxLines. This is the VW 7.5 code responsible:
 
ComboBoxButtonView>>dropDownListHeightFor: aDropListView 
    ...
 (minSize := self list size) = 0 ifTrue: [minSize := self emptySize].
 ^gridSize * (self maxLines min: minSize) + 4
 
Looks like I'll need to use lists instead of menus.
 
Also, #defaultableComboBoxMaxSize on the look policy is used to configure the number of lines in a general way.
 
Paul Baumann 
 


From: Dennis Smith [mailto:[hidden email]]
Sent: Friday, August 14, 2009 10:58 AM
To: Paul Baumann
Cc: VWNC
Subject: Re: [vwnc] Number of lines shown for drop down of combo box
Importance: High

It is of course highly intuitive :)

Paul Baumann wrote:
Thanks Dennis.
 


From: Dennis Smith [[hidden email]]
wrapper widget menuButton maxLines: n

I usually put it in postBuildWith:
 

Paul Baumann wrote:
Is there a way to get more than five lines to show up for the drop-down list of a ComboBox? The painter tool doesn't have the number of lines as a configuration option. I didn't see anything on ComboBoxSpec that looked like I could configure it by editing the windowSpec. I found this comment interesting:
 
ComboBoxSpec>>getComboListIn: aUIBuilder
  ...
 "To temporarilty deal with the fact that ComboBox drop list were once menus."
  ...
 
Whoops, the code I see defines the combolList with a menu. Perhaps more lines would show if I convert to a List or change the menu definition?
 
 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

-- 
Dennis Smith                 		         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@...
Canada			         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc