[codenameone-discussions] Re: error building in IOS - Failed to generate device screenshot!

2016-08-31 Thread Shai Almog
That's a failure in the screenshot process detailed here: 
https://www.codenameone.com/manual/appendix-ios.html

I'm guessing your first form is a dialog or has a delay/connection logic. 
If you post the full log it might contain details pointing at that. The 
first form of the app needs to be very simple, at least the first time the 
app is launched.

-- 
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/5b3fc692-3158-4363-9a3f-43f351a2df03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: IOS "connection refused" for HTTP requests

2016-08-31 Thread Shai Almog
Generally when you add exceptions you need to explain why you asked for 
that exception. We just got a reject because kitchen sink had a link to 
codenameone.com which has a paid signup process...

I am not kidding!!!

I had to explain to the tester that this signup has nothing to do with the 
app and that there is no benefit to signing up or not which is reflected in 
the app. Ugh.

-- 
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/b1e95b54-eaa5-4ca3-80d9-a50d97d98e27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: scrollComponentToVisible

2016-08-31 Thread Shai Almog
Picker looks completely different on device for iOS/Android so I suggest 
looking at the actual on device UI before making an effort.

-- 
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/a418d6e0-8e31-4b53-b4b7-3e71c3f919a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Deal with null value in sqlite database

2016-08-31 Thread Shai Almog
The main issue is old fallback code. The iOS implementation is native so 
the sqlite layer has no notion of "object". 

Notice that in the string conversion "null" is preserved as null so it 
should work correctly:
if (params[i] == null) {
strParams[i] = null;
} else {
strParams[i] = params[i].toString();
}


I'm not sure exactly where this is failing.

If you have a specific use case that you can reproduce with a simple 
standalone test case you can file an RFE but our plates are really 
overflowing at the moment and I'm not sure when we will get around to 
fixing issues.

-- 
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/65581967-bbb1-452b-b3e9-3ad650d8fd17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Type.KeyPress not called

2016-08-31 Thread Shai Almog
Key listener only binds release events never press events. I don't think 
that event type has any "real" usage.

-- 
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/de778b60-03f0-4d91-b84e-79f43824d400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Does Toolbar require use of a Side Menu?

2016-08-31 Thread Shai Almog
I would not use bar for anything. It's got relatively simple functionality 
just place a container in the south.
We are focused on the Toolbar moving forward so I would suggest aligning 
with that.

-- 
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/97aefe39-3d91-47d6-a660-3afd2b90aa6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Overflow menu commands stopped displaying correctly

2016-08-31 Thread Bryan Buchanan
On Thursday, September 1, 2016 at 1:39:13 PM UTC+10, Steve Hannah wrote:
>
> Was the good build last week a debug build or a windows store build?
>
>
Debug. 

-- 
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/105878f7-039d-4e07-8731-1431194712f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: error building in IOS - Failed to generate device screenshot!

2016-08-31 Thread romancanoniero
The app runs well in the emulator and in android.

any idea?

On Wednesday, August 31, 2016 at 10:58:21 PM UTC-3, nickk...@gmail.com 
wrote:
>
> Can the app run in the simulator?
> I think something like that happens when the app can't load at all in the 
> simulator as the screenshots are taken off the simulator, not the iOS 
> device.
> In the past I had to add a splash screen that didn't use any native code 
> to make sure the first screen could load, or make sure that there is no 
> runtime errors (at all) but especially on the first screen.
>
> On Thursday, September 1, 2016 at 3:24:00 AM UTC+12, romanca...@gmail.com 
> wrote:
>>
>> HI! what are the possible reasons for that error?
>>
>>
>> Failed to generate device screenshot! 
>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build1213908309854252436xxx/res/Default.png
>>
>>
>>
>> tranks
>> 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/00b1a330-65b1-42c2-b2ab-5cb156de482d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Overflow menu commands stopped displaying correctly

2016-08-31 Thread Bryan Buchanan
UWP Debug build -> works OK
UWP Store Build -> labels are incorrect 

-- 
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/d0a62297-4f77-4f40-a229-78cc6f781833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Overflow menu commands stopped displaying correctly

