🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by mark Wed, 22 Mar 2006 07:21
File menu
#4039
Author: mark
Date: Wed, 22 Mar 2006 07:21
4 lines
867 bytes
Can anyone help me how to align file menu in my app to the right, not to the
left

Thanks in advance.
Re: File menu
#4040
Author: Remy Lebeau (TeamB)
Date: Wed, 22 Mar 2006 09:01
11 lines
1059 bytes
"mark" <r@net.org> wrote in message
news:4420fb13$1@newsgroups.borland.com...

> Can anyone help me how to align file menu in my app
> to the right, not to the left

Please be more specific.  What exactly are you trying to align?


Gambit
Re: File menu
#4042
Author: mark
Date: Wed, 22 Mar 2006 14:53
22 lines
1445 bytes
File Options Help

I have TMenu on my form like above, and all I want to do is to align that on
the right side of my form, not on the left side. Don't know how to say it
more specific.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:44211431@newsgroups.borland.com...
>
> "mark" <r@net.org> wrote in message
> news:4420fb13$1@newsgroups.borland.com...
>
> > Can anyone help me how to align file menu in my app
> > to the right, not to the left
>
> Please be more specific.  What exactly are you trying to align?
>
>
> Gambit
>
>
Re: File menu
#4043
Author: Remy Lebeau (TeamB)
Date: Wed, 22 Mar 2006 18:35
26 lines
1703 bytes
"mark" <r@net.org> wrote in message news:442164e7@newsgroups.borland.com...

> I have TMenu on my form like above, and all I want to do is to align that
on
> the right side of my form, not on the left side. Don't know how to say it
> more specific.

You need to use the Get/SetMenuItemInfo() to enable the MFT_RIGHTJUSTIFY
flag for your item(s).  For example:

    MENUITEMINFO ItemInfo = {sizeof(MENUITEMINFO), 0};
    char buffer[64] = {0};

    ItemInfo.fMask = MIIM_TYPE;
    ItemInfo.dwTypeData = buffer;
    ItemInfo.cch = sizeof(buffer);

    GetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);
    ItemInfo.fType |= MFT_RIGHTJUSTIFY;

    SetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);



Gambit
Re: File menu
#4046
Author: mark
Date: Thu, 23 Mar 2006 10:38
37 lines
1938 bytes
thanks Remy I'll try it



"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:44219938$1@newsgroups.borland.com...
>
> "mark" <r@net.org> wrote in message
news:442164e7@newsgroups.borland.com...
>
> > I have TMenu on my form like above, and all I want to do is to align
that
> on
> > the right side of my form, not on the left side. Don't know how to say
it
> > more specific.
>
> You need to use the Get/SetMenuItemInfo() to enable the MFT_RIGHTJUSTIFY
> flag for your item(s).  For example:
>
>     MENUITEMINFO ItemInfo = {sizeof(MENUITEMINFO), 0};
>     char buffer[64] = {0};
>
>     ItemInfo.fMask = MIIM_TYPE;
>     ItemInfo.dwTypeData = buffer;
>     ItemInfo.cch = sizeof(buffer);
>
>     GetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);
>     ItemInfo.fType |= MFT_RIGHTJUSTIFY;
>
>     SetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);
>
>
>
> Gambit
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads