aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1033

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1033  Program Icon question (and thanks)

05/01/2005 @ 17:21
by Mike Featherstone

Anonymous



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!)
Write to Mike Featherstone   Post an answer  Top

[]   

StartPrevious [ 1 2 ] NextEnd

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 1
--------
05/01/2005 @ 20:03
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 2
--------
06/01/2005 @ 06:28
by Chuck

Anonymous

visitor
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.
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 3
--------
06/01/2005 @ 09:18
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 4
--------
06/01/2005 @ 15:32
by Mike Featherstone

Anonymous

visitor
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.
Write to Mike Featherstone   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 5
--------
06/01/2005 @ 15:44
by Mike Featherstone

Anonymous

visitor
...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.....
Write to Mike Featherstone   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 6
--------
06/01/2005 @ 16:34
by Mike

Anonymous

visitor
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)
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 7
--------
06/01/2005 @ 17:36
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 8
--------
06/01/2005 @ 17:56
by Mike

Anonymous

visitor
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.
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 9
--------
06/01/2005 @ 18:00
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 10
--------
06/01/2005 @ 18:09
by Mike

Anonymous

visitor
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.
Write to Mike   Post an answer  Top
StartPrevious [ 1 2 ] NextEnd
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^