INTERACT FORUM

Windows => Plug-in Development => Topic started by: KingSparta on August 22, 2002, 01:02:51 pm

Title: Back Space In A Text Box
Post by: KingSparta on August 22, 2002, 01:02:51 pm
I was playing with a textbox today and noticed that backspace when the plugin is running in MJ does not work.

Any ideas how i can fix it?

Is MJ grabing my backspace?
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 22, 2002, 03:06:22 pm
It seems the delete key does not work in a plugin textbox also.
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 01:08:49 am
Dude,

Try AV's options dialog there are plenty of edit boxes in there.

But I cannot remember seeing anything like that.

Is it happening on all boxes?   What about Rich Edit boxes??

Do you have any _KeyPress handlers that could be gobbling up the keys?
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 02:28:38 am
>> Do you have any _KeyPress handlers that could be gobbling
>> up the keys?
Nope Just A Plain Text Box

If you hit backspace The program backs up to the MJ tree plug-ins

it seems like MJ is grabing the key press

>> What about Rich Edit boxes??
Have not tried that yet. Is that what your using for an edit box?
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 02:40:56 am
I use both types.

But I do recall that there is a property on your main control that specifies how to handle keyboard focus.

Unfortunately I don't have VB at work here so I can't tell you what it is but if you can't find it let me know and I'll check when I get home this evening.
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 03:55:03 am
>> But I do recall that there is a property on your main
>> control that specifies how to handle keyboard focus.
I will look later (around noon), if i can't find it you might need to point it out to me since i don't have a clue right now on what i am looking for.
Title: RE:Back Space In A Text Box
Post by: Matt on August 23, 2002, 04:35:43 am
Media Jukebox may be grabbing it.  Both [Backspace] and [Delete] are MJ keyboard accelearators.

I don't have a good answer or solution right now.  More later...

-Matt
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 08:23:36 am
RhinoBanga

I see no option to turn on or off in properties.
Title: RE:Back Space In A Text Box
Post by: Cephlen on August 23, 2002, 08:47:15 am
Getting same issue here.

Private Sub Text1_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub


The ocx never gets the keypress event :(


However - if you use the new plugin I am about to upload, an ocx inside the ocx will get the keypress event.

The KeyPreview property has no effect :(
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 08:54:02 am
I'll install AV 1.03 and have a look.
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 09:13:29 am
Yup I can reproduce it here.   Works ok with modal dialogs though which is where AV1 does it's input.
Title: RE:Back Space In A Text Box
Post by: Cephlen on August 23, 2002, 09:22:35 am
Yeah, I can repro ... Modal's are fine too.
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 09:31:39 am
Cephlen

I tryed to see if i could grab the key thru keypress like you did and mj always gets it.

seems like a major problem to me.
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 10:09:12 am
>> Yeah, I can repro ... Modal's are fine too.
Ok I give up, so how do you create a Modal form
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 10:14:46 am
It's one of the parameters when you .Show a form.
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 10:27:25 am
RhinoBanga

Ok, got it
Title: RE:Back Space In A Text Box
Post by: Cephlen on August 23, 2002, 10:37:11 am
hey guys, can you give my new plugin a whirl and see if it works ok..

its the web browser in the interface plugins area..

Mainly concerned about the layout of the controls on different screens.

Mail me screen caps if it isnt looking healthy please :)
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 10:41:24 am
Clicked on it ... it said it installed ... fired up MJ ... but it wasn't there :(
Title: RE:Back Space In A Text Box
Post by: Cephlen on August 23, 2002, 10:53:49 am
darn, i dont know how their installer works.. LOL!
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 10:54:13 am
Cephlen

i got it loaded up, no html displayed.

in the web address was "http://"

tryed to type something in ther and kept getting a message box with "119" each time i hit a key

used the home button and got it to go to http://www.musicex.com/mediajukebox/index.html

now when i load it up it is fine.

so it seems it is not getting the html on the start of the program maybe not being set in UserControl_Initialize
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 11:07:25 am
Cephlen,

I think the problem is that no registration information was entered into the registry.

VB ocx's can't self register so you have to either supply a .REG file to merge into the registry or an exe that installs and does it for you.

Or unless J River have changed their install script to automatically do this?

You may want to look at http://www.innosetup.com for a free, easy to use and nice looking installer.
Title: RE:Back Space In A Text Box
Post by: Cephlen on August 23, 2002, 11:09:43 am
Theres a .reg file included in the zip i uploaded.  Their installer has a script that copies the stuff to the directory and then registers the .reg file.

But I guess its not working...  Ill try and use that installer.
Title: RE:Back Space In A Text Box
Post by: RhinoBanga on August 23, 2002, 11:11:36 am
I didn't know that as AV uses an exe due to the controls it uses.

If you want AV's installation script for Inno then just shout.
Title: RE:Back Space In A Text Box
Post by: KingSparta on August 23, 2002, 03:11:28 pm
>> You may want to look at http://www.innosetup.com for a free,
>> easy to use and nice looking installer

You Know this should be on a link here in this forum for developers.

Maybe some other tools