[SailfishDevel] How to fully expand PullDownMenu programmatically or elsehow to use expandable menu items?

Luciano Montanaro mikelima at gmail.com
Fri Oct 18 07:44:57 UTC 2013

On Fri, Oct 18, 2013 at 9:25 AM, Artem Marchenko
<artem.marchenko at gmail.com> wrote:
> Hi Luciano
> App in question is Wikipedia (a good practice example I thought, every
> platform needs a bit of Wikipedia) - https://github.com/amarchen/Wikipedia
> Language switch is, well, to choose the language of the article when several
> are available. Or maybe change the language of the Wikipedia edition used.

Ah, of course, in this case it makes sense. Unless I am researching
something specific about my local culture, I tend to hit the English
language Wikipedia, since it tends to have more details, or to be more
up to date.

Good idea about the application, as well.

> Language selector as a popup was my first idea, but.. ComboxBox expanding
> right in the pulley menu seriously looks very cool, also saves you from an
> extra tap (I find pull being easier to do and more playful that a tap). And
> the expansion in-a-menu does work brilliantly *IF* you pull the PullDownMenu
> fully first. That of course kills the whole idea of not requiring a tap.
> So I hope to figure a way to activate-and-expand combo box when a menu item
> is fired via pull. Maybe there is none and then I'll make language selection
> to open in a separate view (it sorta happens anyway when you have more than
> something like 4-6 items). Still, I am interested in the general solution.

Ok, I see this being interesting to know in general, but for most
Wikipedia articles, the number of different languages tend to be more
than 10... so I would not worry about this too much.

But hopefully, we will have improvements on the docmentation side of
the silica library as well, in the (imminent?) SDK update.

Best regards,

> Best regards,
> Artem
> On Fri, Oct 18, 2013 at 10:17 AM, Luciano Montanaro <mikelima at gmail.com>
> wrote:
>> On Fri, Oct 18, 2013 at 1:15 AM, Artem Marchenko
>> <artem.marchenko at gmail.com> wrote:
>> > Hi All
>> >
>> > *ComboBox inside the pulley menu*
>> > I am trying to have a language selection in a pulley menu. ComboBox
>> > seems to
>> > be ideal for this purpose, I add it into the PullDownMenu and everything
>> > works just great except that the user has to expand the menu fully for
>> > clicking on ComboBox, this item is not activatable during the pull.
>> >
>> > *Activation during the pull*
>> > Well, I want it to activate during the pull, so I wrapped it into a
>> > MenuItem
>> > and passed onClicked from MenuItem to inner ComboBox. That works fine if
>> > combobox has so many items that it launches a full page on click.
>> >
>> > So I tried preventing pulley from closing via cancelBounceBack() -
>> > doesn't
>> > look good, not the same as if user activates item manually.
>> >
>> > *How do I expand the pulley menu fully programmatically*
>> > - So how do I simulate the situation when user fully expands the pulley
>> > menu
>> > then?
>> > - Or is the whole idea wrong and [coming] UI guidelines are going to
>> > tell
>> > that only true single line MenuItems should be selectable during pull?
>> >
>> I don't know the answer to this question, sorry. But I would make the
>> language selector item pop up a dialog,
>> and maybe have the language code embedded in the menu item text as the
>> user selects it. On harmattan, comboboxes used dialogs (or something
>> very similar) anyway.
>> I don't know the details of your application, but unless it is a
>> translation tool...
>> Can't you use the system language?
>> Best regards,
>> Luciano
>> >
>> > Best regards,
>> > Artem.
>> >
>> > --
>> > Artem Marchenko
>> > http://agilesoftwaredevelopment.com
>> > http://twitter.com/AgileArtem
>> >
>> > _______________________________________________
>> > SailfishOS.org Devel mailing list
>> --
>> Luciano Montanaro
>> Anyone who is capable of getting themselves made President should on
>> no account be allowed to do the job. -- Douglas Adams
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem

Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams

More information about the Devel mailing list