[codenameone-discussions] Re: Mediaplyer controls overlap sidebar - hide mediaplayer buttons via code?

2019-01-24 Thread Gareth Murfin
thanks it works but then theyre turned off for good, ie user can close side 
menu but then cant play video. Is there any event I can use to detect when 
the side menu is closed? (since user can tap outside of it to shut it, I 
cant detect re-tapping the hamburger menu)

On Thursday, January 24, 2019 at 1:52:34 PM UTC+8, Gareth Murfin wrote:
>
> perfect, you guys have thought of everything, thanks!
>
> On Thursday, January 24, 2019 at 11:20:13 AM UTC+8, Shai Almog wrote:
>>
>> There is this:
>>
>> Media someMedia = ...
>> ...
>> someMedia.setVariable(Media.VARIABLE_NATIVE_CONTRLOLS_EMBEDDED, false); // 
>> hides native controls
>>
>> or
>>
>> someMedia.setVariable(Media.VARIABLE_NATIVE_CONTRLOLS_EMBEDDED, true); // 
>> shows native controls
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/564095d3-bc16-4d72-978a-0cd645536c75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: possible to implement a slider like this ?

2019-01-24 Thread Shai Almog
Two samples:
https://www.codenameone.com/javadoc/com/codename1/ui/Slider.html
https://www.codenameone.com/blog/rating-widget.html

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8c83a547-89ef-4a56-9ae0-ce19801038e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Can cancel/retry dialog functionality be turned off from the RequestBuilder?

2019-01-24 Thread Shai Almog
You can grab all network errors by consuming the error event from the 
network manager.
You can also use this 
https://www.codenameone.com/blog/rest-api-error-handling.html

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/492119f7-a5b4-40b9-9dda-2fa8ed3eb1b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Table getSelectedRow returns -1 if Table is not in focus

2019-01-24 Thread Shai Almog
That's intentional as selection in this case essentially means focus 
traversal. You can keep your own selection value which maps to your needs. 

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/eed65c75-3d3d-45ac-8069-5839df957beb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: com.codename1.ui.table.Table scroll behaviour issue

2019-01-24 Thread Shai Almog
It's because you invoke setModel() which causes the table to effectively 
rebuild from scratch. You should instead update the cell/row not rebuild 
the entire table.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a8fd03c3-1715-4495-a644-17c36b5e0b3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Optimizing GUI for iOS 10

2019-01-24 Thread Shai Almog
Hi,
this depends on the layout. If the component above it is in border layout 
and this is the south. Maybe changing it to north will solve this but I'm 
guessing as I don't know the hierarchy of your layout.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a3a3385c-92ff-4216-8c50-e2fda85d4f82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Need Help using firebase on codenameone

2019-01-24 Thread Shai Almog
Hi,
you also need to define the build hint gcm.sender_id=GCM_SENDER_ID

Yes, register or error callbacks should be made on the device once you 
invoke register. Make sure to log the error details if you get the error 
callback.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ada22203-e35e-40ee-89ab-13ebe1815ba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: possible to implement a slider like this ?

2019-01-24 Thread Gareth Murfin
I have messed with Slider and SliderFull, but neither of them change the 
appearance of the slider at *all*. Also the gui editor wont even let me 
make SliderFull. I need to set slider progress colour, and thickness, where 
in these udids can I do that specifically... and how do I define SliderFull 
without it vanishing ? Any examples of styled sliders out there? 

On Thursday, January 24, 2019 at 11:12:42 AM UTC+8, Shai Almog wrote:
>
> Why is it a problem to set the background colors? I don't see a difficulty 
> with setting this?
> You can style Slider and SliderFull to produce this effect relatively 
> easily.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2e274c35-635b-4ff5-868b-4cc99ab23767%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Can cancel/retry dialog functionality be turned off from the RequestBuilder?

2019-01-24 Thread remonkroep
The RequestBuilder produces a cancel/retry dialog in case the 
getAsJsonMap() call encounters an error response. Can this be turned off?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9cafd4a5-ca40-44bb-a40e-d74070121001%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Can cancel/retry dialog functionality be turned on from the RequestBuilder

