[codenameone-discussions] Re: How to make pull to refresh work?

2016-11-10 Thread Shai Almog
Pull to refresh will only work on a scrollable container. Do you have a 
standard layout in the content pane?

-- 
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/be4a7891-7496-41ca-bfc6-f95f9fdbc8fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Change icon in a toolbar

2016-11-10 Thread Shai Almog
Hi,
check out the properties cross favorite star icon which is replaced 
dynamically.
The gist of it is that we use findCommand() to locate the button 
representing the command and change the icon there.

-- 
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/8175fcdb-6a5a-471f-84ed-167b7ec52d8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Unstylable gaps on left side menu

2016-11-10 Thread Shai Almog
I'm assuming you used the background as a scaled to fit instead of scale to 
fill.

-- 
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/0e2cfd9a-a9bf-44cb-a9c3-52b9a3a14cb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Long press on container list

2016-11-10 Thread Shai Almog
We deprecated ContainerList a while back, it never supported long press 
anyway.

-- 
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/77fe625d-6035-46bb-a5b7-ed2a2f16d504%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Windows UWP navigation

2016-11-10 Thread Shai Almog
For consistency with back navigation I suggest using the Toolbar and 
setBackCommand on the Toolbar itself so it will exist in all platforms.

The hardware button should map that's probably an issue Steve can address.

-- 
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/e4dd28a2-dd35-4c34-900e-fa9fc250311d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: tab order

2016-11-10 Thread Shai Almog
See this: 
http://stackoverflow.com/questions/40425717/codename-one-set-next-texfield-to-be-focused

-- 
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/7c970299-de0f-4843-ac3b-838f97132d20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: searchbar events

2016-11-10 Thread Shai Almog
We don't offer those. If you want more control check out the javadocs for 
the toolbar on how to implement this manually.

-- 
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/8db662c7-f9e7-488e-8d8c-52b0e0ce3f47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Is there a way to add a textfield to the command bar?

2016-11-10 Thread Shai Almog
If you want more control over this functionality check out the javadocs for 
toolbar where there is a sample of implementing this manually.

-- 
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/bbeb9e75-f265-40e6-840b-6910f49ed4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to track the current duration of media (audio only)

2016-11-10 Thread Shai Almog
Use a UITimer.

-- 
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/eb33406a-5e96-4f81-b0d6-624b647e5a1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: ios builds failing, again

2016-11-10 Thread Shai Almog
I'll need some way to reproduce this...

-- 
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/9608d1ab-d699-4a22-b71c-88f7b19cae09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] How to make pull to refresh work?

2016-11-10 Thread Gareth Murfin
  f.getContentPane().addPullToRefresh(new Runnable() {

public void run() {
_("PULLED.");
String count = " " + f.getContentPane().getComponentCount();
f.addComponent(0, new Button("Button " + count));
f.invalidate();
}
});

this doesnt seem to result in anything at all, has it changed?

Also would it be possible to change the text "pull to refresh" to use for 
other things?

-- 
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/2242e651-9802-4d59-8349-fcd0fdac449a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Change icon in a toolbar

2016-11-10 Thread ruben_vg via CodenameOne Discussions
Hi,

I need to know how to change the icon of a command inside a toolbar.

My code is:
final Toolbar tbMenu = new Toolbar();
fmLista2.setToolBar(tbMenu);
s = UIManager.getInstance().getComponentStyle("Toolbar");
final FontImage iAdicion = 
FontImage.createMaterial(FontImage.MATERIAL_CONTROL_POINT, s);
final FontImage iAdicionNo = 
FontImage.createMaterial(FontImage.MATERIAL_CONTROL_POINT_DUPLICATE, s);
Command cmdAdicion = new Command("", iAdicion) {
public void actionPerformed(ActionEvent evt) {
if (!activaAdicion) {
txSerial.setEditable(true);
cbCategoria.setEnabled(true);
cbUM.setEnabled(true);
cbImpuesto.setEnabled(true);
btSerial.setEnabled(true);
atArticulo.setGrowLimit(1);
*cmdAdicion.setIcon(iAdicionNo);*
activaAdicion = !activaAdicion;
} else {
*cmdAdicion.setIcon(iAdicion);*
txSerial.setEditable(false);
cbCategoria.setEnabled(false);
cbUM.setEnabled(false);
cbImpuesto.setEnabled(false);
btSerial.setEnabled(false);
atArticulo.setGrowLimit(-1);
activaAdicion = !activaAdicion;
}
fmLista2.revalidate();
}
};

-- 
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/af68a7cf-33fb-4c06-b560-410f227a6a65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Codename One en español.

2016-11-10 Thread ruben_vg via CodenameOne Discussions
Hola,

