Weather / Spam / www |
Lyon Weather
aldweb against spam
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1152 |
SUGESTION: ImageButton frame parameter |
08/03/2005 @ 02:07 by Montal
|
Is there a way to include a parameter in the IMAGEBUTTON statement to optional draw the frame of the button?
I mean, as it is now, it always draw the frame. Without it, you can create your custom buttons. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 08/03/2005 @ 07:30 by Leonard Zajaczkowski
visitor |
I was thinking the same thing, a little while ago, then I created my own code to track images on screen, a la dice'em. However, if you added a parameter (0/1) to imagebutton, that would be great. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 08/03/2005 @ 10:26 by Khertan
visitor |
Hum i was thinking for the same things yesterday :) |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 08/03/2005 @ 20:58 by aldweb
visitor |
OK, if you are many to think the same thing... I will start to think about it too!
Meanwhile, I will provide you with my prefered easy answer... give a try to a "PP applet"...
Cheers
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 09/03/2005 @ 00:54 by Leonard Zajaczkowski
visitor |
If I could program in pascal and use the api calls, I don't think I would be using izibasic.
Well, maybe to make fast fixes, oh who am I kidding, I'd still use izibasic.
Just thought I'd give you an answer to your answer. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 09/03/2005 @ 03:06 by Montalvo
visitor |
Hi!
Well I found an easy way to deal with custom buttons using BIRD and the new OPENFORM command.
In BIRD: 1. Create a bitmap for your button. Take note of the dimensions and the ID (you will need it later). For this example, I created a 32x22 px / Depth:2 / ID:300
2. Create a new form. I use a new form with: - width=160 / Height=160 - ID=101 / Usable
3. Into the form, create a new GRAPHIC CONTROL with the following specs: - ID=80 / BitmapID=300 - top=30 / left=30 - width=32 / height=22 - Style=Button / Frame=NoFrame - Enabled / Usable
4. Save your resource file. For this example, I will call it: "Perio-rsc" (Remeber to use Creator=pRES / Type=RESO)
In iziBasic: 5. Let's code the program:
'Perio.ibas {creatorID "mCo8"} {resourcefile "Perio-rsc"}
Begin ' Open the form created in BIRD openform 101 repeat x=doevents 'Did we press the graphic button? 'The graphic control in form has 'ID=80 if x=80 then 'Display a message m$="Bingo!" m=messagebox(m$,0) endif until x=-1 End
6. That's all! Easy, don't you think?
Greetings from Mexico!
Montal-vo
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6 -------- 09/03/2005 @ 08:47 by apdi2003
visitor |
Un grand merci à Montalvo pour cette première explication de l'utilisation des nouvelles instructions comme Openform. Je crois que c'est la source future de la puissance des applications iziBasic, tout en gardant la facilité de la syntaxe haut niveau du langage iziBasic. *
Quel dommage qu'il faille tellement tatonner pour utiliser Bird et tous les objets qu'il manipule. Existe-t'il un ouvrage (en français si possible) qui décrive les objets de PalmOs ?
Merci d'avance. Apdi2003 |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 7 -------- 09/03/2005 @ 10:45 by Khertan
visitor |
For some obvious reason i can t use OPENFORM command, it crash randomly on my T5 on some simple form ...
i make an updatefield on a textfield in the form ... and boum ... Fatal Exception ...
So i create all GUI with iziBasic and ever use OPENFORM ...
So when you make your form ... it s override your all other GUI ... so for me ... it s not the solution ... |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 8 -------- 09/03/2005 @ 12:13 by Mike
visitor |
I suspect that this is more a problem with your form design than with iziBasic on the T5 - I have no problems with mine.
One thing I leaned (from aldweb) is that a textfield on a form needs to be initialised with astring of the maximum length that you wish to use with it i.e. Bird (or whatever you use to define the form) needs to set up an initialisatoion string of the correct length.
Are you doing this? |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 9 -------- 09/03/2005 @ 13:29 by Khertan
visitor |
No i don t do this ...
But ... i ll try ... thanks for the info ... |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 10 -------- 09/03/2005 @ 19:38 by aldweb
visitor |
Complaints about this issue and the solving trick that Mike explained very well... are to be sent to PalmSource!
This kind of issue might also be true for other objects like LABEL if I remember well...
Cheers, aldweb |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|
|
|
|
|