2016-08-31 Thread Bryan Buchanan
Last week.

On Thursday, September 1, 2016 at 9:28:38 AM UTC+10, Steve Hannah wrote:
>
> Strange.  When was your last known good build?
>
>

-- 
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/f88a45f7-14ec-4e82-9972-f3d96febb554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Overflow menu commands stopped displaying correctly

2016-08-31 Thread Steve Hannah
I just tried a build with a slight modification of this code (since your
example isn't convex), and it seemed to work fine.

https://gist.github.com/shannah/768a095d2529b9018c48e262c613a3e2

[image: Inline image 1]

On Wed, Aug 31, 2016 at 4:28 PM, Steve Hannah 
wrote:

> Strange.  When was your last known good build?
>
>
> On Wednesday, 31 August 2016, Bryan Buchanan  wrote:
>
>> Have this code to add overflow menu commands:
>>
>> public void addOverflowMenuCommands(final Form f) {
>>
>> Image im = FontImage.createMaterial(FontImage.MATERIAL_PLACE,
>> UIManager.getInstance().getComponentStyle("Command"));
>> Image sel = FontImage.createMaterial(FontImage.MATERIAL_PLACE,
>> UIManager.getInstance().getComponentSelectedStyle("Command"));
>>
>> for (int i = 0; i < 6; i++) {
>> final int j = i;
>> Command command = new Command(addresses[i].getName() + "
>> Store") {
>>
>> @Override
>> public void actionPerformed(ActionEvent evt) {
>> /**
>>  * store form is always created as needs specific
>> stuff
>>  */
>>
>> StoreForm store = new StoreForm().init();
>> store.setup(f, j).show();
>> }
>> };
>> command.setIcon(im);
>> command.setPressedIcon(sel);
>> command.setRolloverIcon(sel);
>>
>> f.getToolbar().addCommandToOverflowMenu(command);
>> }
>>
>> }
>>
>>
>> Was displaying fine, but a rebuild today displays as attached image.
>> Android image also attached, which is fine.
>>
>> --
>> 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/grou
>> p/codenameone-discussions.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/codenameone-discussions/c4dce49b-2d1d-44c4-8f67-6b915a43
>> 5b25%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
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/CAGOYrKVUDXgGmctHk%2BYAWJLh7z0EoqF_D5398N51qaXZwVqNgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Overflow menu commands stopped displaying correctly

2016-08-31 Thread Steve Hannah
Strange.  When was your last known good build?

On Wednesday, 31 August 2016, Bryan Buchanan  wrote:

> Have this code to add overflow menu commands:
>
> public void addOverflowMenuCommands(final Form f) {
>
> Image im = FontImage.createMaterial(FontImage.MATERIAL_PLACE,
> UIManager.getInstance().getComponentStyle("Command"));
> Image sel = FontImage.createMaterial(FontImage.MATERIAL_PLACE,
> UIManager.getInstance().getComponentSelectedStyle("Command"));
>
> for (int i = 0; i < 6; i++) {
> final int j = i;
> Command command = new Command(addresses[i].getName() + "
> Store") {
>
> @Override
> public void actionPerformed(ActionEvent evt) {
> /**
>  * store form is always created as needs specific stuff
>  */
>
> StoreForm store = new StoreForm().init();
> store.setup(f, j).show();
> }
> };
> command.setIcon(im);
> command.setPressedIcon(sel);
> command.setRolloverIcon(sel);
>
> f.getToolbar().addCommandToOverflowMenu(command);
> }
>
> }
>
>
> Was displaying fine, but a rebuild today displays as attached image.
> Android image also attached, which is fine.
>
> --
> 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/c4dce49b-2d1d-44c4-8f67-
> 6b915a435b25%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
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/CAGOYrKUBZYBb5yQEePEaAC7qHgHFjf_qzXyC_Wwn%3DUhC%3DQ7NBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: date span / addition

2016-08-31 Thread howudodat1
well look at that...I thought Calendar was a UI object.  I see 
java.util.Calendar now :)

