Re: [codenameone-discussions] Re: Not a visual project??

2016-10-07 Thread Chen Fishbein
When you double click on the res file, the Designer gets opened.
The Designer contains your theme, images, localization and may also contain 
the actual gui, we are deprecating the gui building from the designer.
When you create a regular project(not a Visual Project type from the 
project wizard see "old gui builder") and then try to add gui elements from 
the tool, these elements won't be used so we are popping this warning, to 
use the old gui builder your project needs to be one of the "old gui 
builder" type

-- 
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/56a507ba-c177-4275-8ae7-eab67cf0c229%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: State of change google playservice to version 9.4?

2016-10-07 Thread romancanoniero
so, i have to insert a new hint with value 9.4?


thanks

On Friday, October 7, 2016 at 11:05:50 PM UTC-3, Shai Almog wrote:
>
> Hi,
> we have some concerns about changing the default here so we added a build 
> hint: 
>
> android.playServicesVersion
>
>
> We recommend caution with this build hint
>

-- 
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/ff4200ba-f182-42ee-80ef-db7c43230738%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: Not a visual project??

2016-10-07 Thread James Barrett
The GUI builder opens when i double click theme.res file.  I have no
control over whether the "old" one opens or the "new"  one opens.  Is there
another way to open the GUI builder?  Am i showed to make a different res
file? How do i use the res file in my java code?

Sent from my HTC One M8.

On Oct 7, 2016 10:07 PM, "Shai Almog"  wrote:

> You opened the old GUI builder where a project needs to be created
> especially for it "visual project" is a somewhat confusing term in that
> sense as all projects have a UI.
>
> The new GUI builder is documented here: http://www.codenameone.com/
> blog/using-the-new-gui-builder.html
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/codenameone-discussions/T82wEzdTANk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d2b389fb-0d54-4413-b81d-
> de3847630082%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


[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 = new ByteArrayOutputStream();
mBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
byte[] byteArray = stream.toByteArray();   // now have PNG of the component


Shai answered a similar question with: "You can create a mutable image 
(Image.create(width,height)) then invoke getGraphics on it and paint the 
component onto it.", which seems reasonable, but I'm not sure what to do to 
make that happen.

-- 
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/347db8bc-3371-432c-8a6b-ef413b4732f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Multibutton selected

2016-10-07 Thread howudodat1

>
>
> You can create your own lead component whose lead is a ToggleButton and 
> work with that.
>

Beautiful that worked like a charm 

-- 
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/56bdf468-454e-4c23-acde-ae14dbba680c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Tutorial on using a GUI form in code

2016-10-07 Thread Shai Almog
Based on your other question I'm guessing you used the old GUI builder. If 
you choose to go with that you would have a state machine class 
autogenerated in a GUI builder project.

I'd recommend going with the new GUI builder and also checking the plugin 
for update as we made a lot of changes to the GUI builder and are updating 
the plugins...

http://www.codenameone.com/blog/using-the-new-gui-builder.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/4d81cbf9-f127-4fff-9b3d-100e23c8345f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.