Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xbase++ listbox sample

Status
Not open for further replies.

sjorsp

Programmer
Jul 4, 2005
11
SE
Hi all,

I know that it's not the complete right forum but i still try.

I am trying to get a listbox (windows look) working in alaska xbase but i don't get it and the sample also doesn't seem to work.

Can anybody give me a simple sample?



Greetings, George

your travel starting point.
 
It's one of the snags with xBase++ that once you get beyond converting your Clipper apps, there is a bit of a learning curve - and the resultant code is somewhat verbose.

In the samples folder, look in basics\apps the little demo in there does what you're after.

It's not trivial moving to xBase - except for converting existing apps, I would move to VFP

Regards

Griff
Keep [Smile]ing
 
Assuming that you are using full gui, you need the oDa part, but if not, just delete the oDa stuff.,


oDa := oDlg:DrawingArea

oListBox := XbpListbox():new()
oListBox:markMode := XBPLISTBOX_MM_SINGLE
oListBox:create(oDa,, {300, 100}, {200, 150} )

aItems := US_States()
aEval(aItems,{|x| oListBox:AddItem(x) })


You might want to join the Newgroups over on Alaska's site. We will be glad to assist you more with your Xbase specific questions there.

--
Richard Hankins



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top