View previous topic :: View next topic |
Author |
Message |
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Fri Jun 10, 2011 10:39 pm Post subject: ExtTable dsu question [SOLVED] |
|
|
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 |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Fri Jun 10, 2011 10:53 pm Post subject: |
|
|
Are you talking about the column header or what column a cell that was clicked is in? |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Fri Jun 10, 2011 11:02 pm Post subject: |
|
|
Hi Aslan
I need to know the cell colum number where I dblclicked and not column header |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Sat Jun 11, 2011 12:41 am Post subject: |
|
|
solved, bur now I have other issue
using edit cell, on pressed [enter], dont save charter inputed on editbox but beep
Why? |
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Jun 11, 2011 1:56 am Post subject: |
|
|
Do you have the same issue with the included "extTableDemo1.dsc" example?
What OS? |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Sat Jun 11, 2011 9:15 am Post subject: |
|
|
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 |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Jun 11, 2011 2:49 pm Post subject: |
|
|
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 |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Sun Jun 12, 2011 12:45 pm Post subject: |
|
|
Aslan
work fine
thank you very much |
|
Back to top |
|
|
|
|
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
|
|