Saturday, December 16, 2017

#1 2017-10-09 05:46:25 am

Chrismacteam
Member
From:: France
Registered: 2010-09-27
Posts: 54
Website

Title Bar of a window

Hello
2 Questions about modifient the title bar in Xcode :
- Is it possible to add an image in the title bar of the window
- Can i change the size and also make it bold

Also, if i hide the title bar, i can't move it anymore when in use. Why ?

Thanks


Infographiste Freelance Packaging

Offline

 

#2 2017-10-11 08:44:09 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

Re: Title Bar of a window

Chrismacteam wrote:

- Is it possible to add an image in the title bar of the window



Not unless it represents a file, in which case an icon can be used.

- Can i change the size and also make it bold



No. The whole idea is that items should look and behave consistently.

Also, if i hide the title bar, i can't move it anymore when in use. Why ?



You need to set the movableByWindowBackground property to true.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#3 2017-10-12 09:17:03 am

Chrismacteam
Member
From:: France
Registered: 2010-09-27
Posts: 54
Website

Re: Title Bar of a window

Hi Shane
One more time, thanks for your Help !
- I have Icns file in my project but th drag an drop doesn't work in  Xcode
Should i make it by code or can i use Xcode interface (MainLib)
-How to move window "movableByWindowBackground" ?
Is it a parameter i allow at the start of the soft, or should i allow every time i show  a new window
Regards


Infographiste Freelance Packaging

Offline

 

#4 2017-10-12 06:33:44 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

Re: Title Bar of a window

Chrismacteam wrote:

- I have Icns file in my project but th drag an drop doesn't work in  Xcode
Should i make it by code or can i use Xcode interface (MainLib)



It will have to be in code. Have a look at standardWindowButton: -- that might give you a reference to the button with the image, and if so you can try changing the image.

-How to move window "movableByWindowBackground" ?
Is it a parameter i allow at the start of the soft, or should i allow every time i show  a new window


Every time you create a new window.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)