On Monday, August 29, 2016 at 9:36:24 PM UTC-7, Shai Almog wrote:
>
> What's not working with this?
> Notice that DATE is really DAY_OF_MONTH.
>

-- 
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/41b7f117-2314-4866-afe2-acbfe3814e5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] scrollComponentToVisible

2016-08-31 Thread howudodat1
I am building a picker replacement that uses a dialog to display a list of 
buttons.  (the iOS picker of only 3 lines is a joke)
The picker is a Dialog component with an associated button.  When the 
button is pressed, the dialog is shown.  I would like to scroll to the last 
selected item (even better would be to put it in the middle of the dialog).
when the button is clicked, my code does:
protected void onButton() {
cnt.removeAll();
for (T t : vData) {
Button b = new Button(t.toString());
b.setAlignment(LEFT);
   b.addActionListener(e -> { onClick(t); });
   cnt.add(b);
   if (t == selectedObject)
cmpLastVisible = b;
}

if (cmpLastVisible != null)
cnt.scrollComponentToVisible(cmpLastVisible);
this.show();
}

however I believe it is too early to scrollComponent since the dialog is 
not shown and is not layed out.

1:  How can I scroll to component?
2:  How can I scroll the component to the middle of the screen?

Here is the whole dialog:
package com.howudodat.pts.ui;

import java.util.ArrayList;

import com.codename1.ui.Button;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Dialog;
import com.codename1.ui.FontImage;
import com.codename1.ui.Label;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.layouts.BoxLayout;
import com.codename1.ui.plaf.UIManager;

public class DlgPicker extends Dialog {
// was the dialog canceled?
public boolean Cancelled = false;

// the data and container for the list
protected ArrayListvData = null;
protected Container cnt = new Container();

// last selected objects
protected T selectedObject = null;
protected Component cmpLastVisible = null;

// this is the field that can be placed into the parent container
protected Button btnField = new Button();
// title bar for the dialog with a cancel button
protected Label lblTitle = new Label();
Button cmdClose = new 
Button("",FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("Command")));
/**
* constructor - Create a new DlgPicker with no parameters
*/
public DlgPicker() {
initManualComponents();
}

/**
* constructor - Create a new DlgPicker
* @param sTitle - title of the dialog
*/
public DlgPicker(String sTitle) {
lblTitle.setText(sTitle);
initManualComponents();
}

/**
* constructor - Create a new DlgPicker
* @param sTitle - title of the dialog
* @param vData - data for the list
*/
public DlgPicker(String sTitle, ArrayList vData) {
this.vData = vData;
lblTitle.setText(sTitle);
initManualComponents();
}

/**
* create the base gui Note:  the list is created when showing the dialog
*/
protected void initManualComponents() {
this.setLayout(new BorderLayout());
lblTitle.setAlignment(CENTER); 
cmdClose.addActionListener(e->onClose());
btnField.addActionListener(e->onButton());

Container title = new Container();
title.setLayout(new BorderLayout());
title.add(BorderLayout.CENTER, lblTitle);
title.add(BorderLayout.EAST, cmdClose);

cnt.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
cnt.setScrollableY(true);

this.add(BorderLayout.NORTH, title);
this.add(BorderLayout.CENTER, cnt);
}

/**
 * retrieve the component to place in the parent (this is a button)
 * @return Component
 */
public Component getComponent() {
return btnField;
}

/**
 * set the title of the dialog
 */
public void setTitle(String sTitle) {
lblTitle.setText(sTitle);
}

/**
 * set the data for the list
 * @param vData
 */
public void setData(ArrayListvData) {
this.vData = vData;
}

/**
 * called when the button is clicked.  This is where we load the data 
and display the dialog
 */
protected void onButton() {
cnt.removeAll();
for (T t : vData) {
Button b = new Button(t.toString());
b.setAlignment(LEFT);
   b.addActionListener(e -> { onClick(t); });
   cnt.add(b);
   if (t == selectedObject)
cmpLastVisible = b;
}

if (cmpLastVisible != null)
cnt.scrollComponentToVisible(cmpLastVisible);
this.show();
}

/**
 * called when a list item is clicked.  we save the object and set the 
button text
 * @param t
 */
