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 #1492

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1492  image buttons without the border?

27/11/2006 @ 08:23
by Dave O\'Brien

Anonymous



Is there any way to use an image as a button without having the usual button border drawn around it?

I know I could use a plain IMAGE command, and then capture X-Y pen events on the screen etc., but that seems like too much work.

Does the Palm API support click events on images, or something like that?
  Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n 1
--------
27/11/2006 @ 21:03
by aldweb

Anonymous

visitor
This is very well possible Dave.

I did not include this option in iziBasic's BUTTON syntax, like many other options in the various controls. Otherwise, the syntax for the controls would be gorgeous.

But, since this one is often requested, I will think about a new control to draw buttons without frame, in the next release of iziBasic.

Meanwhile, you will have to use a form designed with Bird (or RsrcEdit), put that kind of button in it, and open it with the OPENFORM statement.
Or a PP applet... Nothing too difficult, I could even design it for you if you wish.

Cheers,
aldweb


@+
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
--------
27/11/2006 @ 23:42
by Dave O\'Brien

Anonymous

visitor
For now, I'm fooling around with this:

- Put a normal button on the screen, with an empty label.
- Put an image on top of it (completely covering it.

The button can be clicked "through" the image, so that's handy - just write a normal handler for the button event.

Clicking it brings the button to the front, so the handler has to mask the button again with another IMAGE command.

This may be good enough until iziBasic offers an IMAGEBUTTON without the frame. Stay tuned... ;^)
  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
--------
29/11/2006 @ 23:01
by aldweb

Anonymous

visitor
Hey Dave, this is a very smart way of doing.

Do you get any display side effect, like seeing the button's frame at some point? (especially if you keep the pen down on the button)

On my side, I checked the options offered by PalmOS when creating dynamically a button. Unfortunately, creating a button without frame would require some tricking on a ButtonFrameType parameter in the ControlAttrType of the button. And there here is what PalmOS specifies: "Your code should treat the ControlAttrType structure as opaque. Use the functions specified in the descriptions below to retrieve and set each value. Do not attempt to change structure member values directly.". The advice is very clear!

Now I remember why I did not offer this option in the BUTTON statement definition!

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
--------
02/12/2006 @ 10:32
by Dave O\'Brien

Anonymous

visitor
The button shows through while the pen is down.

The PUSHBUTTON works better for square button images because it's also square. (Normal BUTTONs are rounded, which doesn't match up so well.)

Seems to work pretty well, all told. Try out the Kaleida app to see it in action.
  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
--------
02/12/2006 @ 18:20
by aldweb

Anonymous

visitor
Hello Dave,

My two children love this Kaleida app

I will dig into your source code to learn how you managed to draw thick lines

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 6
--------
03/12/2006 @ 02:43
by Dave O\'Brien

Anonymous

visitor
For thick lines:
- I offset the starting and ending coordinates 1 pixel up from the original point, and draw a second line.
- I offset them 1 pixel left of the original point, and draw a third line.

For full symmetry, I should also draw the right and bottom offset lines, but I thought that may slow things down too much. The first 2 offsets seem to work well enough.

At some point I'll go back and look at the post about WAITEVENT, to see if I can get the drawing to respond quicker.

I also played around a bit with sound tones tied to X and Y offsets from the center, but I'll have to improve that before enabling it as an option.

Cheers!
  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
--------
03/12/2006 @ 22:38
by aldweb

Anonymous

visitor
Thank you Dave for the explanations.



@+
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
--------
22/12/2006 @ 11:11
by aldweb

Anonymous

visitor
Hello Dave,

Kaleida is a hit!
It is one of the Top 50 downloads at PalmGear this month!
Look here: http://www.palmgear.com/index.cfm?fuseaction=software.top50month

Good job Dave!

Cheers,
aldweb


@+
aldweb
Write to aldweb   Post an answer  Top
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 ^