Jump to content

Display simple text - is possible?


Recommended Posts

Hi

 

Its possible to display simple text line (without header and boxes - just simply test) in fixed position on screen with COM interface????

 

I cant find method like this.

 

 

 

Regards

Link to comment
You can use the ShowInfointvpic for showing messages with a timeout. Do you mean something like this?

 

 

Hi, i tested this method, but is not this for im looking. ShowInfointvpic display frame, and also i cant change position of text.

 

Let me explain what i need.

 

I write new plugin to display subtitles for satelite program from external files (not DVB Subtitles). I already have my plugin, but he use external transparent form (on top) to display subtitles, its working, but when i initial plugin focus is set to my form not DVBViewer. So i thing maybe is method to display text line on fixed position with DVBViewer COM infterface and i no more need to create own form to display line text.

 

I hope so now you know what im looking.

 

Regards

Link to comment

I think you should be able to give the focus back to the DVBViewer app manually.. maybe you have to search the window, but it should be possible to give back the focus.

Link to comment

There is no easy way to do what you want. You need to write a OSD-Plugin, generate a osdlabel on the fly, place it and use the overlayed renderlayer (the same layer the DVBViewer internal subtitles use.

 

I know it sounds complicated, in fact it's quite simple, which language do you use?

Link to comment

Thanks for reply. I write my plugin in Delphi.

 

Its sound interesing to write OSDPlugin. Can you litle bit explain this.

 

 

Moses: i try this but without sucess, i have handle to DVBViewer, i can send key to DVBViewer like VK_DOWN, so i can change channel ;) but i can set focus back to DVBViewer.

 

Here is my sample code:

 

winhandle := FindWindow(nil, 'DVBViewer');
   if winhandle = 0 then .................
   else
       begin
         SetForegroundWindow(winhandle);
         SetActiveWindow(winhandle);
         PostMessage(winhandle, WM_ACTIVATE, 0, 0);
//          winprocs.setfocus(winhandle);
.....................

Link to comment
  • 1 year later...
generate a osdlabel on the fly, place it and use the overlayed renderlayer (the same layer the DVBViewer internal subtitles use.

 

Hi Lars. I am interested in subtitles output too. I write plug-in for on-line subtitles translation. Сould you give a delphi example of use the overlayed renderlayer implementation? Unfortunately could not find anything similar in the published source codes.

Link to comment
  • 2 weeks later...

People help!!!!!!!!! Or tell how to show a OSDwindow without reduction of the videowindow. When I try to create a transparent OSDwindow (or same like ShowInfo), the videowindow decreases.

I make it by function: WindowManager.NewWindow(WINDOW_ID, 'myprograms.xml', self, 0, '', '', '', PLUG_NAME, '', '', '', 0, true, punk);

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...