Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Vertical Sliderfield

I want to rotate sliderfield to vertically to y-axis readings. Please help me

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical Sliderfield

You will have to create it yourself, you can't rotate existing Fields.

 

For some ideas on how to to this, review the slider included in here:

http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...

 

Please use plain text.
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Re: Vertical Sliderfield

Am unable to create vertically only getting horizontal slider. Please help me

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical Sliderfield

What is going wrong with your implementaion of a Vertical Slider?  What exactly can't you do? 

Please use plain text.
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Re: Vertical Sliderfield

vslider.png

Please find the image. want to diaplay like this. Am new to this. so am not getting

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical Sliderfield

We understand what you want, what we need to understand is which part of doing this is causing your problems.  There is no point explaining how to do the parts of this that you already know, that is a waste of our time (and yours). 

 

or are you wanting someone to write this for you?

Please use plain text.
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Re: Vertical Sliderfield

[ Edited ]

I am using below code to get slider
private SliderField vslider;
vslider = new SliderField(normalThumb,normalProgress,normalBase,focusedThumb,focusedProgress,focusedBase,180, 0, 20, 20 );

also adding to the manger. but slider displaying horizontally. What should i do to tilt it vertically.

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical Sliderfield

Haven't I already answered that question:

http://supportforums.blackberry.com/t5/Java-Development/Vertical-Sliderfield/m-p/2759571#M225130

 

You will have to rewrite SliderField to work vertically.  You have the code, go for it...

Please use plain text.
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Re: Vertical Sliderfield

Sorry. I didnt get you. In that sample only horizontal sliders are there. How can i show vertically? I can add y-axis to that horizontal slider but i dont want like that. Design should be vertical. Please help me any css is there or rotation can be possible???

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Vertical Sliderfield

[ Edited ]

"How can i show vertically?"

By re-writing the code to display it vertically. 

 

"any css is there"

No - everything that is related to the Field is in the sample code in Java.

 

"rotation can be possible"

No - I repeat "you can't rotate existing Fields".

 

To do this, you are gong to have to understand how to create a Field in Java, then re-write parts of the SliderField as required.  You will probably need new vertical assets as well - which you can probably easily create by rotating the assets supplied with the sample using a PC based image manipulation utility. 

 

A good start to learning how to do this, is this KB article:

http://supportforums.blackberry.com/t5/Java-Development/Create-custom-fields/ta-p/444962

Please use plain text.