2019-01-24 Thread remonkroep
The RequestBuilder produces a cancel/retry dialog in case 
the getAsJsonMap() call encounters an error response. Can this be turned 
off?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/82d548a3-0281-41fe-8ed2-5e37b25f3b00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Table getSelectedRow returns -1 if Table is not in focus

2019-01-24 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device PC, Android, IOS

I have a com.codename1.ui.table.Table and a separate Button container with 
Add Row.
I ask the user if They want the insertion to be at current location of at 
end of table.
However when The form focus turns to the Dialog, getSelectedRow returns -1 
as indicated in the Table.getSelectedRow  method.

Is this intended?
Should I be relying on an external int to keep track of the selected row?

Thoughts?

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f715823d-8a9c-43b8-baa7-d9c73247ed17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: com.codename1.ui.table.Table scroll behaviour issue

2019-01-24 Thread shop . service . assistant
Sorry, An Oversight from a cut and paste.

hi.setScrollableY(false);

With only Table table.setScrollableY(true); being scrollable,
swipe down to the bottom and tap the Row 2 or 3 or 4 cells and you will see 
the table scrolls to the top every time.

Regards.

On Wednesday, January 23, 2019 at 7:41:40 PM UTC-5, 
shop.servic...@gmail.com wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator 
> Device PC, Android, IOS
>
> Sorry for the Table Population Hack,
>
> I am expecting to edit column 0 and when I click/Press on a row that 
> exists within the non scrolled region all is well.
> Scroll down then click/press a cell to edit (casted as TextField) and the 
> Table scrolls back to top.
> As soon as The Table scrolls back to top, the cell I pressed and was going 
> to edit, looses focus and of course would execute an actionEvent (Not Shown 
> Here)
>
> How do I prevent the scrolling back to top when I press a cell in this 
> case?
>
> Thanks In Advance!
>
>
> Form hi = new Form("Table", new BorderLayout());
> hi.setScrollableY(true);
> Container header = new Container(new 
> BoxLayout(BoxLayout.Y_AXIS));
> TableModel modelHeader = new DefaultTableModel(new 
> String[]{"Complaint", "Hours", "Dollars"}, new Object[][]{
>  
>  
> ,}) {
> public boolean isCellEditable(int row, int col) {
> return col != 0;
> }
> };
> Table table1 = new Table(modelHeader) {
> @Override
> protected TableLayout.Constraint 
> createCellConstraint(Object value, int row, int column) {
> TableLayout.Constraint con = 
> super.createCellConstraint(value, row, column);
> if (row == 1 && column == 1) {
> con.setHorizontalSpan(2);
> }
> con.setWidthPercentage(33);
> return con;
> }
> };
> header.addComponent(table1);
> int RowNum = 1;
> TableModel model = new DefaultTableModel(new String[]{"", "", 
> ""}, new Object[][]{
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (RowNum++), "Row A", "Row X"},
> {"Row " + (Ro

[codenameone-discussions] Re: Optimizing GUI for iOS 10

2019-01-24 Thread nikola . balasev
Hi,

Those two buttons on the bottom are just regular buttons inside a 
container. Is there any way for them to be always forced on top? As for the 
status bar, it seems that during development, someone changed the color of 
it, so it was showing wrong color. I'll test that on the device, and report 
here what are the results. Thanks for pointing me in the right direction.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/71dd2e7c-bc53-4291-a4f4-9bcb4b0c8e45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Need Help using firebase on codenameone

2019-01-24 Thread tobias.semmet via CodenameOne Discussions
Hi,

i want to use firebase to send messages for my webserver to the app. First 
I create a project for my application on firebase. got the key and the 
google-service.json. I add the json to native/android on the application 
project.

Now i need to register the client...

I implement the PushCallback to my application... now i thought that 
the registeredForPush Method should be called by starting the application. 
In this method i call by webserver and send the deviceId. When i test it on 
the simulator by using the push simluation it works fine. On the device the 
registeredForPush Method is not called. Do I have to do something special 
to register the client, that the registeredForPush  Method will be called ?

Thanks for helping...

IDE: Eclipse
Desktop Win
Simulator 
Device Android

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/30e9406b-ea7b-4e20-a9a1-f4da0414e405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.