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°1587

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° 1587  Question: LABEL width

le 20/10/2007 @ 00:03
par Tuka

Anonyme



Hello aldweb,

Will the width of the LABEL be fixed?
Do not you change flexible by the width of the letters?

Please try this code.
CHECKBOX disappears when I put a LABEL after CHECKBOX.


'LABEL.iBAS
{CreatorID "HELO"}
{Version "1.0"}
{PARSER ON}
{CONSOLEFONT OFF}
BEGIN
A$="0123456789"
A$=A$+A$+A$+A$
PRINT A$:PRINT A$:PRINT A$:PRINT A$

CHECKBOX #1,"ABC",1,50,20,16,10
LABEL #2,"1",5,20

LABEL #3,"1",5,43
CHECKBOX #4,"ABC",1,50,43,16,10

WAIT
END


It is the screen of my device.
http://web01.joetsu.ne.jp/~ootuka/pa/iziBasic/HRCapt20071014064953.GIF
  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° 1
--------
le 20/10/2007 @ 19:48
par JoeV

Anonyme

visiteur
Hello Tuka,

I have tried your code and I understand your question. I have changed your code a little to get a better idea of the problem. Try this:

'LABEL.iBAS
{CreatorID "HELO"}
{Version "1.0"}
{PARSER ON}
{CONSOLEFONT OFF}
BEGIN
A$="0123456789"
A$=A$+A$+A$+A$
PRINT A$:PRINT A$:PRINT A$:PRINT A$
WAIT
CHECKBOX #1,"ABC",1,50,20,46,10
WAIT
B$=".........0" : B$=B$+B$+B$+B$+B$+B$+B$
LABEL #2,B$,5,20
WAIT
LABEL #3,"1",5,43
WAIT
CHECKBOX #4,"ABC",1,50,43,46,10
WAIT
END

You made a small error with your checkbox statements but that did not cause your confusion.

It appears Aldweb saves a default minimum number of pixels (or perhaps, characters) for each label statement, up to a maximum of 63. Only Aldweb can tell us for certain how much he reserves.

Regards,
JoeV

  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 20/10/2007 @ 22:04
par Tuka

Anonyme

visiteur
Hello JoeV,

I was able to understand by B$.
I seem to set width to a minimum when there is 63 characters of the smallest width.
Thank you for repairing my small error.
Your message is plain.
Thank you.

Tuka
  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 30/10/2007 @ 18:21
par aldweb

Anonyme

visiteur
It appears Aldweb saves a default minimum number of pixels (or perhaps, characters) for each label statement, up to a maximum of 63. Only Aldweb can tell us for certain how much he reserves.

This is right, because it is required by Palm OS to have the memory size allocated in the case of an update of the label's text (UPDATELABEL). So, the trick I found was to allocate right from the start 63 or 64 characters including some trailing spaces added to the initial text (as defined in the LABEL statement). Otherwise, I would have had to DESTROY the label before assigning it again even when doing a basic UPDATELABEL.

Then, it is true that some glitches over other objects can appear in the case you update a label's text. If you want to avoid that when it occurs (for objects on the right side of a label), you better use the GPRINT statement, in conjunction with a BOXFILLED statement to first erase the area where the text is. To know which area to erase get it by using the FONTWIDTH statement, the font's height being a fixed value for fonts in Palm OS.

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 30/10/2007 @ 22:38
par Tuka

Anonyme

visiteur
Hello aldweb,

Thank you for your message.
I understood it.
  Poster une réponse  Haut
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 ^