Two column popup menu

This forum is for eXpress++ general support.
Post Reply
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Two column popup menu

#1 Post by Cliff Wiernik »

im1.jpg
im1.jpg (54.46 KiB) Viewed 9972 times
This popup menu is getting long. Is their a way to make it two columns.

User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

Re: Two column popup menu

#2 Post by RDalzell »

Cliff,

How about a DCSUBMENU of that PARENT menu ?

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

Re: Two column popup menu

#3 Post 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 9963 times
greetings by OHR
Jimmy

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Two column popup menu

#4 Post by Cliff Wiernik »

Would be interested in seeing it when you have it ready.

Clif.

User avatar
Auge_Ohr
Posts: 1414
Joined: Wed Feb 24, 2010 3:44 pm

Re: Two column popup menu

#5 Post 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 9931 times
Attachments
testdir.zip
native ListView Demo using "Zebra" Style CustumDraw in 1st Window
while 2nd ListView use OwnerDraw with Backgound Image
(296.33 KiB) Downloaded 734 times
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Two column popup menu

#6 Post by rdonnay »

Cliff -

Use the COLUMNBREAK clause of the DCMENUITEM command.

Roger
The eXpress train is coming - and it has more cars.

Post Reply