Pages: 1 2 3 4 5 6 7 8 9 10 11
Author Topic: Window Styler, Web Browser, and Embed Program  (858,783 Views)
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #75 Posted on: September 28, 2014, 08:43:21 PM
All three tested Windows 7. I don't think my OS is the problem but I have a few ideas crazy enough they might work, you mentioned the window foucs switching repeatedbly between the browser control  and the game window, I have a possible fix I'm working on will share a link in a couple short minutes. Thank you for taking your time to test Darkstar2 and Lonewolff! You guys are life savers! :D
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #76 Posted on: September 28, 2014, 08:51:52 PM
@Darkstar2 let me know if this makes any difference, replace  WindowStyler.dll in the datafiles dir with this:

https://dl.dropboxusercontent.com/u/79893663/Extensions/Window%20Styler/downloads/temp/WindowStyler.dll

Then run WebBrowser.egm.exe because it reads the dlls in that directory. the GMS version has them built-in so don't run that.

I'm certain this won't fix everything but it might fix the window focus problem.
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #77 Posted on: September 28, 2014, 09:22:28 PM
It made it FAR WORSE :D it's now creating several windows of itself when clicking mouse,
still the window loses focus as soon as run.
It was so bad, I had to manually end the process in task manager :D

I suspect the problem might have to do with the styler.

Could you try sending me a browser example, WITHOUT the styler or any calls to the styler, just the embedding browser.

Offline (Unknown gender) time-killer-games
Guest


Email
Reply #78 Posted on: September 28, 2014, 09:26:34 PM
Okay with this version I commented out all windowstyler calls.

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.gms.exe

Thanks

if that doesn't help I just romoved all step event code with this version in hopes it'll remove that looping issue

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser2.gmx.exe
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #79 Posted on: September 28, 2014, 09:29:56 PM
Quote from: time-killer-games on September 28, 2014, 09:26:34 PM
Okay with this version I commented out all windowstyler calls.

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.gms.exe

Thanks

lol thanks I already went ahead and did that, still same problem.  I tried making changes to the code, modifying stuff, removing stuff, same stuff... I tried running the barebones browser plugin without embed, white area....and flickering hourglass/arrow, it's as if it is retrying in a loop of some sort.

Sorry.

Offline (Unknown gender) time-killer-games
Guest


Email
Reply #80 Posted on: September 28, 2014, 09:36:26 PM
This one will take you to an automatically generated webpage saying in big bold text "POOP!"

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser3.gmx.exe

please try it we're getting warmer!
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #81 Posted on: September 28, 2014, 09:38:50 PM
Are we ???? because it feels colder to me :D
BTW I tried stuff on my own here, I tried local HTML viewing, same problem.
I tried disabling web styling, I tried changing other things.  there is one thing I have in mind I will go check.
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #82 Posted on: September 28, 2014, 09:39:36 PM
did you try that most recent link? What'd do?
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #83 Posted on: September 28, 2014, 09:42:53 PM
It displayed POOP in a white background - however there is still the problem of window losing focus, (by losing focus I don't mean disappearing, it is the caption area that goes from gradient blue to grey as if it was a stay on top and you tried clicking on another window, when clicking in caption area it becomes blue again, but when clicking in any area inside client area it loses focus.
But yeah, I see the word poop. lol!

BTW, this topic should be moved to work in progress as I think we all agree that this is not a finished game :D
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #84 Posted on: September 28, 2014, 09:49:22 PM
THATS IT I KNOW THE PROBLEM!!!

I have to do something real quick and I'll edit after. :)

The losing focus issue is because the browser controll is a seperate window being embedded in there, there's no way to fix that unless I re-write in c++.

Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #85 Posted on: September 28, 2014, 09:50:38 PM
QuoteThe losing focus issue is because the browser controll is a seperate window being embedded in there, there's no way to fix that unless I re-write in c++.
Not necessarily, can't you just intercept the messages from the browser control handle?
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #86 Posted on: September 28, 2014, 10:10:14 PM
Okay THIS should work but if it doesn't I know what the problem is ahead of time I just need to make sure!

Try this:

https://dl.dropboxusercontent.com/u/79893663/Extensions/Web%20Browser/downloads/temp/WebBrowser.exe

and aside from the window focus we should be good to go! THANK YOU! :D :D


@Robert I don't want to eat up your time but if you'd like to show me an example code snippet I'd appreciate it. :) It's not a contol, it's a control inside a window being created by the DLL, and then that window is being embedded into the game with SetParent().
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #87 Posted on: September 28, 2014, 10:15:06 PM
It works, and as you know, still the focus problem.

:D
Ok the losing focus thing might be due to the embedded window within a window and so that takes "priority", if you click outside the embedded browser area the initial window is back in focus, if you click on the browser area the caption turns grey as the focus is placed on the embedded browser. since the browser itself is another window.  So in theory this should be normal behaviour, as only one windows at a time can be in focus,
and since the embedded window has no border, it gives a weird impression although it's acting normal...You can switch back and forward focus, now when clicking on the initial window, it does not force itself to lose focus, but stays in it, unless you press inside the embedded area.


Offline (Unknown gender) time-killer-games
Guest


Email
Reply #88 Posted on: September 28, 2014, 10:15:41 PM
HECK YEAH! :D :D
Offline (Unknown gender) Darkstar2

Member
Joined: Jan 2014
Posts: 1,238
View profile
Reply #89 Posted on: September 28, 2014, 10:20:00 PM
Quote from: time-killer-games on September 28, 2014, 10:15:41 PM
HECK YEAH! :D :D

You mind telling us what you changed for it to work? And I am still very curious to know how the hell it managed to work on your end without the changes and not for anybody else......this is definitely strange, but glad you got it working.
Pages: 1 2 3 4 5 6 7 8 9 10 11