[codenameone-discussions] Oracle Java

2018-04-21 Thread Bryan Buchanan
Just wondering about Oracle's recent announcements about commercial support for Java - should I care, does it affect CN1 apps ? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails

[codenameone-discussions] Re: Shame we can't add on Javascript for a little more

2017-07-26 Thread Bryan Buchanan
"It's really hard to grow a company on 19USD or 79USD." My thoughts on this, as a LWUIT/CN1 user from way back, but who does mobile as a sideline (1) the main issue you have in getting people to use CN1 is that the "native" L is not actually native widgets but is CN1's best effort to emulate

[codenameone-discussions] Re: Side Menu on Top

2017-05-17 Thread Bryan Buchanan
If you look at the "old" side menu screenshot, you'll see it covers about 75% of the width, so I take the meaning of that parameter to be the amount of the underlying form you want displayed i.e. 25%. On Thursday, May 18, 2017 at 3:32:54 PM UTC+10, Shai Almog wrote: > > Looking at this again

[codenameone-discussions] Re: Side Menu on Top

2017-05-17 Thread Bryan Buchanan
sideMenuSize[*] is set to 25 (for all 4 variations) The side menu doesn't change size (i.e. cannot swipe it) - will only display on menu button press On Wednesday, May 17, 2017 at 4:08:00 PM UTC+10, Shai Almog wrote: > > Odd. Did you define any theme constants? > It should respect

[codenameone-discussions] Side Menu on Top

2017-05-16 Thread Bryan Buchanan
Tried this out, and doesn't open enough. If there some setting I need ? My init() code: Toolbar.setGlobalToolbar(true); Toolbar.setOnTopSideMenu(true); Attached are before and after screenshots. -- You received this message because you are subscribed to the Google Groups

[codenameone-discussions] Re: RoundBorder performance

2017-02-16 Thread Bryan Buchanan
It's the drop shadow. Works fine without. On Friday, February 17, 2017 at 4:54:09 PM UTC+10, Shai Almog wrote: > > Is it the dropshadow specifically that causes the issue or something else? > If you just remove the dropshadow is the transition smooth? > > Dropshadow uses blur which might be the

[codenameone-discussions] Autosizing form title

2017-02-14 Thread Bryan Buchanan
This doesn't seem to have any effect: Form hi = new Form("A form with a very, very, very long title"); hi.getTitleComponent().setAutoSizeMode(true); not sure if it should ? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions"

[codenameone-discussions] Re: using Painter

2017-01-19 Thread Bryan Buchanan
I solved it by a bit of hack, but it seems to work OK. In the attached file, when I instantiate my Painter, I save top = f.getTitleComponent().getPreferredSize().getHeight(); and in the paint method if (ypos < top) return;. On Friday, January 20, 2017 at 3:00:08 PM UTC+10, Shai Almog

[codenameone-discussions] using Painter

2017-01-18 Thread Bryan Buchanan
I'm using a Painter to display a validation hint, similar to the example in the API docs. This is the code that actually paints the image: private void paintMe(Graphics g, Component comp) { int xpos = comp.getAbsoluteX(); int ypos = comp.getAbsoluteY(); float width

[codenameone-discussions] Message.getAttachments() - possible bug

2017-01-17 Thread Bryan Buchanan
I've used code similar to this to add multiple attachments, which works well Message m = new Message(sb.toString()); m.setMimeType(Message.MIME_TEXT); m.getAttachments().put(filename1, "text/html"); m.getAttachments().put(filename2, "text/html"); Message.sendMessage(recipients, "subject", m);

Re: [codenameone-discussions] Compilation error - generics

2016-12-22 Thread Bryan Buchanan
OK - thanks Steve - I didn't think to look at Integer class. On Friday, December 23, 2016 at 12:01:38 PM UTC+10, Steve Hannah wrote: > > Currently Integer doesn't implement Comparable. Its on the to do list so > hopefully we'll have this soon. In the mean time, use the 2-arg version of >