protected void onClick(T t) {
selectedObject = t;
btnField.setText(t.toString());
this.dispose();
}

/**
 * closed by clicking the cancel button
 */
protected void onClose() {
Cancelled = true;
dispose();
}

public void setSelectedObject(T t) {
selectedObject = t;
}

public T getSelectedObject() {
return selectedObject;
}
}



-- 
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] error building in IOS - Failed to generate device screenshot!

2016-08-31 Thread romancanoniero
HI! what are the possible reasons for that error?


Failed to generate device screenshot! 
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build1213908309854252436xxx/res/Default.png



tranks
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/acb25c45-7080-4f77-8435-6222a03f2158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Build error: export failed on iOS

2016-08-31 Thread mcellinpaul
Hi - I got this error today. Not for release builds (which I've been doing 
the last few weeks - enterprise builds) but for a debug build - so this may 
not have actually appeared today but I've only just seen it today.

I do use cn1libs - specifically the barcode one and a bouncycastle one.

Just trying to do an iPhone_old build now though it's been queued for a 
while :(

Paul

On Tuesday, August 30, 2016 at 5:16:06 AM UTC+1, Shai Almog wrote:

> Hi,
> This is related to the xcode server migration:
>
> https://www.codenameone.com/blog/xcode-migration-take-2.html
>
> Is this still happening in current builds?
> Is this working with the iphone_old builds?
>
> What can you tel us about your project? Native code, cn1libs anything 
> special?
>

-- 
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/a1efbfcc-d506-45f5-8758-47c61c63eed2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: IOS "connection refused" for HTTP requests

2016-08-31 Thread Carlos Verdier
I assume this is because you switched to the new Xcode version. 

Is iphone_old working? My builds are queued and can't get them compiled. 

Although I have a good reason to overcome the ssl security, i'd like to 
avoid this situation at least in the first 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/daceb6a5-08b2-46dc-a247-f1f6e8360f39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Deal with null value in sqlite database

2016-08-31 Thread Jérémy MARQUER
I come back to this topic which is very problematic for me. The manner 
which I use permit me to read/save null values in database. But in fact, 
it's "null" string values that are stored in db. So, there is no constraint 
validation possible with that. Even worse, foreign key constraint can 
failed if you want to put a null foreign key since it's not really a null 
value

I don't understand why query execution can take Object[] as parameter while 
it's converted to String[]. Why can't we inject object in the query and not 
string as params ???

Thanks !

On Tuesday, May 24, 2016 at 10:32:33 AM UTC+2, Jérémy MARQUER wrote:
>
> Hi,
>
> I'm facing to a problem with load/read data in database. In case of 
> integer or long column type, we can't find/update/save object with null 
> values since these methods return primitive types : 
>   /**
>  * Gets column value by index.
>  * 
>  * @param index starts with zero
>  * @return a int data from the database
>  * @throws IOException 
>  */
> public int getInteger(int index)throws IOException;
>
>
> /**
>  * Gets column value by index.
>  * 
>  * @param index starts with zero
>  * @return a long data from the database
>  * @throws IOException 
>  */
> public long getLong(int index)throws IOException;
>
>
> I absolutely need to save null value in my database. 
>
> FYI, I use cn1-data-lib-access shannah's library.
>
> Thanks.
>
> 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/140f8fb0-5bc9-4252-b176-99217a2ad228%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Type.KeyPress not called

2016-08-31 Thread Gareth Murfin
When I do this code Type.KeyRelease is detected but never Type.KeyPress, 
why is that ?

 f.addKeyListener(RIGHT, new ActionListener() {
public void actionPerformed(ActionEvent evt) {
   _("///RIGHT PRESSED.");
   
 
  if (evt.getEventType()==Type.KeyPress)
   {
   _("PRESS");
   game.keyPressed(DDragon.KEYCODE_RIGHT);
   }
   if (evt.getEventType()==Type.KeyRelease)
   {
_("RELEASE");
   game.keyReleased(DDragon.KEYCODE_RIGHT);
   }
}
}); 


-- 
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/5bfeae99-2149-44f8-8377-ba889ffbd1b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.