listbox 10X6

listbox 10X6

Postby Silvio » Tue Jun 03, 2008 6:27 pm

how i can create a listbox 6 column and only ten lines as an small timetable?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: listbox 10X6

Postby Enrico Maria Giordano » Tue Jun 03, 2008 6:31 pm

You may use a DBF with 10 records or an array with 10 items.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Browse Selection

Postby ukoenig » Tue Jun 03, 2008 6:42 pm

A sample with bmp-resources

Code: Select all  Expand view  RUN

// as a sample :
// a Color-Selection-browser

// The Array
PRIVATE aBRCOLOR2[12][2]
aBRCOLOR2[1] := { "1", "Black" }
aBRCOLOR2[2] := { "2", "White" }
aBRCOLOR2[3] := { "3", "Blue" }
aBRCOLOR2[4] := { "4", "Green" }
aBRCOLOR2[5] := { "5", "Red" }
aBRCOLOR2[6] := { "6", "Yellow" }
aBRCOLOR2[7] := { "7", "Magenta" }
aBRCOLOR2[8] := { "8", "SELECT" }
aBRCOLOR2[9] := { " 9", "Borland" }
aBRCOLOR2[10] := { "10", "Tiled" }
aBRCOLOR2[11] := { "11", "Bricks" }
aBRCOLOR2[12] := { "12", "Brush" }

oLbx2 := TXBrowse():New( oFld:aDialogs[1] )
oLbx2:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbx2:nColDividerStyle := LINESTYLE_BLACK
oLbx2:nRowDividerStyle := LINESTYLE_BLACK
oLbx2:bClrSel := {|| {RGB(173,183,4), RGB(250,247,107) }}

oLbx2:SetArray( aBRCOLOR2 )
// 2 Cols
// -------
oLbx2:aCols[ 1 ]:cHeader = Padr("No.", 3)
oLbx2:aCols[ 2 ]:cHeader = Padr("End", 19)
oLbx2:lHScroll := .F.
oLbx2:lVScroll := .F.
oLbx2:lFooter := .F.
// What to do, when row blclicked
// -------------------------------------
oLbx2:bLClicked := { | nRow, nCol | Bs_END := oLbx2:nRowSel, ;
IIF( Bs_END < 9, ;
( Bs_COLOR2 := B_COLORE(Bs_END), oB_COLOR2:Refresh() ), NIL ) }
oLbx2:aCols[ 2 ]:AddResource("Black")
oLbx2:aCols[ 2 ]:AddResource("White")
oLbx2:aCols[ 2 ]:AddResource("Blue")
oLbx2:aCols[ 2 ]:AddResource("Green")
oLbx2:aCols[ 2 ]:AddResource("Red")
oLbx2:aCols[ 2 ]:AddResource("Yellow")
oLbx2:aCols[ 2 ]:AddResource("Magenta")
oLbx2:aCols[ 2 ]:AddResource("Farbwahl")
oLbx2:aCols[ 2 ]:AddResource("Borland")
oLbx2:aCols[ 2 ]:AddResource("Tiled")
oLbx2:aCols[ 2 ]:AddResource("Bricks")
oLbx2:aCols[ 2 ]:AddResource("Color")
oLbx2:aCols[ 2 ]:bBmpData := {|| oLbx2:nArrayAt }
oLbx2:aCols[ 2 ]:bStrData := {|| oLbx2:aRow[2] }   

oLbx2:CreateFromResource( 220 )



Best regards

Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Silvio » Wed Jun 04, 2008 11:27 am

Thanks Emg and ukoenig
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Thu Jun 05, 2008 10:14 am

Sorry ,
but I must make somethig as it

Image

Can I create it with xharbour and fwh ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Enrico Maria Giordano » Thu Jun 05, 2008 10:56 am

Yes, using a browse.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 68 guests