I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
The b4p imagebutton does NOT support buttonup or buttondown, only the click event..
To Trap those events, you must use the door lib, and add the event from it...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
stop!you not right!imagebutton support buttonup and buttondown!when i creat this event from IDE it's work fine.
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Open the IDE in the form designer, add an image button, select it and choose EVENTS... only the click event is visible FROM WITHIN basic4ppc...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Ok, Sorry!!!
I'm at work and I only have the 5.5 version of the IDE, in my work PC, but remeber that the events name are case sensitive...
So you should try "ButtonUp" and "ButtonDown"....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
i'm try some variants and what i'm see:
when i'm use
Code:
sub app_start form1.show addevent("imagebutton1",ButtonDown,"b1") end sub
sub b1 msgbox(1) end sub
it's not work BUT when i'm use
Code:
sub app_start form1.show addevent("imagebutton1",ButtonDown,"b1") end sub
sub b1 msgbox(1) end sub
sub imagebutton1_ButtonDown
end sub
it's work!!!
but it's not good,my programm contain ~30 buttons
how can i add event without creating it with IDE
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Actually the event names are not case-sensitive in B4ppc. It is only when using the Door library that things become case-sensitive. This seems to be an IDE bug. Both legacy and compiled apps add the event OK (in version 6.42 at least), the IDE doesn't.
agraham please help me!how add 1 event for many imagebuttons?
event "buttondown".i'm use b4p 6.30
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;