Read-only archive of the All About Symbian forum (2001–2013) · About this archive

gButton Control on S80

4 replies · 1,552 views · Started 17 February 2005

gBUTTON only draws a button. There's no action attached to it.

If you want buttons to respond to events, you'll have to program the behaviour yourself. If you can be a little more specific what you want to do, maybe I can provide some sample code.

My problem is that I want to start a program or a function with a gbutton.

gButton "Text",2,100,30,1
eg Start a Program or function

Roman wrote:My problem is that I want to start a program or a function with a gbutton.

In the Subject of your initial post you asked for gBUTTON on Series 80. As Series 80 devices (up to now) have no touchscreen I see no meaningful way to use gBUTTON on Series 80 devices. (The Series 80 SDKs for the PC support pen events, but not the real device.) On user interfaces with a touchscreen, you have to read the pen events (GETEVENT) and handle them appropriate to use gBUTTON.

Martin

Its usefull to start a function with gButton and eg. Esc if you switch from Butoon to Button with Tab.