Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5363 > unrolled thread
| Started by | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| First post | 2013-06-16 18:44 +0200 |
| Last post | 2013-06-18 07:38 +0000 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
DataBrowser single/double click on column Caption "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-06-16 18:44 +0200
Re: DataBrowser single/double click on column Caption "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-06-17 07:49 +0000
Re: DataBrowser single/double click on column Caption "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-06-17 16:01 +0200
Re: DataBrowser single/double click on column Caption "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-06-17 22:14 +0200
Re: DataBrowser single/double click on column Caption "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-06-18 07:38 +0000
| From | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| Date | 2013-06-16 18:44 +0200 |
| Subject | DataBrowser single/double click on column Caption |
| Message-ID | <kpkq1p$7kr$1@news.albasani.net> |
Hi all, is there any way to intercept a single/double click on a column caption region (like in bBrowser, just to say...)? The goal is to sort the entire browser basing on the column type clicked. I've no time to port all my app browsers to bBrowser, there are thounds of code lines to rewrite and I need to solve the problem ASAP... I'll be grateful for any help you can give me, Francesco
[toc] | [next] | [standalone]
| From | "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> |
|---|---|
| Date | 2013-06-17 07:49 +0000 |
| Message-ID | <kpmf2a$gha$1@dont-email.me> |
| In reply to | #5363 |
Hi Francesco, YES, there is a way. On this moment a single click is already intercepted for moving the column to another postion. The double click can by done this way: METHOD Dispatch(oEvent) CLASS SEditMailingBrowser LOCAL uReturn AS USUAL LOCAL nHFlag AS DWORD SELF:EventReturnValue := 0L uReturn := SUPER:Dispatch(oEvent) IF oEvent:Message=WM_COMMAND nHFlag := HiWord(oEvent:wParam) DO CASE CASE nHFlag = CN_ROFLDTTLDBLCLK // A double-click-event occured inside a column-caption. IF IsMethod(SELF:Owner,#CellCaptionDoubleClick) Send(SELF:Owner,#CellCaptionDoubleClick,SELF:GetEventColumn(oEvent)) ENDIF ENDCASE ENDIF RETURN uReturn I have a lot of possibilities done with databrowser, like coloring and moving etc... If you wish to know what I have implemented, please contact me. 'dirk at triviant dot be'. Francesco F. wrote: > Hi all, > is there any way to intercept a single/double click on a column > caption region (like in bBrowser, just to say...)? The goal is to > sort the entire browser basing on the column type clicked. I've no > time to port all my app browsers to bBrowser, there are thounds of > code lines to rewrite and I need to solve the problem ASAP... > > I'll be grateful for any help you can give me, > Francesco --
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| Date | 2013-06-17 16:01 +0200 |
| Message-ID | <kpn4sg$jt8$1@news.albasani.net> |
| In reply to | #5364 |
Thank you very much, Dirk, I'll try this evening. Anyhow, just to know the trick, where did you find "CellCaptionDoubleClick" method? I've looked around for a while without result... Thanks again, Francesco Il 17/06/2013 09:49, Dirk (Belgium) ha scritto: > Hi Francesco, > > YES, there is a way. > > On this moment a single click is already intercepted for moving the > column to another postion. > > The double click can by done this way: > > METHOD Dispatch(oEvent) CLASS SEditMailingBrowser > LOCAL uReturn AS USUAL > LOCAL nHFlag AS DWORD > > SELF:EventReturnValue := 0L > > uReturn := SUPER:Dispatch(oEvent) > > IF oEvent:Message=WM_COMMAND > nHFlag := HiWord(oEvent:wParam) > > DO CASE > CASE nHFlag = CN_ROFLDTTLDBLCLK > // A double-click-event occured inside a column-caption. > IF IsMethod(SELF:Owner,#CellCaptionDoubleClick) > > Send(SELF:Owner,#CellCaptionDoubleClick,SELF:GetEventColumn(oEvent)) > ENDIF > ENDCASE > ENDIF > > RETURN uReturn > > I have a lot of possibilities done with databrowser, like coloring and > moving etc... > > If you wish to know what I have implemented, please contact me. > 'dirk at triviant dot be'. > > > > > Francesco F. wrote: > >> Hi all, >> is there any way to intercept a single/double click on a column >> caption region (like in bBrowser, just to say...)? The goal is to >> sort the entire browser basing on the column type clicked. I've no >> time to port all my app browsers to bBrowser, there are thounds of >> code lines to rewrite and I need to solve the problem ASAP... >> >> I'll be grateful for any help you can give me, >> Francesco > > >
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| Date | 2013-06-17 22:14 +0200 |
| Message-ID | <kpnqn9$56e$1@news.albasani.net> |
| In reply to | #5364 |
OK, OK, said nothing about CellCaptionDoubleClick.... found the trick. Buta I've to use CN_BEGFLDTTLEDIT instead of CN_ROFLDTTLDBLCLK, not even considered from API. Now all is working well! Thank you, you focused me in the right direction. Francesco Il 17/06/2013 09:49, Dirk (Belgium) ha scritto: > Hi Francesco, > > YES, there is a way. > > On this moment a single click is already intercepted for moving the > column to another postion. > > The double click can by done this way: > > METHOD Dispatch(oEvent) CLASS SEditMailingBrowser > LOCAL uReturn AS USUAL > LOCAL nHFlag AS DWORD > > SELF:EventReturnValue := 0L > > uReturn := SUPER:Dispatch(oEvent) > > IF oEvent:Message=WM_COMMAND > nHFlag := HiWord(oEvent:wParam) > > DO CASE > CASE nHFlag = CN_ROFLDTTLDBLCLK > // A double-click-event occured inside a column-caption. > IF IsMethod(SELF:Owner,#CellCaptionDoubleClick) > > Send(SELF:Owner,#CellCaptionDoubleClick,SELF:GetEventColumn(oEvent)) > ENDIF > ENDCASE > ENDIF > > RETURN uReturn > > I have a lot of possibilities done with databrowser, like coloring and > moving etc... > > If you wish to know what I have implemented, please contact me. > 'dirk at triviant dot be'. > > > > > Francesco F. wrote: > >> Hi all, >> is there any way to intercept a single/double click on a column >> caption region (like in bBrowser, just to say...)? The goal is to >> sort the entire browser basing on the column type clicked. I've no >> time to port all my app browsers to bBrowser, there are thounds of >> code lines to rewrite and I need to solve the problem ASAP... >> >> I'll be grateful for any help you can give me, >> Francesco > > >
[toc] | [prev] | [next] | [standalone]
| From | "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> |
|---|---|
| Date | 2013-06-18 07:38 +0000 |
| Message-ID | <kpp2qh$i8d$1@dont-email.me> |
| In reply to | #5367 |
Francesco, You're welcome.... Dirk Francesco F. wrote: > OK, OK, said nothing about CellCaptionDoubleClick.... found the trick. > Buta I've to use CN_BEGFLDTTLEDIT instead of CN_ROFLDTTLDBLCLK, not > even considered from API. Now all is working well! > > Thank you, you focused me in the right direction. > > Francesco > > > Il 17/06/2013 09:49, Dirk (Belgium) ha scritto: > > Hi Francesco, > > > > YES, there is a way. > > > > On this moment a single click is already intercepted for moving the > > column to another postion. > > > > The double click can by done this way: > > > > METHOD Dispatch(oEvent) CLASS SEditMailingBrowser > > LOCAL uReturn AS USUAL > > LOCAL nHFlag AS DWORD > > > > SELF:EventReturnValue := 0L > > > > uReturn := SUPER:Dispatch(oEvent) > > > > IF oEvent:Message=WM_COMMAND > > nHFlag := HiWord(oEvent:wParam) > > > > DO CASE > > CASE nHFlag = CN_ROFLDTTLDBLCLK > > // A double-click-event occured inside a column-caption. > > IF IsMethod(SELF:Owner,#CellCaptionDoubleClick) > > > > Send(SELF:Owner,#CellCaptionDoubleClick,SELF:GetEventColumn(oEvent)) > > ENDIF > > ENDCASE > > ENDIF > > > > RETURN uReturn > > > > I have a lot of possibilities done with databrowser, like coloring > > and moving etc... > > > > If you wish to know what I have implemented, please contact me. > > 'dirk at triviant dot be'. > > > > > > > > > > Francesco F. wrote: > > > > > Hi all, > > > is there any way to intercept a single/double click on a column > > > caption region (like in bBrowser, just to say...)? The goal is to > > > sort the entire browser basing on the column type clicked. I've > > > no time to port all my app browsers to bBrowser, there are > > > thounds of code lines to rewrite and I need to solve the problem > > > ASAP... > > > > > > I'll be grateful for any help you can give me, > > > Francesco > > > > > > --
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web