<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi,
<div><br>
</div>
<div>This will not work and I can’t imagine this case being made to work in the future. The pulley menus are designed to be pulled down to highlight an option and released to select. A ContextMenu/ComboBox inside a pulley menu is incompatible with the interaction
design of the pulley menu.</div>
<div><br>
</div>
<div>Perhaps you could explain the use case you’re trying to accomplish and we could suggest an alternative, or pass some feedback on to our designers.</div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Martin.</div>
<div><br>
<div>
<div>On 26 Nov 2013, at 10:07 pm, Lauri Lavanti <<a href="mailto:laurilavanti@gmail.com">laurilavanti@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div lang="FI" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Hi,<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
I’m hoping I’m not the only one who’s been trying something like this and even more so I hope there’s a solution for it:<br>
<br>
I’ve been trying to get a ContextMenu inside the PullDownMenu with code like this:<br>
<span style="color: purple;">PullDownMenu</span><span style="color: silver;"> </span>{<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">MenuItem</span><span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New';">{<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">ComboBox</span><span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New';">{<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">width</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span><i><span style="">page</span></i>.width<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">label</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Kampus:</span><span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"</span><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New';"> </span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">menu</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: purple;">ContextMenu</span><span style="color: silver;"><span class="Apple-converted-space"> </span></span>{<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">id</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span><i><span style="">menu</span></i><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">Repeater</span><span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New';">{<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">model</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span>[<span style="color: green;">"Kaikki"</span>,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Otaniemi"</span>,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Töölö"</span>,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Arabia"</span>,<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">"Kumpula"</span><span style="font-size: 10pt; font-family: 'Courier New';">,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Keskusta"</span>,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Kallio"</span>,<span style="color: silver;"><span class="Apple-converted-space"> </span></span><span style="color: green;">"Viikki"</span>]<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">MenuItem</span><span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> </span><span style="font-size: 10pt; font-family: 'Courier New';">{<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">text</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span>modelData<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">onClicked</span><span style="font-size: 10pt; font-family: 'Courier New';">:<span style="color: silver;"><span class="Apple-converted-space"> </span></span>{<span style="color: silver;"><span class="Apple-converted-space"> </span></span><i><span style="">kampus</span></i><span style="color: silver;"><span class="Apple-converted-space"> </span></span>=<span style="color: silver;"><span class="Apple-converted-space"> </span></span>modelData<span style="color: silver;"><span class="Apple-converted-space"> </span></span>}<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New';">}<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New'; color: silver;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10pt; font-family: 'Courier New';">}<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New';"> }<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New';"> }<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span style="font-size: 10pt; font-family: 'Courier New';">}<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Buut, it doesn’t do anything when selected, another thing I did was try to replace the MenuItem with the ComboBox straight, but of course that didn’t do squat. I’ve also tried to insert the ContextMenu straight to the MenuItem buuut that keeps telling me I
can’t (surprise).<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
So, any pointers/tips/solutions?<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span>--<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span>Lauri Lavanti<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<span><a href="mailto:laurilavanti@gmail.com" style="color: purple; text-decoration: underline;">laurilavanti@gmail.com</a><o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p> </o:p></div>
</div>
<br>
<br>
<hr style="border: none; color: rgb(144, 144, 144); background-color: rgb(176, 176, 176); height: 1px; width: 768px;">
<table style="border-collapse: collapse; border: none;">
<tbody>
<tr>
<td style="border: none; padding: 0px 15px 0px 8px;"><a href="http://www.avast.com/" style="color: purple; text-decoration: underline;"><img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png"></a></td>
<td>
<p style="color: rgb(61, 77, 90); font-family: Calibri, Verdana, Arial, Helvetica; font-size: 12pt;">
Tässä sähköpostiviestissä ei ole viruksia eikä haittaohjelmia, koska<span class="Apple-converted-space"> </span><a href="http://www.avast.com/" style="color: purple; text-decoration: underline;">avast! Antivirus</a><span class="Apple-converted-space"> </span>suojaus
on käytössä.</p>
</td>
</tr>
</tbody>
</table>
<br>
_______________________________________________<br>
<a href="http://sailfishos.org/" style="color: purple; text-decoration: underline;">SailfishOS.org</a><span class="Apple-converted-space"> </span>Devel mailing list</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>