Migrating to f-in-box v. 3

.NET Edition of the F-IN-BOX
seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Migrating to f-in-box v. 3

Postby seesharp » Sat Dec 23, 2006 1:00 pm

Hi

I am currently migrating our application form FlashPlayerControl to f-in-box. Most things seem to work fine, I've just a few questions:
- I caught the right mouse button click with a MessageFilter. Now I tried to move to the MouseClick events of f-in-box but I cannot make them work. Furthermore, I cannot use the AxHandle anymore to filter the mouse clicks of the concerning form in my MessageFilter. Could you inform me, how I can achieve this with f-in-box 3 ?

- To load the Flash.ocx from resource, we have to add it to the constructor of f_in_box_control / _form now. I like this implementation, however, I am not sure how I should pass the AxCode to the base class of my translucency form.

Kind regards

Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: Migrating to f-in-box v. 3

Postby Softanics » Sat Dec 23, 2006 1:49 pm

Thank you for your questions.

seesharp wrote:I am currently migrating our application form FlashPlayerControl to f-in-box. Most things seem to work fine, I've just a few questions:
- I caught the right mouse button click with a MessageFilter. Now I tried to move to the MouseClick events of f-in-box but I cannot make them work.


Yes, I see this problem. I will update the component tomorrow or at the beginning of the next week.
Now you can assign a context menu with a f-in-box and handle Popup event, I hope this workaround works well.

seesharp wrote:- To load the Flash.ocx from resource, we have to add it to the constructor of f_in_box_control / _form now. I like this implementation, however, I am not sure how I should pass the AxCode to the base class of my translucency form.


Something like that:

Code: Select all

public YourClass() : base( ... )


Thank you for your help!
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Sat Dec 23, 2006 2:09 pm

Hi

It's amazing such a support even on saturday. Thank you very much.
My problem with translucency form is just, that I create my classes and forms using System.Reflection, i.e. I do not pass anything else than method or class names as strings, hence I simply cannot pass the AxCode to the base class of my translucency form.
Nevermind, I will have to write some helper classes to solve that issue.

Very kind regards

Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Dec 24, 2006 4:41 pm

seesharp wrote:It's amazing such a support even on saturday. Thank you very much.


No problems :) Thank you!

I have just uploaded updated version, please check it.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Mon Dec 25, 2006 12:30 pm

Just another question,

it is not mentioned in the manual, but would it be possible to use the parameterless constuctor and assign the AxCode to the translucency form later? Like this wouldn't have to change my implementation too much.

Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Dec 27, 2006 6:04 pm

seesharp wrote:it is not mentioned in the manual, but would it be possible to use the parameterless constuctor and assign the AxCode to the translucency form later? Like this wouldn't have to change my implementation too much.


The problem is when default constructor is called, f-in-box uses installed flash activex...
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Thu Jan 04, 2007 7:26 am

Hi

concerning the RightMouseButton click,
Unfortunately I am obviously too stupid to find the correct way even with the updated library. I need it because we assign custom context menus which are different for each Flash/Flex component clicked on.

Could you give me a hint, which Handle I can use to filter the right clicks for each individual form as it has been possible with AxHandle.


Thank you once more very much.

Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Jan 04, 2007 11:12 am

We have removed AxHandle property...

Why you can't use the usual MouseDown handler:

Code: Select all

private void f_in_box__control1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
   // Analyze e.Buttons
}


?

If you are really need AxHandle I can add it again, but (as you probably remember) it was added only as a workaround.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Thu Jan 04, 2007 11:33 am

Oops,

I tried MouseClick and it didn't seem to work hence I asked for the AxHandle, MouseDown definitely works.


THAANKS

Alex (again)

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Thu Jan 04, 2007 11:56 am

Sorry that I am here again but I encounter the next issue:

If I use MouseDown, with f_in_box__control everything is working like a charm.

On a f_in_box_form, if you set standardMenu = false, the MouseDown event only fires on double clicks.


Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Jan 04, 2007 3:50 pm

seesharp wrote:Sorry that I am here again but I encounter the next issue:

If I use MouseDown, with f_in_box__control everything is working like a charm.

On a f_in_box_form, if you set standardMenu = false, the MouseDown event only fires on double clicks.


Yes, I see... Try to use message filter :) -- or -- assign a popup menu and handle Popup event.

Also please download latest version, I've just found one small mistake related with popup menu of f_in_box__form.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Fri Jan 05, 2007 5:42 pm

Hmm, but to use MessageFilter, I should have the AxHandle back again.


Kind regards

Alex

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Jan 05, 2007 6:01 pm

seesharp wrote:Hmm, but to use MessageFilter, I should have the AxHandle back again.


You should handle f_in_box__form messages, so use f_in_box__form.Handle instead of AxHadle.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Fri Jan 05, 2007 7:45 pm

Oh, sorry, of course, such was my old implementation with FlashPlayerForm as well.

Good night

Best regards

Alex


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 6 guests

cron