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.

DarkBASIC Discussion / disabling re-size function on windows...

Author
Message
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Jul 2009 22:30
How can I disable the re-size function on windows? (When you grab the edge of a window and drag) Is there some dll?

Thanks, TheComet


Make the path of your enemies easier with Waypoint Pro!
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 21st Jul 2009 11:54
Don't you just use "Set Window Layout"? I think if you set the first flag to zero, the window is created without the resize handles. The only snag is that the Titlebar vanishes as well (so no close/restore/minimise buttons).

Hope this helps!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Jul 2009 12:26
Quote: "The only snag is that the Titlebar vanishes"


That is exactly what I want to avoid, thanks though.

TheComet


Make the path of your enemies easier with Waypoint Pro!
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 21st Jul 2009 18:19
Ah. In that case, I don't think it's possible using native DBC commands. Mind you, you could try setting Window Mode On and then pasting a titlebar image at the top. That might give you what you're after - you could check for click and mouse movement, and then reposition the window accordingly. Memory tells me that that was a bit jerky though.

Sorry!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
NanoGamez guy
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 21st Jul 2009 22:33
Here's a crude horrible way of doing it:



My current wallpaper:
"I trust you have prepared new insults for today" - Spock, Star Trek
Brick Break
User Banned
Posted: 21st Jul 2009 22:53 Edited at: 21st Jul 2009 23:59
@NanoGamez guy- lol you can say that again.

Um, I did make a function to set the program to DBPro-style fullscreen, that doesn't take forever to switch between and doesn't clear the bitmap.


WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Jul 2009 23:13
@ Nano

lol, try playing a game in that window

@ Brick Break

That's not exactly what I'm looking for... I think I'll post some screen shots:

Here you can see my waypoint editor:



The problem is that I can resize this window how I want, but I want it to stay fixed...



If you look at the maximize button on the window, you will notice it is faded, which means you can't use it. That code came from Latch, and I thought it would disable the resize function of the window too, but it didn't.

Any help is still greatly appreciated.

TheComet


Make the path of your enemies easier with Waypoint Pro!
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 21st Jul 2009 23:20
@TheComet

Remember how we used the Windows style to disable the Maximize button? Well it's the same principal here. Just include the constant for border resizing. Here is the altered disable maximize button code including disabling resizing:



Enjoy your day.
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Jul 2009 23:30 Edited at: 21st Jul 2009 23:30
That's awesome, Latch! I hope you are happy to hear that you will be in the credits when this finally finishes... (And of course other people that helped me)

TheComet


Make the path of your enemies easier with Waypoint Pro!
Brick Break
User Banned
Posted: 21st Jul 2009 23:35
Latch saves the day once again. Hey, how do you allow windows to retain the Aero scheme?

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Jul 2009 00:12
Thank you both.



Enjoy your day.
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jul 2009 00:16
Quote: "Hey, how do you allow windows to retain the Aero scheme?"


You mean the mouse? The mouse will use the current scheme of windows when using "set window on". If I didn't understand what you meant, please confirm more clearly...

TheComet


Make the path of your enemies easier with Waypoint Pro!
Brick Break
User Banned
Posted: 22nd Jul 2009 00:27
Well...
I want this:

Rather than this:


WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 22nd Jul 2009 00:30
i had to look for 5 min before i even saw a difference

the bar at the very top is slightly different, thats a big deal?

Brick Break
User Banned
Posted: 22nd Jul 2009 00:34
Well, it applies to all of the windows open at the same time, you can't use WIN-Tab, and when you drag windows they leave black trails. It's really awful, and makes Vista Home Premium look like Vista Home Basic while the program is running.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jul 2009 01:05
Well, I don't think I can help you out there, because THIS is what I think of vista... Sorry. You could ask that question on the Geek Culture board. Someone will have to know how to do it:

Geek Culture

TheComet


Make the path of your enemies easier with Waypoint Pro!
Brick Break
User Banned
Posted: 22nd Jul 2009 01:19
o_O

Well, as a loyal Microsoft fanboy, I have to say Vista is awesome and there is no reason why anything shouldn't work with it. Ah, who am I kidding? Vista sucks! I'm just stuck with it because that's just what my computer came with.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 22nd Jul 2009 01:29
why not upgrade to the windows 7 beta... demo..... thing

Brick Break
User Banned
Posted: 22nd Jul 2009 01:39
Because it says it'll expire in a year so I'd rather stick with what I have. Besides, in a few years, Vista will be the new XP.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jul 2009 16:07
Quote: "why not upgrade to the windows 7 beta... demo..... thing"


You'd actually be better off upgrading Vista to Windows XP!

TDK

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 24th Jul 2009 23:17
Quote: "You'd actually be better off upgrading Vista to Windows XP! "


beat me to the punch line tdk! ya i think xp is better then upgrading to a beta version lol. although i here windows 7 is gunna be freaking amazing!

i like the look and feel of xp better anyway. lol i don't like that shiny stuff just go with oldschool gray theme

New Site! Check it out \/
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 24th Jul 2009 23:27
This is getting off topic, but what the... My problem is solved. Did you know that Microsoft has lost 30% profit of their usual income? 5000 Employees where fired to balance it out.

Oh, and I'd hate to be the project leader of vista.

Yeah, upgrade to XP again. Or use LINUX.

TheComet


Make the path of your enemies easier with Waypoint Pro!
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 26th Jul 2009 04:28
i havent actually used it but ive heard that it beats XP by a long shot, ive even been told that 7 has XP built into it!

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 27th Jul 2009 05:05
Quote: "ive even been told that 7 has XP built into it!"


Can't say anything bout that, but i must agree it does beat xp but it is still in beta i would rather have a "Finished" product.

New Site! Check it out \/

Login to post a reply

Server time is: 2024-05-20 04:41:24
Your offset time is: 2024-05-20 04:41:24