Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Assign icons to forms?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2008, 08:00 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default Assign icons to forms?

Dear All,

Is there a way to get Windows (the desktop version ) to show a specific icon (instead of a generic one) on the task bar when your program is running?

I seem to remember that in VB you could assign an icon to a form and then that icon was shown.

All the best / Björn
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 08:28 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Maybe it is possible with agraham's FormExDesktop: http://www.basic4ppc.com/forum/additional-libraries/1175-build-proper-desktop-apps-b4ppc-awesome-forms-library.html
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 09:24 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

No, not as far as I can see unfortunately. Is it something which would be difficult to add? / Björn
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 11:43 AM
Newbie
 
Join Date: Feb 2008
Posts: 7
Default ...

I think,there should be a possible way to change the icon(resource) with 3rd party software such as PEExplorer or Resource Tuner.
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 12:23 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

The form should take the apps icon as default...
After compiling that is..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #6 (permalink)  
Old 02-25-2008, 02:21 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Dear Cableguy,

Hmm, very strange - when I use the native Basic4ppc forms then the icon is used just like you say and shows up on the taskbar. The program I am currently working on uses the FormExDesktop however, it might be that the problem is related to that?

Has anyone else seen this behaviour?


Dear TomasNM, thank you for your suggestions but I think that looks a little bit too advanced for my taste - I was hoping for a simpler solution.


all the best / Björn
Attached Images
File Type: jpg On task bar.jpg (7.5 KB, 25 views)
Reply With Quote
  #7 (permalink)  
Old 02-25-2008, 04:54 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by BjornF View Post
The program I am currently working on uses the FormExDesktop however, it might be that the problem is related to that?
It is. It's not a problem as such, I just didn't implement that. I'll look into it.
Reply With Quote
  #8 (permalink)  
Old 02-25-2008, 05:10 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Version 1.4 of FormExDesktop supporting a Form icon.

New write-only property "Icon". Use as

Code:
FormEx1.Icon = AppPath & "\anicon.ico"
Attached Files
File Type: zip FormExDesktop1.4.zip (9.3 KB, 28 views)

Last edited by agraham : 02-25-2008 at 05:53 PM.
Reply With Quote
  #9 (permalink)  
Old 02-25-2008, 05:57 PM
Newbie
 
Join Date: Feb 2008
Posts: 7
Default ...

Using resource editor is not so difficult,as it seems. Simply open your compiled exefile with kind editor and change the icon using that software. Nothing difficult,realy. I will try to get some editor,I'll let you know and I'll write step by step tutorial how-to. Of course,if it will work. Anyway I think,that should do.
Reply With Quote
  #10 (permalink)  
Old 02-25-2008, 06:26 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by TomasNM View Post
Using resource editor is not so difficult,as it seems. Simply open your compiled exefile with kind editor and change the icon using that software. Nothing difficult,realy. I will try to get some editor,I'll let you know and I'll write step by step tutorial how-to. Of course,if it will work. Anyway I think,that should do.
I've just used ResHacker to replace the .ico in an optimized compiled desktop app.
{The new icon is visible in Windows Explorer}
When I run the app, the original .ico is still visible in the app and taskbar, if I load the hacked app back into ResHacker, the original .ico is not there ?????

I've just used ResHacker to replace the .ico in a non optimized compiled desktop app.
{The new icon is not visible in Windows Explorer}
When I run the app, the original .ico is still visible in the app and taskbar, if I load the hacked app back into ResHacker, the original .ico is not there ?????

Which i found rather strange
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk

Last edited by taximania : 02-25-2008 at 06:48 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icons RandomCoder Code Samples & Tips 4 04-24-2009 12:52 PM
90x90 icons for VGA devices Cableguy Basic4ppc Wishlist 1 12-19-2008 12:54 AM
Icons Bobbes German Forum 14 10-29-2007 07:12 PM
Assign value (numeric) to combox's items? kyto Questions (Windows Mobile) 17 08-17-2007 08:57 PM
Icons in menu editor (designer) Alex812 Basic4ppc Wishlist 1 08-11-2007 09:30 AM


All times are GMT. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0