我有同樣的問題,並發現一個簡單的解決方法:只要確保創建的順序是您的標籤順序。您可以通過編輯(文本)表單文件(.fmx)來完成此操作。(按在窗體設計模式F12) 例如: 如果你有一個表格只有3編輯控制了這個樣子的:
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 154
ClientWidth = 215
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [dkDesktop, dkiPhone, dkiPad]
DesignerMobile = False
DesignerWidth = 0
DesignerHeight = 0
DesignerDeviceName = ''
DesignerOrientation = 0
DesignerOSVersion = ''
object Edit1: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 0
Position.X = 40.000000000000000000
Position.Y = 88.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
object Edit2: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 40.000000000000000000
Position.Y = 56.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
object Edit3: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 2
Position.X = 40.000000000000000000
Position.Y = 24.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
end
標籤順序EDIT1 :, EDIT2:,EDIT3:
如果將其更改爲:
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 154
ClientWidth = 215
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [dkDesktop, dkiPhone, dkiPad]
DesignerMobile = False
DesignerWidth = 0
DesignerHeight = 0
DesignerDeviceName = ''
DesignerOrientation = 0
DesignerOSVersion = ''
object Edit1: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 0
Position.X = 40.000000000000000000
Position.Y = 88.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
object Edit3: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 2
Position.X = 40.000000000000000000
Position.Y = 24.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
object Edit2: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 40.000000000000000000
Position.Y = 56.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
end
end
比Tab順序是EDIT1 :, EDIT3:,EDIT2:不管是什麼的TabOrder屬性的值是
感謝您的qc鏈接。我開始手動操作,但有50個控件,其中一些隱藏了一些時間,它非常繁瑣。我必須看看是否有一種方法可以通過編程實現,Taborder已經存在。我需要通過所有的控制,看看下一個是誰。或者可以將它們存儲在一個數組中。再次感謝您的幫助 – ettore
請注意[QualityCentral現在已關閉](https://community.embarcadero.com/blogs/entry/quality-keeps-moving-forward),因此您無法訪問'qc.embarcadero .com'鏈接了。如果您需要訪問舊的QC數據,請查看[QCScraper](http://www.uweraabe.de/Blog/2017/06/09/how-to-save-qualitycentral/)。 –