 |
|
 |
|
Next: Optimization technique
|
| Author |
Message |
External

Since: Oct 31, 2004 Posts: 5
|
(Msg. 1) Posted: Wed Feb 09, 2005 6:40 am
Post subject: displaying jpg files - question Archived from groups: comp>databases>paradox (more info?)
|
|
|
Hello, I do not get a very good display when putting jpg files in a
graphics field then displaying it on a form.
The picture seems indistinct. Are there any hints on how to improve
the display quality. The pictures look fine when viewed with Paint
Shop Pro for example.
I am using Pdox 10 in XPhome.
Many thanks
Jan >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Aug 29, 2003 Posts: 36
|
(Msg. 2) Posted: Wed Feb 09, 2005 6:40 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Jan,
this seems to be a weakness of Paradox since long time. It does not matter -
for me - whether it is a jpg or bmp original.
The display is only correct, if the magnification is 100%. The only way I
know is, to show the picture as a thumbnail and clicking on it to show it in
either another form with 100% or starting e.g. Paint Shop Pro or any other
graphic program to show it. When Paradox was sold to Corel with her
knowledge about graphics, I had great expectations, but...
Egbert, 11:51 in Germany
"Jan" <jsgb.DeleteThis@hotmail.com > schrieb im Newsbeitrag
news:fjoj01hpmhbgjh21d5j70rqoametltte6r@4ax.com...
> Hello, I do not get a very good display when putting jpg files in a
> graphics field then displaying it on a form.
> The picture seems indistinct. Are there any hints on how to improve
> the display quality. The pictures look fine when viewed with Paint
> Shop Pro for example.
>
> I am using Pdox 10 in XPhome.
>
> Many thanks
>
> Jan<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Jun 25, 2003 Posts: 4
|
(Msg. 3) Posted: Wed Feb 09, 2005 6:40 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
1. Create a new form
2. Add an OLE object, name it dhtmledit and set it's progid to
DHTMLEdit.DHTMLEdit.1
3. Add a button and its pushbutton method add:
dhtmledit.NewDocument()
dhtmledit.LoadURL("xxxxxxxxxxxxxxx")
Where "xxxxxxxxxxxxxxxxxxx" is the fully qualified name of some html
resource. What you have is a standard browser window plane. No surprises so
far. Now substitute the fully qualified name of some image file such as a
GIF. It will also render. I got down this road when I was looking for a way
to have my images on PDX files blend in with whatever the form background
color was. You can build a quick HTML file with the image specified in it
and the body background set to whatever your form is and get perfectly
blended graphics that can be made to look like they belong without any hint
of what is behind the scene. I'm sure there are lots of other neat things
that could be accomplished, particularly if you build HTML on the fly and
rendered it on your PDX forms.
--
For the quickest and best Paradox support see:
http://www.thedbcommunity.com/support/
Rick Kelly
Crooit Software
http://www.crooit.com
Reflect on your present blessings,
of which every man has many,
not on your past misfortunes,
of which all men have some.
Charles Dickens >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2005 Posts: 4
|
(Msg. 4) Posted: Wed Feb 09, 2005 9:40 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2005 Posts: 10
|
(Msg. 5) Posted: Wed Feb 09, 2005 9:48 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
RICK!!!!!!!
How long have you know about this!!!!!! Why didn't you tell me!!!!!!!
Jeezzz man, don't you know the kind of things I've been looking for? It
displays html pages! It doesn't crash! It could display html email!
.....good grief man!
Hey, once you name it properly all the methods and properties show up
too! Onclick, onkeydown, contextmenuaction (? --right click)....
WONDERFUL!
Rick Kelly wrote:
> 1. Create a new form
>
> 2. Add an OLE object, name it dhtmledit and set it's progid to
> DHTMLEdit.DHTMLEdit.1
>
> 3. Add a button and its pushbutton method add:
>
> dhtmledit.NewDocument()
>
> dhtmledit.LoadURL("xxxxxxxxxxxxxxx")
>
> Where "xxxxxxxxxxxxxxxxxxx" is the fully qualified name of some html
> resource. What you have is a standard browser window plane. No surprises so
> far. Now substitute the fully qualified name of some image file such as a
> GIF. It will also render. I got down this road when I was looking for a way
> to have my images on PDX files blend in with whatever the form background
> color was. You can build a quick HTML file with the image specified in it
> and the body background set to whatever your form is and get perfectly
> blended graphics that can be made to look like they belong without any hint
> of what is behind the scene. I'm sure there are lots of other neat things
> that could be accomplished, particularly if you build HTML on the fly and
> rendered it on your PDX forms.
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 25, 2004 Posts: 48
|
(Msg. 6) Posted: Wed Feb 09, 2005 9:48 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Yeah, but how do you edit/display changes of the underlying code?
At first, I thought it was just a different version of the browser control -
then I clicked on an image in a page and it let me change the size!
As to crashing, it has already a couple of times on my system. Well, not
crashed exactly, Paradox/form stayed on screen. But gave me weird errors
when trying to navigate to some locations.
Nice find. Now, to figuring out how to change the underlying page code, and
redisplay.
I did find that if I right(double-clicked) on a link, it opened a new IE
window on the link.
--
Tony McGuire
"It's not about having enough time. It's about priorities."
___________________________ >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2005 Posts: 10
|
(Msg. 7) Posted: Wed Feb 09, 2005 10:39 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hmmm...I can't get it to open a link. That's ok really for what I want
it to do.
Tony McGuire wrote:
> Yeah, but how do you edit/display changes of the underlying code?
>
> At first, I thought it was just a different version of the browser control -
> then I clicked on an image in a page and it let me change the size!
>
> As to crashing, it has already a couple of times on my system. Well, not
> crashed exactly, Paradox/form stayed on screen. But gave me weird errors
> when trying to navigate to some locations.
>
> Nice find. Now, to figuring out how to change the underlying page code, and
> redisplay.
>
> I did find that if I right(double-clicked) on a link, it opened a new IE
> window on the link.
>
>
> --
>
> Tony McGuire
> "It's not about having enough time. It's about priorities."
> ___________________________
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2005 Posts: 10
|
(Msg. 8) Posted: Wed Feb 09, 2005 10:54 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
It also displays text files nicely and more importantly without losing
its scroll position when not active. Hey, you can edit text!!!....but
how can you save it?????? You can edit html as well, but added tags
don't display as html
Let's see, ok I turned on browse mode, that changes how things
work...ok, that launches the default browser...
this is fun
Tony McGuire wrote:
> Yeah, but how do you edit/display changes of the underlying code?
>
> At first, I thought it was just a different version of the browser control -
> then I clicked on an image in a page and it let me change the size!
>
> As to crashing, it has already a couple of times on my system. Well, not
> crashed exactly, Paradox/form stayed on screen. But gave me weird errors
> when trying to navigate to some locations.
>
> Nice find. Now, to figuring out how to change the underlying page code, and
> redisplay.
>
> I did find that if I right(double-clicked) on a link, it opened a new IE
> window on the link.
>
>
> --
>
> Tony McGuire
> "It's not about having enough time. It's about priorities."
> ___________________________
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2005 Posts: 10
|
(Msg. 9) Posted: Wed Feb 09, 2005 10:57 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hey!
Enable plugins and active X! I'm watching quicktime movies now! Err,
go into design mode and the movie keeps playing. That's funny.
Mark Bannister wrote:
> It also displays text files nicely and more importantly without losing
> its scroll position when not active. Hey, you can edit text!!!....but
> how can you save it?????? You can edit html as well, but added tags
> don't display as html
>
> Let's see, ok I turned on browse mode, that changes how things
> work...ok, that launches the default browser...
> this is fun
>
> Tony McGuire wrote:
>
>> Yeah, but how do you edit/display changes of the underlying code?
>>
>> At first, I thought it was just a different version of the browser
>> control -
>> then I clicked on an image in a page and it let me change the size!
>>
>> As to crashing, it has already a couple of times on my system. Well, not
>> crashed exactly, Paradox/form stayed on screen. But gave me weird errors
>> when trying to navigate to some locations.
>>
>> Nice find. Now, to figuring out how to change the underlying page
>> code, and
>> redisplay.
>>
>> I did find that if I right(double-clicked) on a link, it opened a new IE
>> window on the link.
>>
>>
>> --
>>
>> Tony McGuire
>> "It's not about having enough time. It's about priorities."
>> ___________________________
>>
>><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Aug 29, 2003 Posts: 36
|
(Msg. 10) Posted: Wed Feb 09, 2005 11:40 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Rick,
very interesting!
I would like to learn more about this because I'm not so experienced with
OLE. Well, I know the basics.
> 2. Add an OLE object, name it dhtmledit and set it's progid to
> DHTMLEdit.DHTMLEdit.1
I did what you wrote. When trying to define the progID in the explorer's
properties-panel it does not accept any value. What ever I put in is reset
to blank. What am I missing? I'm working with P9 SP3 and XP home.
Egbert
"Rick Kelly" <someone.TakeThisOut@anybody.com> schrieb im Newsbeitrag
news:420a0a68$1@pnews.thedbcommunity.com...
> 1. Create a new form
>
> 2. Add an OLE object, name it dhtmledit and set it's progid to
> DHTMLEdit.DHTMLEdit.1
>
> 3. Add a button and its pushbutton method add:
>
> dhtmledit.NewDocument()
>
> dhtmledit.LoadURL("xxxxxxxxxxxxxxx")
>
> Where "xxxxxxxxxxxxxxxxxxx" is the fully qualified name of some html
> resource. What you have is a standard browser window plane. No surprises
> so
> far. Now substitute the fully qualified name of some image file such as a
> GIF. It will also render. I got down this road when I was looking for a
> way
> to have my images on PDX files blend in with whatever the form background
> color was. You can build a quick HTML file with the image specified in it
> and the body background set to whatever your form is and get perfectly
> blended graphics that can be made to look like they belong without any
> hint
> of what is behind the scene. I'm sure there are lots of other neat things
> that could be accomplished, particularly if you build HTML on the fly and
> rendered it on your PDX forms.
>
> --
> For the quickest and best Paradox support see:
>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.thedbcommunity.com/support/</font" target="_blank">http://www.thedbcommunity.com/support/</font</a>>
>
> Rick Kelly
> Crooit Software
<font color=purple> > <a style='text-decoration: underline;' href="http://www.crooit.com</font" target="_blank">http://www.crooit.com</font</a>>
>
> Reflect on your present blessings,
> of which every man has many,
> not on your past misfortunes,
> of which all men have some.
>
> Charles Dickens
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Feb 25, 2004 Posts: 48
|
(Msg. 11) Posted: Wed Feb 09, 2005 11:40 am
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 29, 2003 Posts: 36
|
(Msg. 12) Posted: Wed Feb 09, 2005 12:40 pm
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks, Tony,
after some more tries with capitals und mixed capitals finally it accepted
the entry this way Rick wrote it. Knowing by you that it's only a little bit
stubborn encouraged me to try it until success!
Now I'll continue to test it.
Egbert, 17:18 in Germany
"Tony McGuire" <png.paradoxcommunity@com> schrieb im Newsbeitrag
news:420a33dd@pnews.thedbcommunity.com...
>
> Try typing it in CAPS. I had the same problem, until I CAPped it.
>
>
> --
>
> Tony McGuire
> "It's not about having enough time. It's about priorities."
> ___________________________
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Mar 31, 2004 Posts: 13
|
(Msg. 13) Posted: Wed Feb 09, 2005 1:40 pm
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Egbert,
Using TextStream code within your PushButton, write a quick little HTML page
that includes your image file name and the size you want the image to be
displayed (just like controlling the size of an image on any web page). You
can also grab the background color of your Form and set the HTML pages
background to that color. Now open that new HTML page that you just made
(instead of just an image file).
The image will be resized to the size you set and the background will appear
as if its your Form (especially cool for transparent GIFs).
Also... earlier, I had posted some information about how to get the size of
an image "before you open it"... Using that code, you can pre-determine the
size of your image... then set the "re-size" parameters (in your TextStream
created HTML code) so that they are "proportional" to the original image
size, yet will fit in the space you have provided on the Form. You can then
also re-size the OLE object on the page to be the same size as the reduced
image. (if you had to reduce the image)
If the original image size is smaller or equal to the OLE object... then you
merely need to resize the OLE object so its size is "proportional".
I think that all makes sense... I wrote it kind of quick.
--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Aug 29, 2003 Posts: 36
|
(Msg. 14) Posted: Wed Feb 09, 2005 1:40 pm
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hm,
loads HTML stuff (local or from internet) well. Neat!
Bitmaps, depends. I could not get all pictures to be displayed. Some
pictures gave an error box without error message. Other displayed not the
bitmap but some characters instead.
More then, I need to find out e.g. how to scale so that the picture fit into
the OLE-field without using scrollbars.
Any idea for the latter?
Egbert, 18:24 in Germany
"Egbert Babst" <EgbertBabst.TakeThisOut@BabstSoft.com> schrieb im Newsbeitrag
news:420a37fd$1@pnews.thedbcommunity.com...
> Thanks, Tony,
> after some more tries with capitals und mixed capitals finally it accepted
> the entry this way Rick wrote it. Knowing by you that it's only a little
> bit stubborn encouraged me to try it until success!
> Now I'll continue to test it.
>
> Egbert, 17:18 in Germany
>
>
> "Tony McGuire" <png.paradoxcommunity@com> schrieb im Newsbeitrag
> news:420a33dd@pnews.thedbcommunity.com...
>>
>> Try typing it in CAPS. I had the same problem, until I CAPped it.
>>
>>
>> --
>>
>> Tony McGuire
>> "It's not about having enough time. It's about priorities."
>> ___________________________
>>
>>
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
External