No programo en tiempo completo  y me falta experienca en Codename One, pero 
me gusta la idea.  Como hacemos para que esto camine?

Saludos
Rubén

On Wednesday, November 2, 2016 at 9:21:12 PM UTC-5, romanca...@gmail.com 
wrote:
>
> Hola!
>
> Leyendo post en esta seccion he visto que quizas hayan varios usuarios de 
> la comunidad hispana y por eso queria invitarlos a entrar en contacto para 
> compartir experiencias en nuestro idioma.
>
> Si les interesa que podamos formar una pequeña comunidad dentro de esta 
> -donde nos expresemos en nuestro idioma  - pongamos en contacto .
>
> saludos, Roman
>
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator 
> Device
>

-- 
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/482fe208-24de-453e-93a1-1f85fcb5abe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Long press on container list

2016-11-10 Thread ruben_vg via CodenameOne Discussions
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

Hi,

I can not make it work.

My code:

private Container creaContenedorLista1(Lista1 lR1) {
Label lbImagen = new Label();
Button nombre = new Button();
SpanLabel descripcion = new SpanLabel();

nombre.setUIID("MultiLine2");
nombre.setFocusable(true);

descripcion.setUIID("MultiLine3");
descripcion.setFocusable(true);
Container cnNombre = new Container(new BoxLayout(BoxLayout.X_AXIS));
cnNombre.addComponent(nombre);

Container cnDatos = new Container(new BoxLayout(BoxLayout.Y_AXIS));
cnDatos.addComponent(cnNombre);
cnDatos.addComponent(descripcion);

Container cnItem = new Container(new BoxLayout(BoxLayout.X_AXIS));
cnItem.addComponent(lbImagen);
cnItem.addComponent(cnDatos);

Container cnS1 = new Container(new BorderLayout());
cnS1.setLayout(new BoxLayout(BoxLayout.X_AXIS));
cnS1.getStyle().setBorder(Border.createBevelLowered());
cnS1.addComponent(new Label());

Container cnt = new Container(new BoxLayout(BoxLayout.Y_AXIS));
cnt.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
cnt.addComponent(cnItem);;
cnt.addComponent(cnS1);
cnt.setLeadComponent(nombre);
nombre.setText(lR1.getNombre());
descripcion.setText(lR1.getDescripcion());
try {
lbImagen.setIcon(Image.createImage("/" + 
imagenItem(lR1.getTipoLista(;
} catch (IOException ex) {
Dialog.show("Error", ex.getMessage(), "Continuar", null);
}
nombre.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
if (ae.isLongEvent()) {
Dialog.show("Prueba", "Espera por mucho tiempo", 
"continuar", null);
} else {
Dialog.show("Prueba1", "Rápido", "continuar", null);
}
}
});
return cnt;
}

-- 
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/d4e74487-5f5b-4907-a691-422c4bc01550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] tab order

2016-11-10 Thread howudodat1
Is there a way to set the tab order?  Is it possible to jump a control 
uwing the "next" on the ios keyboard?
I have a list of textfields (LastName, FirstName, Age) then a Picker 
(Gender), then more textfields (email, phone, ...)  
When the user taps in LastName they can hit next and it moves to the next 
field, but next is never visible at Age because the next field is a picker. 
 How can I make it so next is visible and that it skips the picker and 
jumps to email?

-- 
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/f888056d-48d5-4c9c-b704-d83c1a11f23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Is there a way to add a textfield to the command bar?

2016-11-10 Thread howudodat1
This is a nice feature and I will use it.   I have three questions:
1.  How can I know if the enter key or search key was pressed?  I dont want 
to process every single change...remember this is going to be sending 
requests off to google to plot on the map
2.  After the user presses enter/search on their keyboard and I present the 
results fro google, how can I hide the searchbar and go back to the normal 
title bar
3.  What if I dont want to use the search mode and want a textfield in the 
titlebar for another reason?

Finally this is not a question but a bug.  when activating the search bar 
in the emulator the keyboard doesn't popup

Peter

On Wednesday, November 9, 2016 at 8:48:28 PM UTC-8, Shai Almog wrote:
>
> Why not use the search feature:
> https://www.codenameone.com/blog/toolbar-search-mode.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/9297919c-3cf0-42c3-bddb-32f135a1baac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to track the current duration of media (audio only)

2016-11-10 Thread CODENAME1
 HOw to update this value continously as the media is playing. I am able to 
update once, when play button is clicked.
findMediaSlider(c.getComponentForm()).setProgress(mp.getTime());

On Thursday, November 10, 2016 at 5:45:24 AM UTC+1, Shai Almog wrote:
>
> Media.getTime().

-- 
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/79c1f277-78b3-473b-bcb1-3e725657a16c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.