Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 00:59 Edited at: 14th Jun 2003 01:00
I'm trying paste an image in a window. It works ok, except when the user resizes the window, because DBPro tries to make what's inside 800*600. Is there a way around this? Or is there a way that I can get the windows window size? Maybe a DLL, MrTAToad?
Thanks

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 01:37
The best way around that I can think of is to get the windows X & Y size (in a loop), and then re-size the graphic accordingly.

I think you can get the Windows X & Y size with someone else routine (RobK???) - if not, let me know, and I'll see what I can do.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 01:55 Edited at: 14th Jun 2003 01:55
Yes, I know. That's how I thought of doing it. I just don't know how to get the window size. I thought that you would have a DLL for it already. Thanks anyway, MrTAToad

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 02:27
Need to see if anyones done one first...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Jun 2003 03:18
Don't look at me - I haven't done one
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 03:23
I think someone at RGT did one - maybe Robbie...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 03:54
Only one I could find was from ESC at RGT:

It works except get strange numbers when you maximize window.



Gronda, Gronda
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 04:32
Thanks alot sonic (and IanM and MrTAToad too)

I can't try it right now because I'm not at home. I'll try it later.

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Jun 2003 15:07 Edited at: 14th Jun 2003 15:08
I haven't done one - I'll leave this to you toady - My plugin just gets the desktop resolution, a bit silly of me not to include a feature to get the window size - but there you go.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_103.zip
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 17:02
No real point doing a plug-in...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Jun 2003 17:10 Edited at: 14th Jun 2003 17:11
You get better values (ie non 65535 values when expanding), if you dont use memblocks, just allocate memory, and then peek.

The reason the 65535 appears is a) a problem with memblocks and b) Windows moves the window when expanding (to produce a negative x,y position).

So, the proper code is :



and yes, you will need my plug-ins to run it.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 18:37 Edited at: 14th Jun 2003 23:26
Ok. Thanks MrTAToad!

[Edit]
I'm back at home. They work fine.
Nothing wrong with your plugin MrTAToad, but can't you just use this?



"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 15th Jun 2003 00:01
Too much trouble!

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-08-08 17:28:18
Your offset time is: 2025-08-08 17:28:18