Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by sfi_dev at 07-18-2011 3:30 . Topic has 3 replies.

Print Search
Sort Posts:    
   07-18-2011, 3:30
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Active-X - insert image from server
Reply Quote
Hi there,

When inserting an image, we get the "Picture" window where we can Browse a folder enter alternate text etc.

We want the user to select an image on the Server not client.
1. Is there an inbuilt way to make the browse button display a specific folder on the web server ?
2, If not is there a way I can trap the "Browse" button so I can create my own image select window ?

Thanks in advance. Tou advice on best approach is much appreciated.

sfi_dev
   Report 
   07-18-2011, 8:31
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Active-X - insert image from server
Reply Quote
Hello,

we recommedn to use XML toolbar to be able to define your own toolbar button.
You can also define a callback function and receive an event.

In the event call your own dialog.
Have a look at the standard toolbar xml in editor/config/xml-toolbar for desktop and have a look at the save button implenetation.

Regards,
hans-Peter
   Report 
   07-19-2011, 2:05
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Re: Active-X - insert image from server
Reply Quote
Great so I will setup a "RaiseToolbarEvent" and trap it in editor_EditorToolbarAction.

If I create a screen that mimicks, the insert local image window (except the browse will browse server files) is there a method I can call passing it all the picture elements (e.g. layout, name, text etc that will insert the image as per the button

e.g.
<img alt="" src="file:///C:/logo.jpg" align="baseline" border="0" />

If I have to construct the string myself, what do I use to insert it in the editor ?
   Report 
   07-19-2011, 8:04
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Active-X - insert image from server
Reply Quote
Hello,

please use EditInsertHtml method.

Regards,
Hans-Peter
   Report 
Pintexx Forum » Developer Produ... » pinEdit » Re: Active-X - insert image from server