Re: [codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-26 Thread Gareth Murfin
Works only if I have that title bar thing showing which I dont want I want 
my own button to pop open a menu on the right, on the left its a piece of 
cake, im not going to try with layerlayouts and animating them in

On Friday, August 26, 2016 at 5:08:54 PM UTC+8, Gareth Murfin wrote:
>
> It doesnt work, would be great if you could give an example, for now Im 
> just actually going to tell clients you cant have a right menu, far too 
> confusing and hard to do, wasted days trying to get something to appear
>
> On Saturday, August 6, 2016 at 1:25:01 PM UTC+8, Shai Almog wrote:
>>
>> If it's the container then you need to have a command and put the client 
>> property into that then add the command.
>>
>

-- 
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/923d52e7-155f-46d2-9926-58e95eae1fea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-26 Thread Gareth Murfin
It doesnt work, would be great if you could give an example, for now Im 
just actually going to tell clients you cant have a right menu, far too 
confusing and hard to do, wasted days trying to get something to appear

On Saturday, August 6, 2016 at 1:25:01 PM UTC+8, Shai Almog wrote:
>
> If it's the container then you need to have a command and put the client 
> property into that then add the command.
>

-- 
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/cd98aacd-4c02-46ff-b873-6a672b3471c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-05 Thread Shai Almog
If it's the container then you need to have a command and put the client 
property into that then add the command.

-- 
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/2770a7d8-f038-40b0-ac8d-058d3082da15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-05 Thread Gareth Murfin
SideMenuRIGHT is a container which contains what I want my menu to show.

On 5 August 2016 at 14:19, Shai Almog  wrote:

> That looks like a side menu shadow.
>
> What's SideMenuRIGHT?
> Is it a command?
> It seems you put it into the client property instead of the container.
>
> --
> 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/RGuV-ShwvLo/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/69d0ec12-8134-44b5-a85a-
> 523be6b88b1b%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

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


[codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-04 Thread Gareth Murfin
Im not 100% clear what you mean, do you mean basically this:

smbForRightMenu.putClientProperty("SideComponent", SideMenuRIGHT);
smbForRightMenu.add(SideMenuRIGHT);

Still stays empty if I try that.

On Thursday, August 4, 2016 at 12:53:14 PM UTC+8, Shai Almog wrote:
>
> You need to set the side component before adding the command.
>

-- 
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/ce616302-2aba-4b55-885e-657b0a261cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-03 Thread Shai Almog
You need to set the side component before adding the command.

-- 
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/4d67039c-6a39-4d5b-83d3-997e9b255235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to have a right side menu, with container in it

2016-08-03 Thread Gareth Murfin
there was a typo in that code i meant to put: 

smbForRightMenu.add(SideMenuRIGHT);
smbForRightMenu.putClientProperty("SideComponent", 
SideMenuRIGHT);

I tried the second approach just in case, think I read it on the blog, but 
neither seem to do it.

On Wednesday, August 3, 2016 at 7:15:42 PM UTC+8, Gareth Murfin wrote:
>
> No matter how often I try, I find the whole side menu thing quite 
> confusing. Until now I have had to avoid right hand side menus because I 
> simply cannot get them to work. Left hand side I have been able to get 
> working using Toolbar, roughly something like this:
>
> Toolbar toolbarForLeftMenu;
>
> if (toolbarForLeftMenu==null)
> {
> toolbarForLeftMenu = new Toolbar();
> }
> 
> toolbarForLeftMenu.setHidden(true);
> f.setToolbar(toolbarForLeftMenu);
> 
> final Container SideMenuLEFT = 
> (Container)this.createContainer(resources, "SideMenuLEFT");
>   
> toolbarForLeftMenu.addComponentToSideMenu(SideMenuLEFT);
>
> That works great. However I also need a right menu, which you cannot do 
> with the Toolbar  as far as I am aware. So I am trying to add a right menu 
> by using SideMenuBar, this actually opens up the side bar fine but I cannot 
> work out how to actually add my container to it, here is what I am doing, 
> but it always remains empty:
>
> final Container SideMenuRIGHT = (Container)this.createContainer(resources, 
> "SideMenuRIGHT");
> 
> if (smbForRightMenu==null)
> {
> smbForRightMenu = (SideMenuBar) 
> Display.getInstance().getCurrent().getMenuBar();
> smbForRightMenu.add(SideMenuRIGHT);
> smbForRightMenu.putClientProperty("SideComponent", 
> smbForRightMenu);//revalidate();
> _("added content to the right menu...");
> }
> 
> smbForRightMenu.openMenu(SideMenuBar.COMMAND_PLACEMENT_VALUE_RIGHT);
>
> So basically my question is, why doesnt my container (SideMenuRIGHT) 
> appear on the right menu when it opens up ?
>
>
>
>
>
>

-- 
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/8c347ab8-ecc6-472e-b130-9be58c429988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.