Hi Sathishreddy,

I was already afraid that this was what you were trying to do with.
Basically, what you'd want is to have nested scrolled windows, an outer one
which only scrolls horizontally, and inside that, multiple scrolled windows
(probably in a hbox), which only scroll vertically, and then swiping
horizontally should scroll the outer one, while swiping vertically the
inner one. Unfortunately, this is currently not supported in gtk, and
instead only the inner most scrolled window will listen to your touch
actions.

I really do think this is something that should eventually be supported by
gtk, and so it's probably a good idea to create a ticket in bugzilla, but
that probably won't end up in the main version until some time. It may be
possible to temporarily hack something, for example, by intercepting touch
events, and forwarding them to both the inner and outer scrolled windows.

Regards,

Lieven.


On Fri, May 16, 2014 at 1:40 AM, Sathishreddy Cheemarla <
sathish15...@gmail.com> wrote:

> Thanks Lieven,
>
> I will try and get back to you.
>
> Actually my requirement is like mobile phones menu.There on first page
> grid we have icons for menus ,if we scroll horizontally there are some
> other icons for menus.
>
> eg: for your idea i am attaching the images.if we are in first screen
> where grid is filled with icon if we scroll the screen horizontally we will
> get the another grid with different icons.
>
> please help me in doing this.
>
>
>
> On Fri, May 16, 2014 at 12:33 AM, Lieven van der Heide <
> lievenvanderhe...@gmail.com> wrote:
>
>> The reason why you don't have horizontal kinetic scrolling is simply
>> because horizontally, your content fits inside the visible area of the
>> scrolled window. Kinetic scrolling in a direction is only enabled when the
>> corresponding scroll bar is visible. Simply changing the text in "Non
>> scrollable widget using viewport" to "" already makes the left most
>> scrolled window smaller, and then you do get both horizontal and vertical
>> kinetic scrolling.
>>
>>
>> On Thu, May 15, 2014 at 2:02 PM, Sathishreddy Cheemarla <
>> sathish15...@gmail.com> wrote:
>>
>>> Thanks Lieven,
>>>
>>> Its working now.But it is scrolling up/down .Is it possible for
>>> left/right also?
>>>
>>> If yes,please suggest the changes .
>>>
>>> we have tested attached file.
>>>
>>>
>>> On Thu, May 15, 2014 at 5:21 PM, Lieven van der Heide <
>>> lievenvanderhe...@gmail.com> wrote:
>>>
>>>> Well, all scrolled windows in gtk3-demo should have it (try the tree
>>>> view on the left for example). Can you try to run the gtk3-demo, and see if
>>>> it works for you?
>>>>
>>>>
>>>> On Thu, May 15, 2014 at 12:42 PM, Sathishreddy Cheemarla <
>>>> sathish15...@gmail.com> wrote:
>>>>
>>>>> Thanks lieven for reply.
>>>>>
>>>>> We are using touch only for input system.do we need multi touch for
>>>>> this.
>>>>>
>>>>> Please share if any sample codes if you have.
>>>>>
>>>>> Regards
>>>>> Sathish Reddy
>>>>>
>>>>> On May 15, 2014 4:56 PM, "Lieven van der Heide" <
>>>>> lievenvanderhe...@gmail.com> wrote:
>>>>> >
>>>>> > Hi Sathishreddy,
>>>>> >
>>>>> > Kinetic scrolling should be on by default, but is only used with
>>>>> touch input, so my guess is that may be the reason why you're not seeing
>>>>> it. It's currently not possible to use it with mouse or keyboard input
>>>>> unfortunately.
>>>>> >
>>>>> > Regards,
>>>>> >
>>>>> > Lieven.
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Thu, May 15, 2014 at 12:14 PM, Sathishreddy Cheemarla <
>>>>> sathish15...@gmail.com> wrote:
>>>>> >>
>>>>> >> Hi All,
>>>>> >>
>>>>> >> I am using GTK for my UI development.
>>>>> >>
>>>>> >> I want to incorporate kinetic scrolling in my UI design.
>>>>> >>
>>>>> >> I found that in GTK+3.4 this feature is incorporated.
>>>>> >>
>>>>> >> I am unable to use this feature.Can you please share the sample
>>>>> code to use this
>>>>> >>
>>>>> >> feature.
>>>>> >>
>>>>> >> --
>>>>> >> thanks & regards
>>>>> >> c sathish reddy
>>>>> >> 9966740149
>>>>> >>
>>>>> >>
>>>>> >> _______________________________________________
>>>>> >> gtk-devel-list mailing list
>>>>> >> gtk-devel-list@gnome.org
>>>>> >> https://mail.gnome.org/mailman/listinfo/gtk-devel-list
>>>>> >>
>>>>> >
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> thanks & regards
>>> c sathish reddy
>>> 9966740149
>>>
>>>
>>
>
>
> --
> thanks & regards
> c sathish reddy
> 9966740149
>
>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to