aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1033

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1033  Program Icon question (and thanks)

le 05/01/2005 @ 17:21
par Mike Featherstone

Anonyme



Congratulations on v4.0! You've been burning the midnight oil I think. The MegaString is good as now I can pack 512b into my T5 512b memory sectors (if I needed to....which I don't yet). Also, I like the idea of Menu's but I guess I'll have to look at BIRD for those.

Also, thanks for the work on PIAF. I adopted that editor once iziBasic started halting compilation in the middle of my memos (on a T5 - must be the big memo files. I now understand). An integrated editing/compilation suite is most useful.

Looks like my review needs a serious update...


Regarding program icons:

Is there a way to link in a program icon from an external file at compilation, or must I edit the icon in the target application?

My problem with such editing is that the icon will then be lost next time I re-compile. (I tinker with my code to a great degree!)
Ecrire à Mike Featherstone   Poster une réponse  Haut

[]   

DébutPrécédent [ 1 2 ] SuivantFin

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 05/01/2005 @ 20:03
par aldweb

Anonyme

visiteur
Thanks Mike for posting a great news at www.Palm247.com. I was lucky to be with no wife and children during the week between Christmas and New Year's day... so I could work very late at night during 5 consecutive nights

At compilation, you may of course link a program icon to avoid rebuilding them over and over. You just need to put them in a resource file, and link that resource file to your main program with the RESOURCEFILE compiling directive.

Some sample programs do that, in addition to other types of resources. But, iBAddress for instance only adds the large and small program icons. Using BIRD, then just give a look to the iBAddress.rsrc file.
And, with PIAF, look at the top of the iBAddress.ibas file, at the RESOURCEFILE line.

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 06/01/2005 @ 06:28
par Chuck

Anonyme

visiteur
A brute force method I used was to have a dummy program that I edited the icon on and then used RsrcEdit to copy the icon from the dummy program to the real program after compiling.
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 06/01/2005 @ 09:18
par aldweb

Anonyme

visiteur
Hello Chuck,

Why use a brute force when a smooth way was built on purpose?

Well, I start to think that I should write a quick tutorial to explain how to build a resource file with the appl's icons and how to link it with an iziBasic source code...

And, then, as an extension: how to build NOTICEBOX, MENU, etc... Because iziBasic relies in many advanced features on the ability of RsrcEdit or BIRD to build so called 'resources'.

And this, even though one of the great strengths of iziBasic is to be able to design many things directly (like LABEL, BUTTON, NUMFIELD, etc...).

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 06/01/2005 @ 15:32
par Mike Featherstone

Anonyme

visiteur
I'm surprised, it's actually very easy!

Here's what I did (using BIRD):

1. I created a new resource file.
2. Within that I created a new bitmap item.
3. Within that I created a new picture of appropriae size and resolution
4. I then changed the type of the bitmap from 'Tbmp' to 'tAIB'
5 I made sure its number was 1000

Once the compilation completed and the resource file was added to my program, it displays quite happily with my new Icon!

I'm going to add a menu now.
Ecrire à Mike Featherstone   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 06/01/2005 @ 15:44
par Mike Featherstone

Anonyme

visiteur
...of course if I'd created an Icon instead of a bitmap in the first place I wouldn't have had to rename anything at all!

What I can't do, having created an icon, is make it appear centrally over the program name. I'm stuck with it appearing on the left side of the name, no matter how big I make it. There must be another setting somewhere.....
Ecrire à Mike Featherstone   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 06/01/2005 @ 16:34
par Mike

Anonyme

visiteur
Correction:

72 dpi Icons are centred nicely.

144 dpi Icons are displayed only in the left hand half of the available space.

Is this something I can change, or is this a problem with 4.0? (Sorry to cast doubt on your software - I can't think of anything else to try though)
Ecrire à Mike   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 7
--------
le 06/01/2005 @ 17:36
par aldweb

Anonyme

visiteur
Mike,

You did not find another bug to iziBasic this time, sorry for that!

Your way of doing for tAIB 1000 is the right way of doing. You could write the tutorial then. That would be great to share it with all other iziBasic developers

Now, your centering trouble is linked to the fact that these tAIB icons MUST HAVE a very precise size:

As for the main icon, it must be a tAIB 1000 resource (you got this right) with a 32x22 pixels size for low res, and 64x44 pixels size for high res.

As for the small icon (for list views), it must be a tAIB 1001 resource, with a 9x9 pixels size for low res and 18x18 pixels size for high res.

Don't ask me why, these are Palm OS standards I guess...

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 8
--------
le 06/01/2005 @ 17:56
par Mike

Anonyme

visiteur
That did it - thanks.

I'd be happy to write a short tutorial for creating an Icon resource and integrating into an iziBasic application.

I'll send you the text when complete.
Ecrire à Mike   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 9
--------
le 06/01/2005 @ 18:00
par aldweb

Anonyme

visiteur
That is very nice of you Mike.
I know that you write very well in English

By the way, out of the 2 weaknesses you had found in iziBasic during your sharp and great review, do you think my efforts were enough in the user manual area to remove one of these 2 weak bullet points?

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 10
--------
le 06/01/2005 @ 18:09
par Mike

Anonyme

visiteur
I think so.

Seriously, I've scheduled the review for an update anyway - so many more functions! I have a couple to complete first however (plus an iziBasic tutorial!) so it may not get addressed immediately.
Ecrire à Mike   Poster une réponse  Haut
DébutPrécédent [ 1 2 ] SuivantFin
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^