UWP Overflow menu commands stopped displaying correctly

48 views
Skip to first unread message

Bryan Buchanan

unread,
Aug 31, 2016, 6:56:19 PM8/31/16
to CodenameOne Discussions
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.
wp_ss_20160901_0002.png
device-2016-09-01-084946.png

Steve Hannah

unread,
Aug 31, 2016, 7:28:38 PM8/31/16
to codenameone...@googlegroups.com
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+unsub...@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

Steve Hannah

unread,
Aug 31, 2016, 8:10:40 PM8/31/16
to codenameone...@googlegroups.com
I just tried a build with a slight modification of this code (since your example isn't convex), and it seemed to work fine.


On Wed, Aug 31, 2016 at 4:28 PM, Steve Hannah <steve....@codenameone.com> wrote:
Strange.  When was your last known good build?


On Wednesday, 31 August 2016, Bryan Buchanan <bry...@webbtide.com> 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.
--
Steve Hannah
Software Developer
Codename One

Bryan Buchanan

unread,
Aug 31, 2016, 9:56:39 PM8/31/16
to CodenameOne Discussions
Last week.

Bryan Buchanan

unread,
Aug 31, 2016, 9:57:44 PM8/31/16
to CodenameOne Discussions
I'll tweak my code and try again.

You'll also notice on the two screen shots I sent, the Gaussian Blur doesn't seem to have much effect on UWP.

Bryan Buchanan

unread,
Aug 31, 2016, 10:17:42 PM8/31/16
to CodenameOne Discussions
UWP Debug build -> works OK
UWP Store Build -> labels are incorrect

Steve Hannah

unread,
Aug 31, 2016, 11:39:13 PM8/31/16
to codenameone...@googlegroups.com
Was the good build last week a debug build or a windows store build?


On Wednesday, 31 August 2016, Bryan Buchanan <bry...@webbtide.com> wrote:
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+unsub...@googlegroups.com.
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.

Bryan Buchanan

unread,
Sep 1, 2016, 12:38:45 AM9/1/16
to CodenameOne Discussions
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.

Steve Hannah

unread,
Sep 1, 2016, 12:56:17 AM9/1/16
to codenameone...@googlegroups.com
OK.  So not a regression.  Just a problem with windows store builds that was probably always there.  Lovely.

Steve

--
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+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

Bryan Buchanan

unread,
Sep 1, 2016, 12:58:05 AM9/1/16
to CodenameOne Discussions
On Thursday, September 1, 2016 at 2:56:17 PM UTC+10, Steve Hannah wrote:
OK.  So not a regression.  Just a problem with windows store builds that was probably always there.  Lovely.

Quite likely.

Isn't being a software developer such fun :)

Steve Hannah

unread,
Sep 8, 2016, 8:19:39 PM9/8/16
to codenameone...@googlegroups.com
This is now fixed.  Will be on the build server soon.  (I think tomorrow, but don't quote me on that).

Steve

--
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+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages