မဟာဘုတ္ ေဗဒင္ project
မူရင္းcode ေတြကိုေတာ့ ဆရာညီညီလြင္ဆီကရတာပါ ျမန္မာခုႏွစ္ကေန အဂၤလိပ္ခုႏွစ္ ရေအာင္တြက္နည္းcodeထပ္ျဖည့္ၿပီး ေဟာကိန္း ေတြကို ေလာကီၫြန္႔ေပါင္းက်မ္းထဲကေနျမန္မာလိုျပန္ထားပါတယ္ color ေတြလဲထည့့္ထားပါတယ္
:-) :-)
မူရင္းcode ေတြကိုေတာ့ ဆရာညီညီလြင္ဆီကရတာပါ ျမန္မာခုႏွစ္ကေန အဂၤလိပ္ခုႏွစ္ ရေအာင္တြက္နည္းcodeထပ္ျဖည့္ၿပီး ေဟာကိန္း ေတြကို ေလာကီၫြန္႔ေပါင္းက်မ္းထဲကေနျမန္မာလိုျပန္ထားပါတယ္ color ေတြလဲထည့့္ထားပါတယ္
MAIN
########
########
AddLabel("lb1",2.6%x,1.4%y,47.6%x,8.6%y,"")
AddEditText("edt1",53.1%x,1.3%y,44.2%x,8.6%y,"")
AddLabel("lb2",2.7%x,11.5%y,36.4%x,8.2%y,"")
AddSpinner("spn1",42.4%x,11.4%y,54.5%x,8.5%y,"")
AddButton("btn1",2.5%x,22.5%y,49.4%x,8.9%y,"")
AddButton("btn2",54.6%x,22.4%y,42.1%x,8.9%y,"")
AddScrollView("sv1",0%x,33.9%y,100%x,66.1%y,"")
AddEditText("edt1",53.1%x,1.3%y,44.2%x,8.6%y,"")
AddLabel("lb2",2.7%x,11.5%y,36.4%x,8.2%y,"")
AddSpinner("spn1",42.4%x,11.4%y,54.5%x,8.5%y,"")
AddButton("btn1",2.5%x,22.5%y,49.4%x,8.9%y,"")
AddButton("btn2",54.6%x,22.4%y,42.1%x,8.9%y,"")
AddScrollView("sv1",0%x,33.9%y,100%x,66.1%y,"")
SetText("lb1","ျမန္မာေမြးႏွစ္ထည့္ရန္" )
SetText("lb2","ေမြးေန႔ေရြးခ်ယ္ပါ" )
SetInputType("edt1",2)
Add( "spn1","တနဂၤေႏြ")
Add( "spn1","တနၤလာ")
Add( "spn1","အဂၤါ")
Add( "spn1","ဗုဒၶဟူး")
Add( "spn1","ၾကာသပေတး")
Add( "spn1","ေသာၾကာ")
Add( "spn1","စေန")
Add( "spn1","တနၤလာ")
Add( "spn1","အဂၤါ")
Add( "spn1","ဗုဒၶဟူး")
Add( "spn1","ၾကာသပေတး")
Add( "spn1","ေသာၾကာ")
Add( "spn1","စေန")
SetText( "btn1","တြက္ခ်က္မယ္")
SetText( "btn2","ဖ်က္မယ္")
GetPanel("sv1","pnl")
AddLabel("lb3",2%x,0%y,96%x,100%y,"pnl")
AddLabel("lb3",2%x,0%y,96%x,100%y,"pnl")
dim h(7)
mhbdata
SetActivityTitle("မဟာဘုတ္ေဗဒင္")
mhbdata
SetActivityTitle("မဟာဘုတ္ေဗဒင္")
AddMenuItem("about")
AddEditText("ed",1%x,75%y,100%x,15%y,"")
SetHint("ed","ျမန္မာေမြးႏွစ္မသိပါက အဂၤလိပ္ခုႏွစ္ထည့္၍တြက္ပါ")
SetHint("ed","ျမန္မာေမြးႏွစ္မသိပါက အဂၤလိပ္ခုႏွစ္ထည့္၍တြက္ပါ")
AddButton("m",10%x,90%y,80%x,10%y,"")
SetText("m","ျမန္မာေမြးႏွစ္တြက္မယ္")
########
EVENT
########
SetText("m","ျမန္မာေမြးႏွစ္တြက္မယ္")
########
EVENT
########
Sub Button_Click(who)
Select who
Select who
Case "btn1"
y=GetText("edt1")
y=GetText("edt1")
out=y
y=y mod 7
y=y mod 7
if y=0 then
y=7
end if
e=Getselectedindex("spn1")+1
y=7
end if
e=Getselectedindex("spn1")+1
out=out & "/" & getselectEdItem("spn1") & " --> "
if y=e then
house="ဘဂၤ" & " == " & h(0)
else if y=e+3 or y=e-4 then
house="အဓိပတိ" & " == " & h(6)
else if y=e+6 or y=e-1 then
house="ပုတိ" & " == " & h(5)
else if y=e+2 or y=e-5 then
house="ရာဇ" & " == " & h(4)
else if y=e+5 or y=e-2 then
house="သိုက္" & " == " & h(3)
else if y=e+1 or y=e-6 then
house="အထြန္း" & " == " & h(2)
else if y=e+4 or y=e-3 then
house="မရဏ" & " == " & h(1)
end if
house="ဘဂၤ" & " == " & h(0)
else if y=e+3 or y=e-4 then
house="အဓိပတိ" & " == " & h(6)
else if y=e+6 or y=e-1 then
house="ပုတိ" & " == " & h(5)
else if y=e+2 or y=e-5 then
house="ရာဇ" & " == " & h(4)
else if y=e+5 or y=e-2 then
house="သိုက္" & " == " & h(3)
else if y=e+1 or y=e-6 then
house="အထြန္း" & " == " & h(2)
else if y=e+4 or y=e-3 then
house="မရဏ" & " == " & h(1)
end if
SetText("lb3",out & house)
AdjustLabelHeight("lb3")
SetHeight("pnl",GetHeight("lb3"))
Case "btn2"
SetText("lb3","")
SetText("edt1","")
AdjustLabelHeight("lb3")
SetHeight("pnl",GetHeight("lb3"))
Case "btn2"
SetText("lb3","")
SetText("edt1","")
Case"m"
q=GetText("ed")
ans=q-638
SetText("edt1",ans)
q=GetText("ed")
ans=q-638
SetText("edt1",ans)
End Select
End Sub
End Sub
============
"data" module
==========
Sub mhbdata
h(0)="ဘဂၤဖြားမွာ ပ်က္ျပားစြာ ေမြးကာ လာရမည္ ၾကံစည္ျပဳကာ ပ်က္တတ္တာ ေသခ်ာမွတ္ရမည္"
==========
Sub mhbdata
h(0)="ဘဂၤဖြားမွာ ပ်က္ျပားစြာ ေမြးကာ လာရမည္ ၾကံစည္ျပဳကာ ပ်က္တတ္တာ ေသခ်ာမွတ္ရမည္"
h(1)="မရဏဖြားမွာ ေ၀ဒနာ ေမြးကာမ်ားလတ္မည္ မေလေၾကလတ္ မင္းျဖစ္တတ္ မုခ်မွတ္ရမည္"
h(2)="အထြန္းဖြားမွာ ထင္႐ွားစြာ ေမြးကာလာတတ္သည္
နာမည္ သတင္း ထင္႐ွားျခင္း မယြင္းျဖစ္လတ္မည္"
နာမည္ သတင္း ထင္႐ွားျခင္း မယြင္းျဖစ္လတ္မည္"
h(3)="သိုက္ဖြားသူမွာ ကုသလာ ျပဳကာဖြားလတ္မည္ ေဏာင္း၀ယ္ေဖာက္ကား ကုန္သြယ္စား မမွားျဖစ္ရမည္"
h(4)="ရာဇဖြားမွာ ထက္ျမတ္စြာ စိတ္မွာလ်င္ရမည္ ပန္းခ်ီပန္းပု ႏႈတ္မႈ လက္မႈ တတ္မႈစံုလိမ့္မည္"
h(5)="ပုတိဖြားမွာ ၿငိဳျငင္စြာ ေမြးကာ ဖြားလတ္မည္ ေ၀းရပ္ျခားရြာ အိမ္ေထာင္မွာ ျပဳကာေနရမည္ ႏွေျမာတြန္႔တို ၀န္လဲတို စိတ္တို ဆတ္လိမ့္မည္"
h(6)="အဓိပတိဖြား လူအမ်ား မမွား အုပ္စ္ိုးမည္ ရဟန္း႐ွင္လူအမ်ားလူ ၾကည္ျဖဴၫြတ္ခမည္"
End Sub
Sub Label_Click(Who)
End Sub
End Sub
Sub Spinner_ItemClick(who, pos, value)
End Sub
End Sub
Sub Edit_Change(Who, Old, New)
End Sub
End Sub
Sub Edit_Enterpressed(who)
End Sub
End Sub
Sub Menu_Click(Which)
MsgBox("This apk is created by balabala","")
End Sub
End Sub

Comments
Post a Comment