Search Box ေလးလုပ္ခ်င္တယ္ဆိုလို႔ပါ လိုခ်င္တဲ့ပံုစံရမရေတာ့မသိဘူး အတတ္ႏိုင္ဆံုးေတာ့လုပ္ျပထားပါတယ္
:-)
လူနာမည္႐ိုက္ထည့္ၿပီး search လိုက္ရင္ သူ႔ရဲ႕ info က်လာမယ္ အဲလိုမ်္ိ ုးပါ .db file နဲ႔ဘဲလုပ္ထားတာပါ db file ထဲမွာ အရင္ေရးၿပီး bmp နဲ႔ run တာပါ Gp ထဲမွာ file လုပ္နည္းတင္ေပးထားပါတယ္
:-) အဆင္ေျပမယ္လို႔ထင္ပါတယ္
:-) :-)
Main
AddButton("a",10%x,40%y,80%x,20%y,"")
AddEditText("ed",0%x,0%y,80%x,10%y,"")
AddButton("b",79%x,0%y,21%x,10%y,"")
SetText("b","Search")
SetTextSize("b",17)
SetText("b","Search")
SetTextSize("b",17)
Event
Sub Activity_Pause(UserClosed)
End Sub
End Sub
Sub Activity_Resume
End Sub
End Sub
Sub Label_Click(Who)
End Sub
End Sub
Sub Button_Click(Who)
Select Who
Case "b"
fileCopy("AssetsDir","serach.db",FileDirRootExternal,"a.db")
LoadDb(FileDirRootExternal,"a.db")
q =GetText("ed")
w=getrowdb("search WHERE target=" & chr(39) & q & chr(39) ,"info")
SetText("a",w)
Select Who
Case "b"
fileCopy("AssetsDir","serach.db",FileDirRootExternal,"a.db")
LoadDb(FileDirRootExternal,"a.db")
q =GetText("ed")
w=getrowdb("search WHERE target=" & chr(39) & q & chr(39) ,"info")
SetText("a",w)
End Select
End Sub
Sub Button_LongClick(Who)
End Sub
End Sub
Sub Button_LongClick(Who)
End Sub
Sub Edit_Change(Who, Old, New)
End Sub
End Sub
Sub Edit_Enterpressed(who)
End Sub
End Sub
Sub Panel_Click(Who)
End Sub
End Sub
Sub Activity_KeyPress(key)
If key=4 Then
b=MessageBox("Do You Want To Exit?","EXIT!","Ok","Cancel","")
If b=-1 Then
ActivityFinish
End If
Else If key=82 Then
OpenMenu
End If
End Sub




Comments
Post a Comment