Since: Aug 29, 2003 Posts: 36
|
(Msg. 15) Posted: Wed Feb 09, 2005 1:40 pm
Post subject: Re: displaying jpg files - question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Rick,
it's a nice enrichment for me (see my posting below).
Do you have any URL to more information about this type of OLEs?
How could I - or any other - know how to name the OLE field correctly and
the progID?
You, Tony and (I guess) some other knew it and surely you have read more
about before. Can you (or anybody) point me to some stuff?
TIA!
Egbert, 18:31 in Germany
"Rick Kelly" <someone.TakeThisOut@anybody.com> schrieb im Newsbeitrag
news:420a0a68$1@pnews.thedbcommunity.com...
> 1. Create a new form
>
> 2. Add an OLE object, name it dhtmledit and set it's progid to
> DHTMLEdit.DHTMLEdit.1
>
> 3. Add a button and its pushbutton method add:
>
> dhtmledit.NewDocument()
>
> dhtmledit.LoadURL("xxxxxxxxxxxxxxx")
>
> Where "xxxxxxxxxxxxxxxxxxx" is the fully qualified name of some html
> resource. What you have is a standard browser window plane. No surprises
> so
> far. Now substitute the fully qualified name of some image file such as a
> GIF. It will also render. I got down this road when I was looking for a
> way
> to have my images on PDX files blend in with whatever the form background
> color was. You can build a quick HTML file with the image specified in it
> and the body background set to whatever your form is and get perfectly
> blended graphics that can be made to look like they belong without any
> hint
> of what is behind the scene. I'm sure there are lots of other neat things
> that could be accomplished, particularly if you build HTML on the fly and
> rendered it on your PDX forms.
>
> --
> For the quickest and best Paradox support see:
>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.thedbcommunity.com/support/</font" target="_blank">http://www.thedbcommunity.com/support/</font</a>>
>
> Rick Kelly
> Crooit Software
<font color=purple> > <a style='text-decoration: underline;' href="http://www.crooit.com</font" target="_blank">http://www.crooit.com</font</a>>
>
> Reflect on your present blessings,
> of which every man has many,
> not on your past misfortunes,
> of which all men have some.
>
> Charles Dickens
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: displaying jpg files - question |
|
| Back to top |
|
 |  |
| Related Topics: | forcing lck files location - Is there method to force lck files location. I create query on fly with Delphi but there is a problem with lock files. It tries to create it to system32 folder but because user does not have rights to that folder , creating query fails. So, how can I..
Telnet question - I would like to control a telnet sesssion, from within paradox. I need to login to a unix server, by supplying username and password, then run a script file that exists on the unix hard drive. The script file will take several minutes to complete. My....
write to paradox via web - I have a client that uses software developed in delphi. It uses paradox database files. Can these be written to from the web? I am familiar with php/mysql...is there a similar capability with delphi/paradox?
which program? - Hi to all, I'm sorry 'cause I'm not sure this is the correct ng...so my apologies in advance if I'm in the wrong place. My customer show me a floppy disk with old files (about 1998-1999) and told me that there are her accounting data to back life. With...
Network performance and hardware issues - Hi! Our clients have run our Paradox based apps in small network configurations with only about 10-15 runtime clients at max. Recently we have had inquiries from a bigger company that wants to run our app in an network of over 100 clients, is this.. |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|