forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ExtTable dsu question [SOLVED]

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Fri Jun 10, 2011 10:39 pm    Post subject: ExtTable dsu question [SOLVED] Reply with quote

Hi to all,

It's possible using exttable dsu know the colum number where dbl clicked?

thank you


Last edited by Tdk161 on Sun Jun 12, 2011 12:45 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Fri Jun 10, 2011 10:53 pm    Post subject: Reply with quote

Are you talking about the column header or what column a cell that was clicked is in?
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Fri Jun 10, 2011 11:02 pm    Post subject: Reply with quote

Hi Aslan Smile
I need to know the cell colum number where I dblclicked and not column header
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sat Jun 11, 2011 12:41 am    Post subject: Reply with quote

solved, bur now I have other issue Confused
using edit cell, on pressed [enter], dont save charter inputed on editbox but beep
Why?
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Jun 11, 2011 1:56 am    Post subject: Reply with quote

Do you have the same issue with the included "extTableDemo1.dsc" example?

What OS?
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sat Jun 11, 2011 9:15 am    Post subject: Reply with quote

no, in the sample work fine sgrunt! this is the my code:
Code:
  %%Rit = @new(LIST)
  DIALOG CREATE,Files attributes,-1,0,371,368,ONTOP,BALLOONTIPS,CLASS MULTICOM,SMALLCAP CHILD
  DIALOG ADD,STYLE,STYLE1,Verdana,10,,FFFF80,
  DIALOG ADD,TABLE,Elenco,2,4,362,330,File[150]|Group[102]|Comment[104],,DBLCLICK
  DIALOG ADD,BUTTON,Confirm,338,237,64,24,Confirm
  DIALOG ADD,BUTTON,Abort,338,312,46,24,Abort
  DIALOG SHOW
 
  TABLE LOAD
#  TABLE EXTSTYLE,Elenco,FULLROWSELECT
#  TABLE EXTSTYLE,Elenco,GRIDLINES
  LIST Create,7
  LIST APPEND,7,%1
  REPEAT
    %%l = @Next(7)
    IF %%l
      List Add,Elenco,@Name(%%l).@Ext(%%l)@tab()Group@Tab()Comment
    END
  UNTIL @not(%%l)
  LIST CLOSE,7

:mLoop
  Table REDRAWITEMS,Elenco,@index(Elenco),@count(Elenco)
  Dialog hide,Elenco
  Dialog show,Elenco
  WAIT EVENT
  %%Eve = m@event()
  Goto %%Eve

:mElencoDBLCLICK
  %%sel = @tItem(Elenco,SELECTED)
  parse "%%item;%%Col",%%sel
IF @unequal(%%col,0)
  tItem EDITSELCELL,Elenco
End 
Goto mLoop 


:mConfirmBUTTON
 
 
  :mAbortBUTTON
  :mClose
  DIALOG Close
  WHILE @event()
  Wend
  Exit %%Rit


O.S. Windows 7 32 ultimate

what did I wronged?
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Jun 11, 2011 2:49 pm    Post subject: Reply with quote

Add this to your dialog
Code:
DIALOG ADD,BUTTON,ENTER,0,0,0,0,,,DEFAULT


and then this event
Code:
:EnterBUTTON
  #This will commit changes after calling tItem EDITSELCELL,<table>
  If @equal(%%FOCUS,LabelEditRect)
   tItem text,Elenco,%%item,%%Col,@dlgtext(LabelEditRect)
   dialog focus,Elenco
  end
  goto mLoop


You can name this BUTTON anything. Its just a hidden default button.
Use whatever event you want to add the commit code to.
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sun Jun 12, 2011 12:45 pm    Post subject: Reply with quote

Aslan Very Happy

work fine

thank you very much
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group