Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #1494 > unrolled thread

ContextMenu bbrowser - which cell?

Started byMartin <spam@spam.spam>
First post2011-06-22 14:27 +0100
Last post2011-06-23 17:08 +0100
Articles 10 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  ContextMenu  bbrowser - which cell? Martin <spam@spam.spam> - 2011-06-22 14:27 +0100
    Re: ContextMenu  bbrowser - which cell? "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-23 00:28 +1000
      Re: ContextMenu  bbrowser - which cell? Martin <spam@spam.spam> - 2011-06-22 16:01 +0100
        Re: ContextMenu  bbrowser - which cell? "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-23 02:35 +1000
        Re: ContextMenu  bbrowser - which cell? Guy Deprez <dpzguy@REMOVETHISskynet.be> - 2011-06-22 22:26 +0200
    Re: ContextMenu  bbrowser - which cell? "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-06-22 16:51 +0200
      Re: ContextMenu  bbrowser - which cell? Martin <spam@spam.spam> - 2011-06-22 16:18 +0100
        Re: ContextMenu  bbrowser - which cell? "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-22 22:13 +0000
        Re: ContextMenu  bbrowser - which cell? "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-06-23 16:42 +0200
          Re: ContextMenu  bbrowser - which cell? Martin <spam@spam.spam> - 2011-06-23 17:08 +0100

#1494 — ContextMenu bbrowser - which cell?

FromMartin <spam@spam.spam>
Date2011-06-22 14:27 +0100
SubjectContextMenu bbrowser - which cell?
Message-ID<R4mMp.7763$Sr.4995@newsfe12.ams2>
Hello

I want to perform a slightly different task on a context menu for each 
cell, in the method called by the context menu I would like to know 
which cell I need to work with.

Are there any built in routines to bbrowser which I can use to do this 
please?

Thanks

Martin

[toc] | [next] | [standalone]


#1495

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-23 00:28 +1000
Message-ID<JYmMp.7193$CS3.4167@viwinnwfe01.internal.bigpond.com>
In reply to#1494
Martin

> Are there any built in routines to bbrowser which I can use to do this 
> please?

// Check the syntax<g>
oBB:GetColumnNo and oBB:Server:RecNo - convergence of the 2 will give you 
the data.

If your tracking a bBrowser event then oCell is usually in the oEvent 
parameter.

What do you mean with 'to perform a slightly different task on a context 
menu'??
    - a different menu for each column??
    - a different action for each column??

Which record would you be interested in
    - the current record??
    - the record under the right mousebutton click??

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1497

FromMartin <spam@spam.spam>
Date2011-06-22 16:01 +0100
Message-ID<itnMp.14186$w86.14108@newsfe22.ams2>
In reply to#1495
I want to reset values to their original value, so need to know which 
cell I am looking at

Thanks

Martin

On 22/06/2011 15:28, Stephen Quinn wrote:
> Martin
>
>> Are there any built in routines to bbrowser which I can use to do this
>> please?
>
> // Check the syntax<g>
> oBB:GetColumnNo and oBB:Server:RecNo - convergence of the 2 will give you
> the data.
>
> If your tracking a bBrowser event then oCell is usually in the oEvent
> parameter.
>
> What do you mean with 'to perform a slightly different task on a context
> menu'??
>      - a different menu for each column??
>      - a different action for each column??
>
> Which record would you be interested in
>      - the current record??
>      - the record under the right mousebutton click??
>
> CYA
> Steve
>
>

[toc] | [prev] | [next] | [standalone]


#1501

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-23 02:35 +1000
Message-ID<ARoMp.7161$aH5.5277@viwinnwfe02.internal.bigpond.com>
In reply to#1497
Martin

>I want to reset values to their original value, so need to know which cell 
>I am looking at

The cell with focus would be the one, at least I'd look at that one first.

Where are you storing the original data??
Why only a cell/field at a time, why not the whole record??

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1505

