Jim McKeeth在Embarcadero展示的範例。
原始碼下載(source code) >> Download
大型網站架構..net 架構師.rabbitMQ.redis.行動開發.APP開發教學.PHP Laravel開發..net core C# 開發.架構師之路.Delphi開發.資料庫程式.進銷存.餐飲POS系統
Jim McKeeth在Embarcadero展示的範例。
原始碼下載(source code) >> Download
方式一:使用user_agent跟redirect
[php]
$this->load->library(‘user_agent’);
$this->load->helper(‘url’);
if ($this->agent->browser() == ‘Internet Explorer’ and $this->agent->version() <= 7)
redirect(‘/unsupported-browser’);
[/php]
方式二:使用 http://mobiledetect.net
[php]
$this -> load -> library(‘Mobile_Detect’);
$detect = new Mobile_Detect();
if ($detect->is(‘Chrome’) || $detect->is(‘iOS’)) {
}
[/php]
寫了Delphi多年,常常是有許多library是開新專案就會use進來的,避免重覆開發輪子的冏境。
Jim McKeeth 整理了一篇「Indispensable Delphi Libraries」,列出他不可缺少的Library。如果要筆者加上的話,大概是一些商用元件像TMS、Infopower這類的元件吧:)
許多餐飲或是快餐POS系統都會提供拖曳去更改按鈕排序!
在Delphi可不可以做得到呢?當然是簡單的~
1)MouseDown事件加上
(sender as tbutton).BeginDrag(false);
2)DragOver事件加上
if source is TButton then
Accept:=true;
3)DragDrop事件加上 >> 互換對方的caption
if Sender is TButton then begin
TempCaption := TButton(Source).Caption;
TButton(Source).Caption := TButton(Sender).Caption;
TButton(Sender).Caption := TempCaption;
end;
架設網站除了自己架設主機外,還有一種方式是租用主機(虛擬主機、雲端主機….)。尤其遇到像筆者一樣比較想專心在程式上的人(明明就是懶)。或是一開始流量小的網站都可以考慮用這樣的方式。
筆者自己倒是喜歡用遠振資訊的主機服務架設網站,目前遠振有推出雲端主機服務的方案。朋友們可以參考看看!
官方網站: 遠振資訊
Delphi 支援 Android / iOS的行動裝置開發已經一段時間了!許多人好奇開發出來的APP到底可不可以在 Google Play 或是 Apple Store上架?
Embarcadero整理了一個「RAD Studio Application Showcase」網頁,讓大家知道有那些已上架的APP。
當然如果您要回報你使用Delphi、C++ Builder或RAD Studio開發且上架的程式,也可以透過這個表單送出。
由於比較常在Facebook上出沒,所以索性在Facebook建了一個「Delphi Developer【Delphi開發者】」,主要討論的是所有Delphi開發的大小事以及新知。
也期待有更多人踏入Delphi for Mobile的開發 🙂
在 TMS Software 看到TMSFMXZBarReader這個元件,只要在要出現Barcode Scanner的地方寫一行
TMSFMXZBarReader1.show
取得掃到的內容則是在TMSFMXZBarReader的GetResult的AResult(文字)
元件下載網址: http://www.tmssoftware.net/public/TMSFMXZBarReaderPkgDXE5.zip
相關網址:
ZBar bar code reader