Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any commands to change whats on the Title Bar
#1
Hi there Smile

I wonder if any of you cool folks, know if there are commands to alter what is on the title bar of FB creations?

I've found in the chm help file: WindowsTitle for naming purposes.

Usually it suggests commands of the similar category. So im a little lost, and wondered if there are any. What I'd like to do is whilst running in a window ( not fullscreen ), have the close button off from the application bar; as for onething it doesnt actually exit any programs that ive run with it there. Also if a program is designed to only be run in a small window frame, not neccassarily a need to maximize.

Im just using the default settings that FB uses and no dlls. Its a bog standard SetRes proggie So im guessing it's GFXLib - didnt find anything in there. And yes I am relatively new to FreeBasic circles. And if anyone knows if any commands exists, then please I'd love to hear of them.

Cheers and many thanks,
Clyde.
img]http://mike.thebrainroom.net/Avatars/Clyde.png[/img]
Reply
#2
You say that the close button doesnt do anything, so you want to get rid of it.. but hey, why not make it do something ;)

the close button makes inkey$ = CHR$(&HFF,&H6B).


So simply put...

Code:
if inkey$ = CHR$(&HFF,&H6B) then end
Reply
#3
Im saying I'd like to know if its possible to customize the title bar, without getting involved into setting up a Windows API class. Thought perchance there was a way. Seeing as an name can be set.

And thankyou for the info on Inkey being used for the mouse / close. I'll give that a whirl. And Happy Birthday btw.

Cheers,
Clyde.
img]http://mike.thebrainroom.net/Avatars/Clyde.png[/img]
Reply
#4
Afaik you cannot change the appearence of the window without,
tinkering with the gfxlib's source (the parts that sets up the window)
or creating your own window through your favourite api, but then you'll
lose the gfxlib's drawing functions.
/post]
Reply
#5
So basically speaking, you cant have your cake and eat it.
img]http://mike.thebrainroom.net/Avatars/Clyde.png[/img]
Reply
#6
You would have to use the Win32 API to remove the button, and you'd also have to know the window's handle.
\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
Reply
#7
do you mean
WINDOWTITLE "<title goes here>"

?
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#8
Quote:Hi there Smile
I've found in the chm help file: WindowsTitle for naming purposes.
No, he's talking about something else dealing with the close button.
Reply
#9
I think you need the WinAPI command SetWindowLong

If you also look up CreateWindow, you will find the different style constants.
EVEN MEN OF STEEL RUST.
[Image: chav.gif]
Reply
#10
Quote:do you mean
WINDOWTITLE "<title goes here>"

?

*smacks head on desk*

Did you read _anything_ in the orginal or followup posts?

Its over 2 months old anyway! :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)