FromGuy Deprez <dpzguy@REMOVETHISskynet.be>
Date2011-06-22 22:26 +0200
Message-ID<6li407lf2c2v3v1nbe1fvrd9110tuq5rdo@4ax.com>
In reply to#1497
Martin,
Some idea's for you..
1/Maybe can you do something with this access
ACCESS CellFromCursor CLASS bBrowserExtended
	LOCAL oCell		AS bCell	
	LOCAL oPoint		AS Point	
	LOCAL sPoint		IS _winPoint	
	// determine the position of the mouse			
	
	GetCursorPos(@sPoint)			
	ScreenToClient(SELF:Handle(), @sPoint)			
	oPoint := Point{sPoint.X, sPoint.Y}	
	oCell := SELF:GetCellToPoint(oPoint)		
	RETURN oCell

you could also look at:
2/bDataColumn:SetContextMenu()

3/If the cells are editable, Maybe do you have to look at
bBrowser:EDIT,EDITCREATE,EDITCONTROL

You can provide the symclass, the class name of the control that will
be created....in EDITCREATE
It's maybe possible for you to subclass a control and create the
contextmenu in the init method ? it will be the contextmenu of the
control and not of the browser or column...

Guy

[toc] | [prev] | [next] | [standalone]


#1496

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-06-22 16:51 +0200
Message-ID<96edr8Fn7uU1@mid.individual.net>
In reply to#1494
Hi Martin,

Send me your email adress, then you will get a sample how to figure out the 
clicked cell.

regards
Urs Eggmann
VOUG-Bodensee

"Martin" <spam@spam.spam> schrieb im Newsbeitrag 
news:R4mMp.7763$Sr.4995@newsfe12.ams2...
> Hello
>
> I want to perform a slightly different task on a context menu for each 
> cell, in the method called by the context menu I would like to know which 
> cell I need to work with.
>
> Are there any built in routines to bbrowser which I can use to do this 
> please?
>
> Thanks
>
> Martin 

[toc] | [prev] | [next] | [standalone]


#1499

FromMartin <spam@spam.spam>
Date2011-06-22 16:18 +0100
Message-ID<pJnMp.9069$fQ4.137@newsfe16.ams2>
In reply to#1496
Editable browser

Now a silly menu about IME comes up and my own context menu does not work.

This is driving me mad!


On 22/06/2011 15:51, Urs Eggmann wrote:
> Hi Martin,
>
> Send me your email adress, then you will get a sample how to figure out
> the clicked cell.
>
> regards
> Urs Eggmann
> VOUG-Bodensee
>
> "Martin" <spam@spam.spam> schrieb im Newsbeitrag
> news:R4mMp.7763$Sr.4995@newsfe12.ams2...
>> Hello
>>
>> I want to perform a slightly different task on a context menu for each
>> cell, in the method called by the context menu I would like to know
>> which cell I need to work with.
>>
>> Are there any built in routines to bbrowser which I can use to do this
>> please?
>>
>> Thanks
>>
>> Martin
>

[toc] | [prev] | [next] | [standalone]


#1506

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-06-22 22:13 +0000
Message-ID<4e026902$0$57110$c30e37c6@exi-reader.telstra.net>
In reply to#1499
How about showing us the code you are implementing?

But in essence, I don't think it is practical to go changing the browser 
context menu for every different cell value you are on. All you need to 
do is trap the right-click operation and launch a runtime generated 
context menu at that point.

This will NOT be the same putting a context menu into the edit control 
that arises and not what you've asked but it is what I suspect you 
actually meant.

Geoff


"Martin" <spam@spam.spam> wrote in message 
news:pJnMp.9069$fQ4.137@newsfe16.ams2:

