Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 3:35 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to set icon in upper left for a window
PostPosted: Mon Oct 03, 2011 1:22 pm 
Offline
User avatar

Joined: Sat Jun 04, 2011 8:29 am
Posts: 387
In VB6 each form has an icon property that shows in upper left of window... I don't think the mac has that on its windows... but Windows windows need that....

How or where do I set the icon property for a window?

i.e. icon shown in upper left in windows... not sure if that appear on mac or not

And will the mac compiled version just ignore it?

While I'm at it how do you set the icons used by the compiled app that you see in Windows explorer for example... will that be the same icon?

_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.4
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)


Top
 Profile  
Reply with quote  
 Post subject: Re: How to set icon in upper left for a window
PostPosted: Mon Oct 03, 2011 1:37 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
If you use our MBS Plugins, you can use the Window.SetWindowIconMBS method.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: How to set icon in upper left for a window
PostPosted: Mon Oct 03, 2011 4:17 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Isn't that just the application icon? In the project panel, click on App. Then in the properties pane, click on Icon.


Top
 Profile  
Reply with quote  
 Post subject: Re: How to set icon in upper left for a window
PostPosted: Mon Oct 03, 2011 5:53 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I think for OSX it is called a PROXY icon and is in the "center" next to the window title.

I have some code for it.. but it is CARBON declares if you are interested

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: How to set icon in upper left for a window
PostPosted: Mon Oct 03, 2011 5:55 pm 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
On Windows you can do it using API calls: http://www.vbaccelerator.com/home/vb/tips/setting_the_app_icon_correctly/article.asp

This is a question that is regularly posed, so it would be great many people if we could convert that VB6 code to RB.

Pixe

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: How to set icon in upper left for a window
PostPosted: Tue Oct 04, 2011 5:37 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, adding a windows resource to Real Studio apps is difficult.
Our plugin creates a HICON on the fly from a picture and uses it or loads an ico file.

Default is the app icon as Tim wrote.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


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

All times are UTC - 5 hours


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group