Is there a more complex example of a data entry ui in pharo? Spec would be ok but everything will do. thanks, Norbert
Hernan,
Am 25.12.2014 um 19:23 schrieb Hernán Morales Durand <hernan.morales@gmail.com>:
Hi Norbert, Can you provide an example what do you expect to see?
nothing special. A windowed app with let's say 5 different text and other entry fields (dates, numbers, geo coordinates,...). A modal dialog window wouldn't harm. I want to see the way how to set up such an app, how the layout is organized, how the components are wired for events and how the input components are customized, Norbert
Cheers,
Hernán
2014-12-25 13:32 GMT-03:00 Norbert Hartl <norbert@hartl.name>:
Is there a more complex example of a data entry ui in pharo? Spec would be ok but everything will do.
thanks,
Norbert
Norbert, The standard image is using Spec in many places and there are examples (although pretty basic IMO). If you want to perform validation you can check a project I am working on, it's called "Query Builder" http://www.smalltalkhub.com/#!/~hernan/QueryBuilder but you may want to have it as last resource because it lacks tests and examples, although I have been using it for a while without problems. For the events you can check (at least in Pharo 3.0) : ProtocolViewer new openWithSpec For a basic form layout in rows you could start from a DynamicComposableModel and then grow from there by specializing required Spec methods in a ComposableModel (#defaultSpec, #initializeWidgets, #title, #extent, etc): " Configure the Spec models " view := DynamicComposableModel new instantiateModels: #(labelA LabelModel textA TextInputFieldModel labelB LabelModel textB TextInputFieldModel); extent: 500@200; title: 'Title' yourself. " Configure the Spec layout " layout := SpecLayout composed newColumn: [ : r | r add: #labelA; add: #textA; add: #labelB; add: #textB ]; yourself. " Set up the widgets " view labelA text: 'A'. view labelB text: 'B'. " Open the Window " (view openDialogWithSpecLayout: layout) centered; modalRelativeTo: World. Cheers, Hernán 2014-12-25 16:02 GMT-03:00 Norbert Hartl <norbert@hartl.name>:
Hernan,
Am 25.12.2014 um 19:23 schrieb Hernán Morales Durand < hernan.morales@gmail.com>:
Hi Norbert, Can you provide an example what do you expect to see?
nothing special. A windowed app with let's say 5 different text and other entry fields (dates, numbers, geo coordinates,...). A modal dialog window wouldn't harm. I want to see the way how to set up such an app, how the layout is organized, how the components are wired for events and how the input components are customized,
Norbert
Cheers,
Hernán
2014-12-25 13:32 GMT-03:00 Norbert Hartl <norbert@hartl.name>:
Is there a more complex example of a data entry ui in pharo? Spec would be ok but everything will do.
thanks,
Norbert
participants (2)
-
Hernán Morales Durand -
Norbert Hartl