Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
  Print  
Author Topic: Window Styler, Web Browser, and Embed Program  (Read 23273 times)
Offline (Male) time-killer-games
Reply #75 Posted on: September 28, 2014, 03:43:21 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
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
Logged
Offline (Male) time-killer-games
Reply #76 Posted on: September 28, 2014, 03:51:52 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
@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.
Logged
Offline (Unknown gender) Darkstar2
Reply #77 Posted on: September 28, 2014, 04:22:28 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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.

Logged
Offline (Male) time-killer-games
Reply #78 Posted on: September 28, 2014, 04:26:34 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
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
« Last Edit: September 28, 2014, 04:30:29 PM by time-killer-games » Logged
Offline (Unknown gender) Darkstar2
Reply #79 Posted on: September 28, 2014, 04:29:56 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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.

Logged
Offline (Male) time-killer-games
Reply #80 Posted on: September 28, 2014, 04:36:26 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
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!
Logged
Offline (Unknown gender) Darkstar2
Reply #81 Posted on: September 28, 2014, 04:38:50 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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.
Logged
Offline (Male) time-killer-games
Reply #82 Posted on: September 28, 2014, 04:39:36 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
did you try that most recent link? What'd do?
Logged
Offline (Unknown gender) Darkstar2
Reply #83 Posted on: September 28, 2014, 04:42:53 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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
Logged
Offline (Male) time-killer-games
Reply #84 Posted on: September 28, 2014, 04:49:22 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
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++.

Logged
Offline (Male) Goombert
Reply #85 Posted on: September 28, 2014, 04:50:38 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
Quote
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++.
Not necessarily, can't you just intercept the messages from the browser control handle?
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) time-killer-games
Reply #86 Posted on: September 28, 2014, 05:10:14 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
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().
« Last Edit: September 28, 2014, 05:13:21 PM by time-killer-games » Logged
Offline (Unknown gender) Darkstar2
Reply #87 Posted on: September 28, 2014, 05:15:06 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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.


« Last Edit: September 28, 2014, 05:22:16 PM by Darkstar2 » Logged
Offline (Male) time-killer-games
Reply #88 Posted on: September 28, 2014, 05:15:41 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1157

View Profile Email
HECK YEAH! :D :D
Logged
Offline (Unknown gender) Darkstar2
Reply #89 Posted on: September 28, 2014, 05:20:00 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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.
Logged
Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
  Print