[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
here is the smallest possible I could get to reproduce the problem. There is only a one line difference between the two dialogs. It is that one line that causes MyDlg2 to break. test1 (MyDlg) the X is chopped off on the right test2 (MyDlg2) the 4th column is completely gone.

[codenameone-discussions] Re: string picker width is 0

2016-07-25 Thread howudodat1
thanks, will look forward to the update, for now I do: protected void setStrings (Picker picker, String[] strs) { picker.setStrings(strs); String sLongest = ""; for (String s : strs) if (s.length() > sLongest.length()) sLongest = s;

[codenameone-discussions] Re: changing theme makes titlebar disappear

2016-07-25 Thread Shai Almog
I have rather similar code in our theme section of an upcoming demo and it doesn't produce such an issue so I'm guessing there is either something in the theme or elsewhere in the app that triggers this. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread Shai Almog
This is a complex problem to debug and the code requires an understanding of what you are trying to achieve. Try reproducing it with the smallest possible table and just buttons then file an issue with something like that. We are entering the 3.5 codefreeze and have a lot of issues after that

[codenameone-discussions] Re: string picker width is 0

2016-07-25 Thread Shai Almog
Just use a longer value than you are ever likely to have. FYI I've set a default prototype to the picker which makes sense so this should not behave like that in the coming update. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To

[codenameone-discussions] Re: position dialog at upper right

2016-07-25 Thread Shai Almog
Button b = form.getToolbar().findCommandComponent(cmd); -- 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 with duplicates in codenameone_library_appended.properties

2016-07-25 Thread nickkoirala
If I have two separate cn1libs that add the same build hints in codenameone_library_appended.properties they get added twice and then won't build due to duplicates (i.e., android.xpermissions, android.xapplication) Unfortunately the only workaround I've found not practical for a sensible

[codenameone-discussions] special character and non native theme

2016-07-25 Thread howudodat1
When using special characters, they display just fine on native theme, but on non native they display with a box/x charater columnNames[1] = "Name \u25BC";

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
OK looks like img.mirror() and img.subImage() can copy these functions well! So all working now. ie, J2ME: gs.drawRegion(img, rgRect[0], rgRect[1], rgRect[2], rgRect[3], Sprite.TRANS_MIRROR, posx-rgRect[4], posy-rgRect[5],

[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
And the problems keep getting weirder. Now the 4th column is disappearing. Here is a complete test app you can copy / paste. Click on test1 and you see all 4 columns, click on test2 and the 4th column disappears. The difference is a textfield is in test2 public class FrmMain extends Form {

[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
You can see the problem in your sample, why is there a textfield laying on top of your vertically spanned container? On Sunday, July 24, 2016 at 9:00:06 PM UTC-7, Shai Almog wrote: > > This is what I got when I ran something similar: > > >

[codenameone-discussions] Re: dialog transparency in the emulator

2016-07-25 Thread howudodat1
I still dont think it is working. As a test I changed to using setBgColor() I tried all three: this.getDialogStyle().setBgColor(0xFF); this.getStyle().setBgColor(0xFF); this.getContentPane().getStyle().setBgColor(0xFF); And the result I get is:

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
And I need graphics.copyArea() :-) looks like im gonna have to implement some of these... got the port of the game working actually, its only the flipped sprites missing! On Monday, July 25, 2016 at 10:17:59 PM UTC+8, Gareth Murfin wrote: > > Also interested in anyway to mimic "anchors" when

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
Also interested in anyway to mimic "anchors" when doing a drawImage(), im basically porting old j2me canvas titles. On Monday, July 25, 2016 at 9:02:21 PM UTC+8, Gareth Murfin wrote: > > Fixed it, it was my own canvas logic. Also curious if there are any libs > around with things like

[codenameone-discussions] how to test app in iphone

2016-07-25 Thread pugazh . cse
Sir, codename is a really awesome cross mobile platform framework..thanks a lot to codename one team...sir, today I ve developed simple message app..it works very well in emulator and Android phone..now I want to test this app in iPhone... wat r steps to needed to test this app in iPhone..? is

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
Fixed it, it was my own canvas logic. Also curious if there are any libs around with things like drawRegion in the graphics class? And Sprite stuff from old midp2 days and things for flipping sprites in code (TRANS_MIRROR) On Monday, July 25, 2016 at 8:21:32 PM UTC+8, Gareth Murfin wrote: > >

[codenameone-discussions] Re: Can't see canvas unless I resize emulator

2016-07-25 Thread Gareth Murfin
ps DDragon extends Component and has an override for paintBackground On Monday, July 25, 2016 at 8:13:48 PM UTC+8, Gareth Murfin wrote: > > I am trying to port an old arcade game to codename one. I am using the > canvas and have something drawing, but I can only see it when Im literally >