Kexi/Handbook/Building Simple Databases/Designing Forms/Actions/da: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
(Importing a new version from external source)
Line 12: Line 12:
# Gå til formularens designvisning, hvis du ikke allerede er dér.
# Gå til formularens designvisning, hvis du ikke allerede er dér.
# Vælg en eksisterende knapkontrol ved at klikke på den eller placér en ny knapkontrol på formularen. Hvis du indsatte en ny knap, så angiv dens titel og tast <keycap>Enter</keycap>.  
# Vælg en eksisterende knapkontrol ved at klikke på den eller placér en ny knapkontrol på formularen. Hvis du indsatte en ny knap, så angiv dens titel og tast <keycap>Enter</keycap>.  
# Click the button widget with the right mouse button to display the context menu.  
# Højreklik på knapkontrollen for at få kontekstmenuen frem.  
# From the context menu select <menuchoice>Assign action...</menuchoice> command.  
# From the context menu select <menuchoice>Assign action...</menuchoice> command.  
# An '''Assigning Action to Button''' dialog window will appear presenting a list of available actions. One of the actions is selected if the widget already has action assigned. Otherwise the '''Action category''' list has the <menuchoice>No action</menuchoice> item selected.  
# An '''Assigning Action to Button''' dialog window will appear presenting a list of available actions. One of the actions is selected if the widget already has action assigned. Otherwise the '''Action category''' list has the <menuchoice>No action</menuchoice> item selected.  

Revision as of 11:16, 20 April 2012

Other languages:

Handlinger

En handling er en enkelt, isoleret aktivitet i programmet, som brugeren kan udføre. Den kan også udføres automatisk som følge a en given handling (fx efter åbning af en formular).

Tildeling af handlinger til knapper i formularer

Knapper i formularer kan tildeles mange handlinger. Den tildelte handling udføres når der klikkes på knappen.

For at tildele en handling:

  1. Gå til formularens designvisning, hvis du ikke allerede er dér.
  2. Vælg en eksisterende knapkontrol ved at klikke på den eller placér en ny knapkontrol på formularen. Hvis du indsatte en ny knap, så angiv dens titel og tast Enter.
  3. Højreklik på knapkontrollen for at få kontekstmenuen frem.
  4. From the context menu select Assign action... command.
  5. An Assigning Action to Button dialog window will appear presenting a list of available actions. One of the actions is selected if the widget already has action assigned. Otherwise the Action category list has the No action item selected.
  6. From the Action type list select Application actions item. Available application-wide actions will be listed.
  7. Select one of the actions on the list (e.g. Delete Selected object).

After switching to the form's data view you can try whether the action works.

Note

* To remove an action assignment, select the No action item from the Action category list of the Assigning Action to Button dialog window.
  • Actions only work in the form's data view. Not every action's assignment is reasonable. For example, the Font... action is available in data view, but only if you have a widget selected in the Design view. If you make changes to the font settings the changes are applied to the text of that selected widget.