-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Creating independent editboxs in a toolbar
Home > Community > Automation and VBA > Creating independent editboxs in a toolbar
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 17 Jahren, 8 Monaten von Jean Dalmayrac aktualisiert.
-
AutorBeiträge
-
März 22, 2007 um 6:18 pm Uhr #12407Jean DalmayracMitglied
I’m trying to create a toolbar with 3 editBoxs via VBA. Here is the code :
Dim emaToolBar As CommandBar
Dim myCombobox As CommandBarComboBox
Dim angle1List As CommandBarComboBox
Set emaToolBar = Application.CommandBars.Add(“Custom”, fpBarPositionTop, True)
Set btnUp = emaToolBar.Controls.Add(Type:=fpControlTypeButton)
Set btnUp = emaToolBar.Controls.Add(Type:=fpControlTypeButton)
Set angle1List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
Set angle2List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
Set angle3List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
But when I change the content of one of the editBoxs, the 2 others change at the same time and display the same value as the first one.
Could you please explain me how to create 3 independent editboxs in the same toolbar.
Thanks,Jean
März 22, 2007 um 6:18 pm Uhr #8090Jean DalmayracMitgliedI’m trying to create a toolbar with 3 editBoxs via VBA. Here is the code :
Dim emaToolBar As CommandBar
Dim myCombobox As CommandBarComboBox
Dim angle1List As CommandBarComboBox
Set emaToolBar = Application.CommandBars.Add(“Custom”, fpBarPositionTop, True)
Set btnUp = emaToolBar.Controls.Add(Type:=fpControlTypeButton)
Set btnUp = emaToolBar.Controls.Add(Type:=fpControlTypeButton)
Set angle1List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
Set angle2List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
Set angle3List = emaToolBar.Controls.Add(Type:=fpControlTypeEdit)
But when I change the content of one of the editBoxs, the 2 others change at the same time and display the same value as the first one.
Could you please explain me how to create 3 independent editboxs in the same toolbar.
Thanks,Jean
März 23, 2007 um 11:28 pm Uhr #8673Bernhard KantzTeilnehmerThe reason for the synchronization of the controls is that you also can add several built-in edit controls or combo boxes to one or different custom toolbars. In this case the contents of the controls has to be synchronized as they have all to be in sync with the current selection.
Of course this is not correct for custom edit controls or combo boxes. We will fix this behavior in the next release of FlexPro.
Thanks for reporting this issue.Support
support@weisang.com -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.