> Editable browser
>
> Now a silly menu about IME comes up and my own context menu does not work.
>
> This is driving me mad!
>
>
> On 22/06/2011 15:51, Urs Eggmann wrote:
>
> > Hi Martin,
> >
> > Send me your email adress, then you will get a sample how to figure out
> > the clicked cell.
> >
> > regards
> > Urs Eggmann
> > VOUG-Bodensee
> >
> > "Martin" <spam@spam.spam> schrieb im Newsbeitrag
> > news:R4mMp.7763$Sr.4995@newsfe12.ams2...
>
> >> Hello
> >>
> >> I want to perform a slightly different task on a context menu for each
> >> cell, in the method called by the context menu I would like to know
> >> which cell I need to work with.
> >>
> >> Are there any built in routines to bbrowser which I can use to do this
> >> please?
> >>
> >> Thanks
> >>
> >> Martin
>
> >

[toc] | [prev] | [next] | [standalone]


#1519

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-06-23 16:42 +0200
Message-ID<96h1mvFppdU1@mid.individual.net>
In reply to#1499
Hi Martin,
My provider does not allow binaries, so sent you a sample directly.

I have subclassed bBrowser and added a method ContextMenuShow(oEvent) to
mybBrowser. Here I can get from oEvent the coordinates of the mouse cursor
and can call any other methods or functions.
Look at the source code of bBrowser to see what else you can find in oEvent.

regards
Urs


"Martin" <spam@spam.spam> schrieb im Newsbeitrag 
news:pJnMp.9069$fQ4.137@newsfe16.ams2...
> Editable browser
>
> Now a silly menu about IME comes up and my own context menu does not work.
>
> This is driving me mad!
>
>
> On 22/06/2011 15:51, Urs Eggmann wrote:
>> Hi Martin,
>>
>> Send me your email adress, then you will get a sample how to figure out
>> the clicked cell.
>>
>> regards
>> Urs Eggmann
>> VOUG-Bodensee
>>
>> "Martin" <spam@spam.spam> schrieb im Newsbeitrag
>> news:R4mMp.7763$Sr.4995@newsfe12.ams2...
>>> Hello
>>>
>>> I want to perform a slightly different task on a context menu for each
>>> cell, in the method called by the context menu I would like to know
>>> which cell I need to work with.
>>>
>>> Are there any built in routines to bbrowser which I can use to do this
>>> please?
>>>
>>> Thanks
>>>
>>> Martin
>>
> 

[toc] | [prev] | [next] | [standalone]


#1522

FromMartin <spam@spam.spam>
Date2011-06-23 17:08 +0100
Message-ID<QxJMp.8308$29.1184@newsfe08.ams2>
In reply to#1519
Thanks

I will have a look at it tomorrow

Martin

On 23/06/2011 15:42, Urs Eggmann wrote:
> Hi Martin,
> My provider does not allow binaries, so sent you a sample directly.
>
> I have subclassed bBrowser and added a method ContextMenuShow(oEvent) to
> mybBrowser. Here I can get from oEvent the coordinates of the mouse cursor
> and can call any other methods or functions.
> Look at the source code of bBrowser to see what else you can find in
> oEvent.
>
> regards
> Urs
>
>
> "Martin" <spam@spam.spam> schrieb im Newsbeitrag
> news:pJnMp.9069$fQ4.137@newsfe16.ams2...
>> Editable browser
>>
>> Now a silly menu about IME comes up and my own context menu does not
>> work.
>>
>> This is driving me mad!
>>
>>
>> On 22/06/2011 15:51, Urs Eggmann wrote:
>>> Hi Martin,
>>>
>>> Send me your email adress, then you will get a sample how to figure out
>>> the clicked cell.
>>>
>>> regards
>>> Urs Eggmann
>>> VOUG-Bodensee
>>>
>>> "Martin" <spam@spam.spam> schrieb im Newsbeitrag
>>> news:R4mMp.7763$Sr.4995@newsfe12.ams2...
>>>> Hello
>>>>
>>>> I want to perform a slightly different task on a context menu for each
>>>> cell, in the method called by the context menu I would like to know
>>>> which cell I need to work with.
>>>>
>>>> Are there any built in routines to bbrowser which I can use to do this
>>>> please?
>>>>
>>>> Thanks
>>>>
>>>> Martin
>>>
>>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web