It is currently Sat Sep 22, 2018 12:31 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Setting Vertical Alignment in ListIconGadget
PostPosted: Sun Sep 09, 2018 1:39 pm 
Offline
User
User

Joined: Sun Jun 10, 2018 12:54 pm
Posts: 43
I am using the Cocoa procedure in the Tips and Tricks section to set the row height of my ListIconGadget items and this works well.

However, the text is aligned to the top of the cell and does not look right. I have been attempting to find the Cocoa function to specify the Vertical Alignment of the rows but cannot work out what I need.

Please will someone advise me the cocoa calls necessary to set the vertical alignment of the rows?

Thanks in advance.


Top
 Profile  
Reply with quote  
 Post subject: Re: Setting Vertical Alignment in ListIconGadget
PostPosted: Mon Sep 10, 2018 7:38 am 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1553
Location: Germany
The easiest way is to utilize the internal Cocoa method _setVerticallyCentered:. The drawback of using this method is that it could simply disappear without warning in future MacOS releases and its use may lead to a rejection in Apple's AppStore!

For the implementation of _setVerticallyCentered: you may take a look into two of my code examples:
viewtopic.php?f=19&t=66854&start=5
viewtopic.php?f=19&t=67017&start=4


Top
 Profile  
Reply with quote  
 Post subject: Re: Setting Vertical Alignment in ListIconGadget
PostPosted: Tue Sep 11, 2018 1:49 pm 
Offline
User
User

Joined: Sun Jun 10, 2018 12:54 pm
Posts: 43
Shardik

Thank you! I have been hunting for the CocoaMessage in the Apple documentation and couldn't find it!

Why are you worried about the function being acceptable to Apple? Is it already deprecated? Have they suggested an alternative?

In the meantime I will use this as it works exactly as I want.

Thanks again.

Simon.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye