[codenameone-discussions] Re: Overriding CN1 native iOS code

2019-01-25 Thread Shai Almog
Check out the developer guide section on location background modes. You 
would need to set ios.background_modes=location

-- 
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/ed899282-4469-42de-845f-5f0a3e2f35b6%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-25 Thread Shai Almog
That was a mistake. I didn't see it in the test case since there was no 
scrolling. I guess the fix would be to keep a single listener for the 
entire row and update the selected state on the component.
E.g. 

Map rowListeners;


Then bind the listener for a specific row or create it. This solution will 
also need to keep the currently selected components so we can remove the 
selection from them. It's a bit of a hassle so it's not something I can 
whip up quickly right now.

-- 
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/e1ce757b-8272-460a-bbee-bfb98b43efc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-01-25 Thread Shai Almog
There is no event for side menu folding. We could possibly add that but it 
won't be soon as we're gearing towards the 6.0 release.

-- 
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/20851d29-c0ea-48f0-9100-04b3ef3a8950%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Overriding CN1 native iOS code

2019-01-25 Thread jv
In the file *CodenameOne_GLViewController.h*, I would like to replace this 
following line:

> #define CN1_REQUEST_LOCATION_AUTH requestWhenInUseAuthorization
>
 
With this line:

> #define CN1_REQUEST_LOCATION_AUTH requestAlwaysAuthorization 


So that my app requests this permission instead. I already have my plist 
set up correctly, and am able to select "always" in the Settings app in 
iOS. I would just like the app to ask for "always" instead of "when in 
use." Is this possible?

-- 
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/3476bd9b-984e-47b3-9e72-0152d321f19b%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-25 Thread shop . service . assistant
Attached is the requirement example I have in rendering a Table

Table contains one of n Estimate Groups, The 2 highlighted rows in the 
attachment are a summary of the Parts / Labor that make up a Group

When we click on a column, we highlight only that column, however when we 
make changes to the table such as add a new group or group entry, we have 
to render the table to highlight the changes in the Group summaries as 
shown in the attached image.

Regards.

On Friday, January 25, 2019 at 9:04:39 AM UTC-5, shop.servic...@gmail.com 
wrote:
>
> This method was taken from your answer to how to highlight a selected row.
>
> https://stackoverflow.com/questions/42303713/how-can-i-select-and-hightlight-a-row-in-a-table-in-codename-one
>
> Ultimate goal is to efficiently highlight a selected row
>
> Regards.
>
> On Thursday, January 24, 2019 at 10:31:02 PM UTC-5, Shai Almog wrote:
>>
>> 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/c82d1165-a3a6-4394-bb39-61d0a567bf09%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-25 Thread shop . service . assistant
This method was taken from your answer to how to highlight a selected row.
https://stackoverflow.com/questions/42303713/how-can-i-select-and-hightlight-a-row-in-a-table-in-codename-one

Ultimate goal is to efficiently highlight a selected row

Regards.

On Thursday, January 24, 2019 at 10:31:02 PM UTC-5, Shai Almog wrote:
>
> 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/c6227ff9-eb0e-4fc2-853e-344126f6b25e%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-25 Thread remonkroep
That works. Thank you.

-- 
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/4ce1de53-fe42-433f-8093-0e7d16559870%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.