Overriding the keyboard shortcut where "page up/down" cause image to zoom in/out

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Overriding the keyboard shortcut where "page up/down" cause image to zoom in/out

Rohrschneider, Monica
I just downloaded the newest version of ImageJ, in order to use the new "Overlay" feature.  I had previously been using a version of ImageJ from a couple years ago.  In the new version, the "page up" and "page down" keys on my laptop (basically the up and down arrow keys) cause the image to zoom in or out.  Is there a way to override this keyboard shortcut?

I usually view my data using the 4D Data Browser from LOCI (part of the "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs as a virtual stack, and allows me to use the left/right arrow keys to flip forward and backward through time in the stack, and the up/down arrow keys ("page up" and "page down") to move up and down through the z-slices of the stack.  Right now, the up/down keys are simultaneously flipping up/down through the z-slices, and zooming the image in/out.  I would like to override the zooming, so that I can just use the arrow keys to maneuver through the images of the stack.  Thanks!  --Monica.

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard shortcut where "page up/down" cause image to zoom in/out

Rasband, Wayne (NIH/NIMH) [E]
On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:

> I just downloaded the newest version of ImageJ, in order to use the new "Overlay" feature.  I had previously been using a version of ImageJ from a couple years ago.  In the new version, the "page up" and "page down" keys on my laptop (basically the up and down arrow keys) cause the image to zoom in or out.  Is there a way to override this keyboard shortcut?
>
> I usually view my data using the 4D Data Browser from LOCI (part of the "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs as a virtual stack, and allows me to use the left/right arrow keys to flip forward and backward through time in the stack, and the up/down arrow keys ("page up" and "page down") to move up and down through the z-slices of the stack.  Right now, the up/down keys are simultaneously flipping up/down through the z-slices, and zooming the image in/out.  I would like to override the zooming, so that I can just use the arrow keys to maneuver through the images of the stack.  Thanks!  --Monica.

The problem is fixed in the 1.44d daily build. ImageJ now ignores the up and down arrow keys when the LOCI Data Browse is running and there is no selection.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard shortcut where "page up/down" cause image to zoom in/out

Rohrschneider, Monica
Thanks, that's good to know.  Do you know when the 1.44d daily build will become available?  I just checked, and I have (what I thought was) the most recent update, and that's the 1.44c daily build.

Unfortunately, I'm not going to be able to use the new "Overlay" feature after all, though, as it draws the same image on all .tifs in the stack, and I want to put different labels on different images within the stack.  --Monica.


On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <[hidden email]> wrote:

On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:

> I just downloaded the newest version of ImageJ, in order to use the new "Overlay" feature.  I had previously been using a version of ImageJ from a couple years ago.  In the new version, the "page up" and "page down" keys on my laptop (basically the up and down arrow keys) cause the image to zoom in or out.  Is there a way to override this keyboard shortcut?
>
> I usually view my data using the 4D Data Browser from LOCI (part of the "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs as a virtual stack, and allows me to use the left/right arrow keys to flip forward and backward through time in the stack, and the up/down arrow keys ("page up" and "page down") to move up and down through the z-slices of the stack.  Right now, the up/down keys are simultaneously flipping up/down through the z-slices, and zooming the image in/out.  I would like to override the zooming, so that I can just use the arrow keys to maneuver through the images of the stack.  Thanks!  --Monica.

The problem is fixed in the 1.44d daily build. ImageJ now ignores the up and down arrow keys when the LOCI Data Browse is running and there is no selection.

-wayne


------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
Reply | Threaded
Open this post in threaded view
|

Overriding the keyboard presettings - sorry, had wrong topic before

Angelika Erhardt
Hello,  Wayne Rasband, hello everybody of the ImageJ Interest Group,

I am using ImageJ to support my lecture and lab of Digital Image Processing i am teaching in my Bachelors' and Masters' courses. In the lab, the students (among other projects) are supposed to write a program to erode and dilate a binary image.
In part of this project, their program is supposed to erode, whenever the key with letter "a" is pressed, and to dilate whenever the letter "b" is pressed. Now some students have the problem, that the letter "b" is preset to some ImageJ function, so a window pops up that has nothing to do with their program. I believe that this concernes only users of Windows XP (including myself), but users with Windows Vista, do not seem to have the problem, some users with Windows 7 have the problem, others not, and Linux users (we had only one) do not seem to have it.

Question: How can we disactivate the pre-setting of the keys in ImageJ?
Any good idea is welcome
Thank you very much in advance!

Angelika Erhardt



-----Ursprüngliche Nachricht-----
Von: Monica Rohrschneider <[hidden email]>
Gesendet: 12.07.2010 18:15:29
An: ImageJ Interest Group ,[hidden email]
Betreff: Re: Overriding the keyboard shortcut where "page up/down" cause image to zoom in/out

>Thanks, that's good to know.  Do you know when the 1.44d daily build will become available?  I just checked, and I have (what I thought was) the most recent update, and that's the 1.44c daily build.
>
>Unfortunately, I'm not going to be able to use the new "Overlay" feature after all, though, as it draws the same image on all .tifs in the stack, and I want to put different labels on different images within the stack.  --Monica.
>
>
>On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <[hidden email]> wrote:
>
>On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:
>
>> I just downloaded the newest version of ImageJ, in order to use the new "Overlay" feature.  I had previously been using a version of ImageJ from a couple years ago.  In the new version, the "page up" and "page down" keys on my laptop (basically the up and down arrow keys) cause the image to zoom in or out.  Is there a way to override this keyboard shortcut?
>>
>> I usually view my data using the 4D Data Browser from LOCI (part of the "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs as a virtual stack, and allows me to use the left/right arrow keys to flip forward and backward through time in the stack, and the up/down arrow keys ("page up" and "page down") to move up and down through the z-slices of the stack.  Right now, the up/down keys are simultaneously flipping up/down through the z-slices, and zooming the image in/out.  I would like to override the zooming, so that I can just use the arrow keys to maneuver through the images of the stack.  Thanks!  --Monica.
>
>The problem is fixed in the 1.44d daily build. ImageJ now ignores the up and down arrow keys when the LOCI Data Browse is running and there is no selection.
>
>-wayne
>
>
>------------------------------------------------------------
>This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
>=================================
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Jerome Mutterer-3
Angelika,
you can set the 'Require control key for shortcuts' option to true, so
built-in shortcuts will require pressing e.g. 'CTRL-b' instead of just 'b'.
On the other hand, macros declaring an existing shortcut should override it,
so the students having built-in functions firing instead of their macros
probably forgot installing their macros (CTRL-i or Editor>Macros>Install
Macros)
Jerome.

------------------------------------------------------------------------
Jérôme Mutterer,
Institut de Biologie Moléculaire des Plantes du CNRS
12, rue Zimmer, 67000 Strasbourg.

On Tue, Jul 13, 2010 at 9:35 AM, A. Erhardt <[hidden email]> wrote:

> Hello,  Wayne Rasband, hello everybody of the ImageJ Interest Group,
>
> I am using ImageJ to support my lecture and lab of Digital Image Processing
> i am teaching in my Bachelors' and Masters' courses. In the lab, the
> students (among other projects) are supposed to write a program to erode and
> dilate a binary image.
> In part of this project, their program is supposed to erode, whenever the
> key with letter "a" is pressed, and to dilate whenever the letter "b" is
> pressed. Now some students have the problem, that the letter "b" is preset
> to some ImageJ function, so a window pops up that has nothing to do with
> their program. I believe that this concernes only users of Windows XP
> (including myself), but users with Windows Vista, do not seem to have the
> problem, some users with Windows 7 have the problem, others not, and Linux
> users (we had only one) do not seem to have it.
>
> Question: How can we disactivate the pre-setting of the keys in ImageJ?
> Any good idea is welcome
> Thank you very much in advance!
>
> Angelika Erhardt
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Monica Rohrschneider <[hidden email]>
> Gesendet: 12.07.2010 18:15:29
> An: ImageJ Interest Group ,[hidden email]
> Betreff: Re: Overriding the keyboard shortcut where "page up/down" cause
> image to zoom in/out
>
> >Thanks, that's good to know.  Do you know when the 1.44d daily build will
> become available?  I just checked, and I have (what I thought was) the most
> recent update, and that's the 1.44c daily build.
> >
> >Unfortunately, I'm not going to be able to use the new "Overlay" feature
> after all, though, as it draws the same image on all .tifs in the stack, and
> I want to put different labels on different images within the stack.
>  --Monica.
> >
> >
> >On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <
> [hidden email]> wrote:
> >
> >On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:
> >
> >> I just downloaded the newest version of ImageJ, in order to use the new
> "Overlay" feature.  I had previously been using a version of ImageJ from a
> couple years ago.  In the new version, the "page up" and "page down" keys on
> my laptop (basically the up and down arrow keys) cause the image to zoom in
> or out.  Is there a way to override this keyboard shortcut?
> >>
> >> I usually view my data using the 4D Data Browser from LOCI (part of the
> "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs
> as a virtual stack, and allows me to use the left/right arrow keys to flip
> forward and backward through time in the stack, and the up/down arrow keys
> ("page up" and "page down") to move up and down through the z-slices of the
> stack.  Right now, the up/down keys are simultaneously flipping up/down
> through the z-slices, and zooming the image in/out.  I would like to
> override the zooming, so that I can just use the arrow keys to maneuver
> through the images of the stack.  Thanks!  --Monica.
> >
> >The problem is fixed in the 1.44d daily build. ImageJ now ignores the up
> and down arrow keys when the LOCI Data Browse is running and there is no
> selection.
> >
> >-wayne
> >
> >
> >------------------------------------------------------------
> >This email message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain information that is proprietary,
> confidential, and exempt from disclosure under applicable law. Any
> unauthorized review, use, disclosure, or distribution is prohibited. If you
> have received this email in error please notify the sender by return email
> and delete the original message. Please note, the recipient should check
> this email and any attachments for the presence of viruses. The organization
> accepts no liability for any damage caused by any virus transmitted by this
> email.
> >=================================
>
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Angelika Erhardt
Hello, Jerome,

'Require control key for shortcuts'
that solves the problem (I just tried), thanks!!

I forgot to say: the students are writing plugins, not macros, so they are required to program in Java.
Is there any statement they can build in in the beginning of their code to set that option
'Require control key for shortcuts'
from within their program to be safe from surprises in the future?

Thanks for your answer.
Angelika





-----Ursprüngliche Nachricht-----
Von: Jerome Mutterer <[hidden email]>
Gesendet: 13.07.2010 10:55:27
An: ImageJ Interest Group <[hidden email]>,[hidden email]
Betreff: Re: Overriding the keyboard presettings - sorry, had wrong topic before

>Angelika,
>you can set the 'Require control key for shortcuts' option to true, so
>built-in shortcuts will require pressing e.g. 'CTRL-b' instead of just 'b'.
>On the other hand, macros declaring an existing shortcut should override it,
>so the students having built-in functions firing instead of their macros
>probably forgot installing their macros (CTRL-i or Editor>Macros>Install
>Macros)
>Jerome.
>
>------------------------------------------------------------------------
>Jérôme Mutterer,
>Institut de Biologie Moléculaire des Plantes du CNRS
>12, rue Zimmer, 67000 Strasbourg.
>
>On Tue, Jul 13, 2010 at 9:35 AM, A. Erhardt <[hidden email]> wrote:
>
>> Hello,  Wayne Rasband, hello everybody of the ImageJ Interest Group,
>>
>> I am using ImageJ to support my lecture and lab of Digital Image Processing
>> i am teaching in my Bachelors' and Masters' courses. In the lab, the
>> students (among other projects) are supposed to write a program to erode and
>> dilate a binary image.
>> In part of this project, their program is supposed to erode, whenever the
>> key with letter "a" is pressed, and to dilate whenever the letter "b" is
>> pressed. Now some students have the problem, that the letter "b" is preset
>> to some ImageJ function, so a window pops up that has nothing to do with
>> their program. I believe that this concernes only users of Windows XP
>> (including myself), but users with Windows Vista, do not seem to have the
>> problem, some users with Windows 7 have the problem, others not, and Linux
>> users (we had only one) do not seem to have it.
>>
>> Question: How can we disactivate the pre-setting of the keys in ImageJ?
>> Any good idea is welcome
>> Thank you very much in advance!
>>
>> Angelika Erhardt
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Monica Rohrschneider <[hidden email]>
>> Gesendet: 12.07.2010 18:15:29
>> An: ImageJ Interest Group ,[hidden email]
>> Betreff: Re: Overriding the keyboard shortcut where "page up/down" cause
>> image to zoom in/out
>>
>> >Thanks, that's good to know.  Do you know when the 1.44d daily build will
>> become available?  I just checked, and I have (what I thought was) the most
>> recent update, and that's the 1.44c daily build.
>> >
>> >Unfortunately, I'm not going to be able to use the new "Overlay" feature
>> after all, though, as it draws the same image on all .tifs in the stack, and
>> I want to put different labels on different images within the stack.
>>  --Monica.
>> >
>> >
>> >On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <
>> [hidden email]> wrote:
>> >
>> >On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:
>> >
>> >> I just downloaded the newest version of ImageJ, in order to use the new
>> "Overlay" feature.  I had previously been using a version of ImageJ from a
>> couple years ago.  In the new version, the "page up" and "page down" keys on
>> my laptop (basically the up and down arrow keys) cause the image to zoom in
>> or out.  Is there a way to override this keyboard shortcut?
>> >>
>> >> I usually view my data using the 4D Data Browser from LOCI (part of the
>> "MBF ImageJ for Microscopy" collection of plugins).  This opens all my tifs
>> as a virtual stack, and allows me to use the left/right arrow keys to flip
>> forward and backward through time in the stack, and the up/down arrow keys
>> ("page up" and "page down") to move up and down through the z-slices of the
>> stack.  Right now, the up/down keys are simultaneously flipping up/down
>> through the z-slices, and zooming the image in/out.  I would like to
>> override the zooming, so that I can just use the arrow keys to maneuver
>> through the images of the stack.  Thanks!  --Monica.
>> >
>> >The problem is fixed in the 1.44d daily build. ImageJ now ignores the up
>> and down arrow keys when the LOCI Data Browse is running and there is no
>> selection.
>> >
>> >-wayne
>> >
>> >
>> >------------------------------------------------------------
>> >This email message, including any attachments, is for the sole use of the
>> intended recipient(s) and may contain information that is proprietary,
>> confidential, and exempt from disclosure under applicable law. Any
>> unauthorized review, use, disclosure, or distribution is prohibited. If you
>> have received this email in error please notify the sender by return email
>> and delete the original message. Please note, the recipient should check
>> this email and any attachments for the presence of viruses. The organization
>> accepts no liability for any damage caused by any virus transmitted by this
>> email.
>> >=================================
>>
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Jerome Mutterer-3
You can set this preference directly from your plugin:

Prefs.requireControlKey = true;


Jerome

On Tue, Jul 13, 2010 at 11:09 AM, A. Erhardt <[hidden email]>wrote:

> Hello, Jerome,
>
> 'Require control key for shortcuts'
> that solves the problem (I just tried), thanks!!
>
> I forgot to say: the students are writing plugins, not macros, so they are
> required to program in Java.
> Is there any statement they can build in in the beginning of their code to
> set that option
> 'Require control key for shortcuts'
> from within their program to be safe from surprises in the future?
>
> Thanks for your answer.
> Angelika
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Jerome Mutterer <[hidden email]>
> Gesendet: 13.07.2010 10:55:27
> An: ImageJ Interest Group <[hidden email]>,[hidden email]
> Betreff: Re: Overriding the keyboard presettings - sorry, had wrong topic
> before
>
> >Angelika,
> >you can set the 'Require control key for shortcuts' option to true, so
> >built-in shortcuts will require pressing e.g. 'CTRL-b' instead of just
> 'b'.
> >On the other hand, macros declaring an existing shortcut should override
> it,
> >so the students having built-in functions firing instead of their macros
> >probably forgot installing their macros (CTRL-i or Editor>Macros>Install
> >Macros)
> >Jerome.
> >
> >------------------------------------------------------------------------
> >Jérôme Mutterer,
> >Institut de Biologie Moléculaire des Plantes du CNRS
> >12, rue Zimmer, 67000 Strasbourg.
> >
> >On Tue, Jul 13, 2010 at 9:35 AM, A. Erhardt <[hidden email]>
> wrote:
> >
> >> Hello,  Wayne Rasband, hello everybody of the ImageJ Interest Group,
> >>
> >> I am using ImageJ to support my lecture and lab of Digital Image
> Processing
> >> i am teaching in my Bachelors' and Masters' courses. In the lab, the
> >> students (among other projects) are supposed to write a program to erode
> and
> >> dilate a binary image.
> >> In part of this project, their program is supposed to erode, whenever
> the
> >> key with letter "a" is pressed, and to dilate whenever the letter "b" is
> >> pressed. Now some students have the problem, that the letter "b" is
> preset
> >> to some ImageJ function, so a window pops up that has nothing to do with
> >> their program. I believe that this concernes only users of Windows XP
> >> (including myself), but users with Windows Vista, do not seem to have
> the
> >> problem, some users with Windows 7 have the problem, others not, and
> Linux
> >> users (we had only one) do not seem to have it.
> >>
> >> Question: How can we disactivate the pre-setting of the keys in ImageJ?
> >> Any good idea is welcome
> >> Thank you very much in advance!
> >>
> >> Angelika Erhardt
> >>
> >>
> >>
> >> -----Ursprüngliche Nachricht-----
> >> Von: Monica Rohrschneider <[hidden email]>
> >> Gesendet: 12.07.2010 18:15:29
> >> An: ImageJ Interest Group ,[hidden email]
> >> Betreff: Re: Overriding the keyboard shortcut where "page up/down" cause
> >> image to zoom in/out
> >>
> >> >Thanks, that's good to know.  Do you know when the 1.44d daily build
> will
> >> become available?  I just checked, and I have (what I thought was) the
> most
> >> recent update, and that's the 1.44c daily build.
> >> >
> >> >Unfortunately, I'm not going to be able to use the new "Overlay"
> feature
> >> after all, though, as it draws the same image on all .tifs in the stack,
> and
> >> I want to put different labels on different images within the stack.
> >>  --Monica.
> >> >
> >> >
> >> >On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <
> >> [hidden email]> wrote:
> >> >
> >> >On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:
> >> >
> >> >> I just downloaded the newest version of ImageJ, in order to use the
> new
> >> "Overlay" feature.  I had previously been using a version of ImageJ from
> a
> >> couple years ago.  In the new version, the "page up" and "page down"
> keys on
> >> my laptop (basically the up and down arrow keys) cause the image to zoom
> in
> >> or out.  Is there a way to override this keyboard shortcut?
> >> >>
> >> >> I usually view my data using the 4D Data Browser from LOCI (part of
> the
> >> "MBF ImageJ for Microscopy" collection of plugins).  This opens all my
> tifs
> >> as a virtual stack, and allows me to use the left/right arrow keys to
> flip
> >> forward and backward through time in the stack, and the up/down arrow
> keys
> >> ("page up" and "page down") to move up and down through the z-slices of
> the
> >> stack.  Right now, the up/down keys are simultaneously flipping up/down
> >> through the z-slices, and zooming the image in/out.  I would like to
> >> override the zooming, so that I can just use the arrow keys to maneuver
> >> through the images of the stack.  Thanks!  --Monica.
> >> >
> >> >The problem is fixed in the 1.44d daily build. ImageJ now ignores the
> up
> >> and down arrow keys when the LOCI Data Browse is running and there is no
> >> selection.
> >> >
> >> >-wayne
> >> >
> >> >
> >> >------------------------------------------------------------
> >> >This email message, including any attachments, is for the sole use of
> the
> >> intended recipient(s) and may contain information that is proprietary,
> >> confidential, and exempt from disclosure under applicable law. Any
> >> unauthorized review, use, disclosure, or distribution is prohibited. If
> you
> >> have received this email in error please notify the sender by return
> email
> >> and delete the original message. Please note, the recipient should check
> >> this email and any attachments for the presence of viruses. The
> organization
> >> accepts no liability for any damage caused by any virus transmitted by
> this
> >> email.
> >> >=================================
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Angelika Erhardt
:-) Thanks, that's it!

Angelika

-----Ursprüngliche Nachricht-----
Von: Jerome Mutterer <[hidden email]>
Gesendet: 13.07.2010 11:17:47
An: ImageJ Interest Group <[hidden email]>,[hidden email]
Betreff: Re: Overriding the keyboard presettings - sorry, had wrong topic before

>You can set this preference directly from your plugin:
>
>Prefs.requireControlKey = true;
>
>
>Jerome
>
>On Tue, Jul 13, 2010 at 11:09 AM, A. Erhardt <[hidden email]>wrote:
>
>> Hello, Jerome,
>>
>> 'Require control key for shortcuts'
>> that solves the problem (I just tried), thanks!!
>>
>> I forgot to say: the students are writing plugins, not macros, so they are
>> required to program in Java.
>> Is there any statement they can build in in the beginning of their code to
>> set that option
>> 'Require control key for shortcuts'
>> from within their program to be safe from surprises in the future?
>>
>> Thanks for your answer.
>> Angelika
>>
>>
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Jerome Mutterer <[hidden email]>
>> Gesendet: 13.07.2010 10:55:27
>> An: ImageJ Interest Group ,[hidden email]
>> Betreff: Re: Overriding the keyboard presettings - sorry, had wrong topic
>> before
>>
>> >Angelika,
>> >you can set the 'Require control key for shortcuts' option to true, so
>> >built-in shortcuts will require pressing e.g. 'CTRL-b' instead of just
>> 'b'.
>> >On the other hand, macros declaring an existing shortcut should override
>> it,
>> >so the students having built-in functions firing instead of their macros
>> >probably forgot installing their macros (CTRL-i or Editor>Macros>Install
>> >Macros)
>> >Jerome.
>> >
>> >------------------------------------------------------------------------
>> >Jérôme Mutterer,
>> >Institut de Biologie Moléculaire des Plantes du CNRS
>> >12, rue Zimmer, 67000 Strasbourg.
>> >
>> >On Tue, Jul 13, 2010 at 9:35 AM, A. Erhardt <[hidden email]>
>> wrote:
>> >
>> >> Hello,  Wayne Rasband, hello everybody of the ImageJ Interest Group,
>> >>
>> >> I am using ImageJ to support my lecture and lab of Digital Image
>> Processing
>> >> i am teaching in my Bachelors' and Masters' courses. In the lab, the
>> >> students (among other projects) are supposed to write a program to erode
>> and
>> >> dilate a binary image.
>> >> In part of this project, their program is supposed to erode, whenever
>> the
>> >> key with letter "a" is pressed, and to dilate whenever the letter "b" is
>> >> pressed. Now some students have the problem, that the letter "b" is
>> preset
>> >> to some ImageJ function, so a window pops up that has nothing to do with
>> >> their program. I believe that this concernes only users of Windows XP
>> >> (including myself), but users with Windows Vista, do not seem to have
>> the
>> >> problem, some users with Windows 7 have the problem, others not, and
>> Linux
>> >> users (we had only one) do not seem to have it.
>> >>
>> >> Question: How can we disactivate the pre-setting of the keys in ImageJ?
>> >> Any good idea is welcome
>> >> Thank you very much in advance!
>> >>
>> >> Angelika Erhardt
>> >>
>> >>
>> >>
>> >> -----Ursprüngliche Nachricht-----
>> >> Von: Monica Rohrschneider <[hidden email]>
>> >> Gesendet: 12.07.2010 18:15:29
>> >> An: ImageJ Interest Group ,[hidden email]
>> >> Betreff: Re: Overriding the keyboard shortcut where "page up/down" cause
>> >> image to zoom in/out
>> >>
>> >> >Thanks, that's good to know.  Do you know when the 1.44d daily build
>> will
>> >> become available?  I just checked, and I have (what I thought was) the
>> most
>> >> recent update, and that's the 1.44c daily build.
>> >> >
>> >> >Unfortunately, I'm not going to be able to use the new "Overlay"
>> feature
>> >> after all, though, as it draws the same image on all .tifs in the stack,
>> and
>> >> I want to put different labels on different images within the stack.
>> >>  --Monica.
>> >> >
>> >> >
>> >> >On 7/10/10 12:32 PM, "Rasband, Wayne (NIH/NIMH) [E]" <
>> >> [hidden email]> wrote:
>> >> >
>> >> >On Jul 8, 2010, at 4:52 PM, Rohrschneider, Monica wrote:
>> >> >
>> >> >> I just downloaded the newest version of ImageJ, in order to use the
>> new
>> >> "Overlay" feature.  I had previously been using a version of ImageJ from
>> a
>> >> couple years ago.  In the new version, the "page up" and "page down"
>> keys on
>> >> my laptop (basically the up and down arrow keys) cause the image to zoom
>> in
>> >> or out.  Is there a way to override this keyboard shortcut?
>> >> >>
>> >> >> I usually view my data using the 4D Data Browser from LOCI (part of
>> the
>> >> "MBF ImageJ for Microscopy" collection of plugins).  This opens all my
>> tifs
>> >> as a virtual stack, and allows me to use the left/right arrow keys to
>> flip
>> >> forward and backward through time in the stack, and the up/down arrow
>> keys
>> >> ("page up" and "page down") to move up and down through the z-slices of
>> the
>> >> stack.  Right now, the up/down keys are simultaneously flipping up/down
>> >> through the z-slices, and zooming the image in/out.  I would like to
>> >> override the zooming, so that I can just use the arrow keys to maneuver
>> >> through the images of the stack.  Thanks!  --Monica.
>> >> >
>> >> >The problem is fixed in the 1.44d daily build. ImageJ now ignores the
>> up
>> >> and down arrow keys when the LOCI Data Browse is running and there is no
>> >> selection.
>> >> >
>> >> >-wayne
>> >> >
>> >> >
>> >> >------------------------------------------------------------
>> >> >This email message, including any attachments, is for the sole use of
>> the
>> >> intended recipient(s) and may contain information that is proprietary,
>> >> confidential, and exempt from disclosure under applicable law. Any
>> >> unauthorized review, use, disclosure, or distribution is prohibited. If
>> you
>> >> have received this email in error please notify the sender by return
>> email
>> >> and delete the original message. Please note, the recipient should check
>> >> this email and any attachments for the presence of viruses. The
>> organization
>> >> accepts no liability for any damage caused by any virus transmitted by
>> this
>> >> email.
>> >> >=================================
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Herbert M. Geller
In reply to this post by Angelika Erhardt
To all:

     I have found that the file names after "Split Channels" depend upon
the file type.  If I apply this command to an RGB file named "X", it
then creates three channels: X (red), X (green), X (blue).  However, if
I apply the command to a 16-bit color image named '"Y", the resulting
files are C1-Y, C2-Y, C3-Y.  I have written a macro that uses names, and
so this has caused some confusion on the part of the users who are not
that familiar with file types.
     Any way to have the names the same?

Herb Geller

--
--------------------------------------
Herbert M. Geller, Ph.D.
Developmental Neurobiology Section
National Heart Lung and Blood Institute, NIH
10 Center Drive MSC 1754
Bldg 10, Room 6D18
Bethesda, MD  20892-1754
Tel: 301-451-9440; Fax: 301-594-8133
e-mail: [hidden email]
Web: http://dir.nhlbi.nih.gov/labs/ldn/index.asp
---------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Overriding the keyboard presettings - sorry, had wrong topic before

Rasband, Wayne (NIH/NIMH) [E]
On Jul 20, 2010, at 10:43 AM, Herbert M. Geller wrote:

> To all:
>
>     I have found that the file names after "Split Channels" depend upon
> the file type.  If I apply this command to an RGB file named "X", it
> then creates three channels: X (red), X (green), X (blue).  However, if
> I apply the command to a 16-bit color image named '"Y", the resulting
> files are C1-Y, C2-Y, C3-Y.  I have written a macro that uses names, and
> so this has caused some confusion on the part of the users who are not
> that familiar with file types.
>     Any way to have the names the same?

Use image numbers instead of names. Here is an example:

  run("Split Channels");
  selectImage(nImages-2); // selects the red channel
  selectImage(nImages-1); // selects the green channel
  selectImage(nImages); // selects the blue channel

-wayne