Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Oct 16, 2017 11:11 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ListBox Editable???
PostPosted: Wed May 15, 2013 8:25 am 
Offline

Joined: Fri Jun 05, 2009 4:54 pm
Posts: 484
Location: London, England
Hi,
I have a really strange problem:

I started a brand new project; dragged a ListBox onto the empty window; and added the following code into the CellClick event:

me.EditCell(row, column)


When I run the app, the listbox is still not editable??????
Am I misssing something?

Thanks.

_________________
RealStudio Professional Edition 2012 r2
Developing on OS X 10.8 (Mountain Lion)
Deploying on Windows XP / Vista / 7 / 8


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:34 am 
Offline

Joined: Wed May 15, 2013 4:29 am
Posts: 6
need to add

me.celltype(row,column)=listbox.typeEditable

before that line - then it should work


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:37 am 
Offline

Joined: Fri Jun 05, 2009 4:54 pm
Posts: 484
Location: London, England
Tried that - still not working?????

The project is totally new and the window is completely empty apart from the listbox.
I have simply dragged a Listbox onto the empty window and added the code below to the CellCLick event:

me.celltype(row,column)=listbox.typeEditable
Me.EditCell(row,column)


No cells are editable - I am totally perplexed?????

_________________
RealStudio Professional Edition 2012 r2
Developing on OS X 10.8 (Mountain Lion)
Deploying on Windows XP / Vista / 7 / 8


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:40 am 
Offline

Joined: Fri Jun 05, 2009 4:54 pm
Posts: 484
Location: London, England
Could someone create an empty project with just a simple 2 column editable listbox for me to try and see if it works on my machine???

Thanks.

_________________
RealStudio Professional Edition 2012 r2
Developing on OS X 10.8 (Mountain Lion)
Deploying on Windows XP / Vista / 7 / 8


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:43 am 
Offline

Joined: Wed May 15, 2013 4:29 am
Posts: 6
need to populate the listbox with something

try
dim I as integer
for I =0 to 10
me.addrow str(I) // or me.addrow "" - for an empty row
next I

in the open event

then left/right clicking on cell should work


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:45 am 
Offline

Joined: Fri Jun 05, 2009 4:54 pm
Posts: 484
Location: London, England
That worked, but how are users supposed to add data if an empty listbox is not editable??
I cant have the listbox already containing data because it needs to be empty?

Thanks.

_________________
RealStudio Professional Edition 2012 r2
Developing on OS X 10.8 (Mountain Lion)
Deploying on Windows XP / Vista / 7 / 8


Top
 Profile  
Reply with quote  
 Post subject: Re: ListBox Editable???
PostPosted: Wed May 15, 2013 8:49 am 
Offline

Joined: Wed May 15, 2013 4:29 am
Posts: 6
just use

me.addrow ""

and all the necessary cells will have null or "" values so me.cell(0,0) will be ""

the rows must be added before they can become editable


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group