Re: [codenameone-discussions] PDF generation

2016-12-21 Thread Bryan Buchanan
On Thursday, December 22, 2016 at 11:54:47 AM UTC+10, Steve Hannah wrote: > > You can give that a try. Usually I start a new Codename One project, and > copy the java source files into it. Then start fixing errors as they come > up. With something like PDF, you're likely to get in deep

Re: [codenameone-discussions] PDF generation

2016-12-21 Thread Bryan Buchanan
Not sure I understand why it needs native code of server-side stuff. It's just a library producing a text file, it's all Java. When I create a CN1 app, doesn't just the byte code of my app get sent to the build server ? In any case, I just checked the PDFJet Open Source code, and it's

[codenameone-discussions] PDF generation

2016-12-21 Thread Bryan Buchanan
I'm considering http://pdfjet.com/ to generate PDF's in Android (and other platforms I guess). AFAIK, the commercial version just ships the .jar file. Is this all CN1 needs to build with ? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions"

[codenameone-discussions] Re: FileSystemStorage.getInstance().getCachesDir() permissions

2016-12-14 Thread Bryan Buchanan
OK, thanks. -- 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

[codenameone-discussions] FileSystemStorage.getInstance().getCachesDir() permissions

2016-12-13 Thread Bryan Buchanan
Have this function as per the blog: private static String getCachePath() { String root; if (FileSystemStorage.getInstance().hasCachesDir()) { root = FileSystemStorage.getInstance().getCachesDir() + "blah/"; } else { root =

[codenameone-discussions] HTML Email

2016-11-19 Thread Bryan Buchanan
Wondering if anyone has successfully managed to send HTML formatted email from Android (using Gmail app). It seems to strip most HTML formatting (in particular ), but leaves etc, . I set the mime-type correctly in CN1. This isn't a CN1 problem - Googling comes up with quite a few people

[codenameone-discussions] Re: ImageViewer - delete currently showing image

2016-11-17 Thread Bryan Buchanan
Indeed it does :) -- 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

[codenameone-discussions] ImageViewer - delete currently showing image

2016-11-16 Thread Bryan Buchanan
Just wanting a suggestion on best UI approach to allow a user to delete the currently displayed ImageViewer image. Was thinking of a FloatingButton and querying the selectedIndex of the ListModel. Any better suggestion ? -- You received this message because you are subscribed to the Google

[codenameone-discussions] Re: Move where Component displays

2016-10-30 Thread Bryan Buchanan
Thanks for the heads up on the validation framework. Have used the source to Validator to achieve just what I wanted. Even though it's a battle sometimes because of the infinite flexibility, there's always a way with CN1 ! On Monday, October 31, 2016 at 11:28:58 AM UTC+10, Shai Almog wrote: >

[codenameone-discussions] Cannot set sidmenu width theme constant

2016-10-28 Thread Bryan Buchanan
The value entered in the dialog doesn't "take". If you re-edit, displays as zero. -- 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] Re: how to add red color badges(notification count) overlay like facebook in android

2016-10-27 Thread Bryan Buchanan
Is there a better way to add a tick/cross to a text field ? Form hi = new Form("Badge"); Button chat = new Button(""); FontImage.setMaterialIcon(chat, FontImage.MATERIAL_CHAT, 7); Label badge = new Label("33");

[codenameone-discussions] Re: how to add red color badges(notification count) overlay like facebook in android

2016-10-27 Thread Bryan Buchanan
That's very neat - but it's a lot of hard work setting it up. I can see this sort of thing would be very useful for edit fields to have a tick or cross for data validation (like you see on some web sites). On Thursday, October 27, 2016 at 12:46:07 PM UTC+10, Shai Almog wrote: > > See >

[codenameone-discussions] Re: SignatureComponent

2016-10-10 Thread Bryan Buchanan
I wouldn't say it's a lack of responsiveness, it's just not _as_ responsive as the native code. The SignatureComponent seems about the same as my component (which you'd hope as it's exactly the same code). It's not really an issue - on a fast, newish tablet the difference is probably not

[codenameone-discussions] Re: SignatureComponent

2016-10-10 Thread Bryan Buchanan
Forgot the code. On Tuesday, October 11, 2016 at 10:47:47 AM UTC+10, Bryan Buchanan wrote: > > I've adapted the code from the SignatureComponent (see Form2.java), which > works fine. I've also tried some native Android code - > > > http://www.mysamplecode.com/2011/11/android

[codenameone-discussions] SignatureComponent

2016-10-10 Thread Bryan Buchanan
I've adapted the code from the SignatureComponent (see Form2.java), which works fine. I've also tried some native Android code - http://www.mysamplecode.com/2011/11/android-capture-signature-using-canvas.html They both work pretty much the same, but the native Android code is noticeably more

Re: [codenameone-discussions] Fonts on UWP app on Windows 10 Desktop terrible

2016-10-08 Thread Bryan Buchanan
If I use the generic TTF sizing of "Medium" it displays fine, so I think you are correct. I need to re-think my logic on setting font sizes. On Sunday, October 9, 2016 at 6:17:49 AM UTC+10, Steve Hannah wrote: > > On your large screen are you sure that millimetres aren't just very small >

Re: [codenameone-discussions] Fonts on UWP app on Windows 10 Desktop terrible

2016-10-08 Thread Bryan Buchanan
Just wondering of anything has been done about this ? On Saturday, September 24, 2016 at 5:16:27 PM UTC+10, Bryan Buchanan wrote: > > Attached is: > > 1. program used for testing. Note that > > Display.getInstance().sendMessage(new String[]{" > bry...@webbt

[codenameone-discussions] Save component to image

2016-10-07 Thread Bryan Buchanan
I want to do the same as this Android code in CN1: Bitmap mBitmap = Bitmap.createBitmap(mContent.getWidth(), mContent.getHeight(), Bitmap.Config.RGB_565); Canvas canvas = new Canvas(mBitmap); v.draw(canvas);// draw current view to bitmap ByteArrayOutputStream stream =

[codenameone-discussions] Re: Scrollable container scrolling from bottom instead of top

2016-10-02 Thread Bryan Buchanan
OK, I'll try that. But before I do, I need to solve a problem with scrolling. On the form, I have two containers, and they each set their size like this: static final int SIZE = 25; // DIPS ~ 1mm/dip /** * sets size of container at top of screen */ class MyContainerTop

[codenameone-discussions] Re: Scrollable container scrolling from bottom instead of top

2016-10-02 Thread Bryan Buchanan
See the attached. Initially 65 was entered, and displayed on the bottom, then 21 which also displayed on the bottom, which pushed 65 up, etc. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop

[codenameone-discussions] Re: MapComponent

2016-09-29 Thread Bryan Buchanan
OK - having done a bit of research, it appears I can run my own vector tile server:https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service, and there is an OpenGL rendering library: https://github.com/tangrams/tangram-es Is it feasible for me to think about using this in

[codenameone-discussions] MapComponent

2016-09-27 Thread Bryan Buchanan
In the Developer Guide, it says "The MapComponent uses a somewhat outdated tiling API which is not as rich as modern native maps." Can you elaborate on that, and whether it is still usable with a custom TiledProvider to use across all platforms (Android, iOS, UWP) ? -- You received this

Re: [codenameone-discussions] Fonts on UWP app on Windows 10 Desktop terrible

2016-09-19 Thread Bryan Buchanan
1360x768, DPI set to 100% (default). It's an Intel Compute Stick plugged in to the HDMI port of an LG TV. -- 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

[codenameone-discussions] 3D graphics engine

2016-09-16 Thread Bryan Buchanan
I've just been looking at a Xamarin demo of 3D graphics. They've wrapped https://urho3d.github.io/ (Urho3D) for C# - https://developer.xamarin.com/guides/cross-platform/urho/introduction/ Is there anything similar for use with CN1 ? -- You received this message because you are subscribed to

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

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

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

Re: [codenameone-discussions] Windows Store submission error

2016-08-29 Thread Bryan Buchanan
OK, thanks, I'll wait until the weekend. -- 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

[codenameone-discussions] Windows Store submission error

2016-08-29 Thread Bryan Buchanan
See attached message about precompiled.NET packages. What does it mean ? -- 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] Re: Windows Store Build never completes

2016-08-28 Thread Bryan Buchanan
I cancelled it last night and it eventually cancelled. I re-submitted 3 hours ago and it's still in the building stage. On Sunday, August 28, 2016 at 2:26:31 PM UTC+10, Shai Almog wrote: > > Cancel and resend. If this is stuck in the same "building" stage then this > is something we need to

[codenameone-discussions] UWP + Storage = hangs

2016-08-22 Thread Bryan Buchanan
static final String STORAGE = "nstV3"; public void start() { if (current != null) { current.show(); return; } hi = new Form("Test"); hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS)); hi.setScrollableY(true); hi.show();

Re: [codenameone-discussions] Re: Windows UWP issues 1808 and 1822

2016-08-20 Thread Bryan Buchanan
Manifest look OK: http://schemas.microsoft.com/appx/manifest/foundation/windows10; xmlns:mp= "http://schemas.microsoft.com/appx/2014/phone/manifest; xmlns:uap= "http://schemas.microsoft.com/appx/manifest/uap/windows10; IgnorableNamespaces="uap mp"> NSTPriceList NS Timber Pty

[codenameone-discussions] Re: Windows UWP issues 1808 and 1822

2016-08-19 Thread Bryan Buchanan
Just tried another app which connects to a different server, and it freezes now also, so I'm thinking there has been some regression with the new build code. On Saturday, August 20, 2016 at 1:05:31 PM UTC+10, Bryan Buchanan wrote: > > I've just tried this again, and these issue

[codenameone-discussions] Re: Windows UWP issues 1808 and 1822

2016-08-19 Thread Bryan Buchanan
I've just tried this again, and these issues seem to be resolved, however The app uses a ConnectionRequest to load info from a remote servlet. This has worked fine on all platforms previously, and just now works fine in the simulator. The WP10 version used to work, but the new version

[codenameone-discussions] Windows UWP issues 1808 and 1822

2016-08-15 Thread Bryan Buchanan
These are closed. I've just updated the CN1 plugin (3.5.2), and I thought the build server was being updated Sunday. I've rebuilt the apps, and there appears to be no change in the behaviour. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: Cannot install app on iOS

2016-07-08 Thread Bryan Buchanan
Well, I give up. I think that's it for me with Apple devices. Googling turns up a heap of people with the same issue, with all manner of advice to fix. I completely reset the device and the app still won't install. It's unlikely to be a CN1 issue. I have to say, *every *time I do anything with

[codenameone-discussions] Re: Windows Phone 10 - fonts not working

2016-07-04 Thread Bryan Buchanan
Done. On Tuesday, July 5, 2016 at 2:40:38 PM UTC+10, Shai Almog wrote: > > Can you file an issue on that? > It's OK to include just one TTF file that's free e.g. Roboto with the test > case. > -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Windows Phone 10 - fonts not working

2016-07-04 Thread Bryan Buchanan
final Form hi = new Form("Fonts"); hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS)); hi.setScrollableX(false); hi.setScrollableY(true); int[] sizes = {2, 3, 4, 6, 8}; String[] fonts = {"ArchitectsDaughter", "Cabin-Regular",

[codenameone-discussions] Re: Fonts on Windows Phone

2016-07-03 Thread Bryan Buchanan
Works if I include a ttf file with the app. -- 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.

[codenameone-discussions] List vs list of Components

2016-06-29 Thread Bryan Buchanan
I had a custom ListCellRendered which had setUIID("Underline"); focus = new Label(""); focus.setUIID("UnderlineSelected"); and @Override public Component getListFocusComponent(List list) { return focus; } so when the List item is selected the visual appearance of that item

[codenameone-discussions] Re: Util.downloadImageToStorage vs URLImage.createToStorage vs ImageDownloadService.createImageToStorage

2016-06-29 Thread Bryan Buchanan
Replying to myself - it looks like Lead Component is what is needed. On Wednesday, June 29, 2016 at 3:39:37 PM UTC+10, Bryan Buchanan wrote: > > Further to this, if I add a bunch of components (each one a container with > things layed out as per my current cell renderer), what is the e

[codenameone-discussions] Re: Util.downloadImageToStorage vs URLImage.createToStorage vs ImageDownloadService.createImageToStorage

2016-06-27 Thread Bryan Buchanan
It does: if (Storage.getInstance().exists(part.getUrl())) { EncodedImage myimage = EncodedImage.create((byte[]) Storage. getInstance().readObject(part.getUrl())); image.setIcon(myimage); } else { image.setIcon(blank); } So if I use

[codenameone-discussions] Windows UWP build

2016-06-24 Thread Bryan Buchanan
Have followed Steve's instructions at https://github.com/codenameone/CodenameOne/wiki/Working-with-UWP, but no luck in installing. See the attached screenshots. The app doesn't display on the phone or show under "Installed Apps" from the web page. Any ideas ? -- You received this message

Re: [codenameone-discussions] CN1 disappeared from Netbeans

2016-06-23 Thread Bryan Buchanan
Yes, I did that, and looks like it works (i.e. Nebeans says it's checked for updates for CN1 at hh.mm etc), but the CN1 options don't appear in "New Project" or right clicking on an existing project. I'll try deleting the install (again) and starting from scratch. On Friday, June 24, 2016 at

Re: [codenameone-discussions] CN1 disappeared from Netbeans

2016-06-23 Thread Bryan Buchanan
OK, thanks Steve. Any idea why CN1 seems to have disappeared from Netbeans ? On Friday, June 24, 2016 at 7:36:40 AM UTC+10, Steve Hannah wrote: > > The windows stuff I'm adding to the guide hasn't actually been released > yet. It will be in the next plugin update. > -- You received this

[codenameone-discussions] CN1 disappeared from Netbeans

2016-06-23 Thread Bryan Buchanan
I was trying to test the latest Windows build stuff as per Steve's installation guide. On my version I didn't have all the Windows build options, so I tried to update the CN1 plugin, but it doesn't display in the Available Plugins. I went through the alternative installation instructions to

Re: [codenameone-discussions] Re: Windows Phone 10 install

2016-06-15 Thread Bryan Buchanan
FYI, I created a new CN1 starter project, built it OK for Windows, but it also silently refuses to install. -- 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

[codenameone-discussions] Windows target build error

2016-06-15 Thread Bryan Buchanan
App build fine for Android target, but barfs on this error for Windows build: Executing: c:\Program Files\Java\jdk1.8.0_60\bin\java -Dretrolambda.inputDir=C:\Users\Shai\AppData\Local\Temp\build1466699689663839410xxx\classes

Re: [codenameone-discussions] Re: Windows Phone 10 install

2016-06-14 Thread Bryan Buchanan
Thanks, although I'm not too sure what else there is to do - seems like the procedure Steve has given should work fine. Windows can obviously parse the binary that is being installed because it displays the correct app name, but then gives you no indication of success or failure, which is

Re: [codenameone-discussions] Re: Windows Phone 10 install

2016-06-14 Thread Bryan Buchanan
Thanks Steve - added these hints (not sure if the syntax is correct): codename1.arg.uwp.buildType=debug codename1.arg.uwp.platforms=ARM but still no joy. Is there anything I can set (apart from Field Medic which doesn't seem to do anything) to get some debug info ? -- You received this