Page 1 of 1

Two column popup menu

Posted: Fri Sep 02, 2011 1:31 pm
by Cliff Wiernik
im1.jpg
im1.jpg (54.46 KiB) Viewed 10326 times
This popup menu is getting long. Is their a way to make it two columns.

Re: Two column popup menu

Posted: Fri Sep 02, 2011 8:07 pm
by RDalzell
Cliff,

How about a DCSUBMENU of that PARENT menu ?

Re: Two column popup menu

Posted: Fri Sep 02, 2011 11:38 pm
by Auge_Ohr
Cliff Wiernik wrote:This popup menu is getting long. Is their a way to make it two columns.
i don´t think Class FROM XbpMenu() can do it.
event if you grow up Caption to hold 2 or more Items it is 1 Columne,
so Shortcut will react on 1st only.

you can use a SubMenu, activate on 1st Item, to show it "beside" your Pop-up ...

XbpMenu() or XbpListBox() have 1 Columne only, what you need is a ListView.

i´m writing a Xbase++ "Wrapper" Class for a "native" ListView were you can
use o:SetView(LVS_SMALLICON ) or o:SetView(LVS_LIST) to get a horizontal
Scrollbar and Shortcut like in Explorer.

... and you can add a Image as "Watermark" in Background of a ListView
ListView2.JPG
ListView2.JPG (84.79 KiB) Viewed 10317 times

Re: Two column popup menu

Posted: Sat Sep 03, 2011 10:35 am
by Cliff Wiernik
Would be interested in seeing it when you have it ready.

Clif.

Re: Two column popup menu

Posted: Sun Sep 04, 2011 11:47 pm
by Auge_Ohr
Cliff Wiernik wrote:Would be interested in seeing it when you have it ready.
if you like more about "native" Controls for Xbase++ using ot4xb goto Pablo´s Newsgroup or Website http://news.xbwin.com/newsgroups.php?group=ot4xb.public

based on ListView found in this Newsgroup
playing with the listview control
ot4xb.public
30. Mai 2011
Pablo Botella
where i found Source from "native" Listview Control for Xbase++
i try to Ownerdraw ListView using LVS_OWNERDRAWFIXED

it work now with Sample*** but i still have Problem with my Wrapper
to implement Xbase++ Syntax like o:measureItem or o:drawItem

it work well as Methode "inside" my Wrapper Class but when i transfer Code
into Function "outside" i still have a repaint Problem ... can´t see item / icons ...

so it is still some work do do to make it "ready" to use Xbase++ Syntax.

***working Sample using Pablo´s Source "Zebra" Style
Listview_Ownerdraw_Step2.JPG
Listview_Ownerdraw_Step2.JPG (185.12 KiB) Viewed 10285 times

Re: Two column popup menu

Posted: Mon Sep 05, 2011 3:41 pm
by rdonnay
Cliff -

Use the COLUMNBREAK clause of the DCMENUITEM command.

Roger