|
|
От: | achp | |
| Дата: | 31.10.04 15:33 | ||
| Оценка: | 1 (1) | ||
|
|
От: |
AndrewVK
|
http://blogs.rsdn.org/avk |
| Дата: | 31.10.04 16:04 | ||
| Оценка: | |||
|
|
От: |
VladD2
|
www.nemerle.org |
| Дата: | 31.10.04 17:50 | ||
| Оценка: | |||
|
|
От: |
Undying
|
|
| Дата: | 31.10.04 18:06 | ||
| Оценка: | |||
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 31.10.04 18:48 | ||
| Оценка: |
24 (4)
|
||
To change these visual properties, a control property inspector is used. It is opened by selecting a control and then issuing Edit->Object Properties... (Windows) or Edit->Part Info (Mac OS), respectively. Edit the "label" field in order to change the selected control's label, and click on the default button to make the change permanent.
It is opened by selecting a control and then issuing Edit->Object Properties... (Windows) ...
...make sure to call Layout->Sort Views
As a convention, the dialog box layouts of all examples are saved in directory Obx/Rsrc. In this case, we save the new dialog box as Obx/Rsrc/PhoneUI.
When you are happy with the layout,...
The directory name Rsrc stands for "Resources"...
...every control must first be linked to its corresponding interactor field...
When a control is linked ... then the module to which the control should be linked must be loaded.
To achieve this level of functionality (and safety against incorrect use), BlackBox provides several advanced "metaprogramming" services, in particular dynamic module loading on demand and typesafe lookup of variables. The latter requires extensive run-time type information (RTTI) that is relatively uncommon in fully compiled languages.
It was one of the design goals for BlackBox to separate user interface details from program logic.
This strong separation of user interface from program logic is uncommon.
Its advantage is simplicity: as soon as you know how to define procedures and how to declare record types and global variables, you can already construct graphical user interfaces for modules. This is possible even for someone who is just beginning to learn programming.
we ... discuss important aspects of standard controls which ... increase ... [application's] useability, i.e., its user-friendliness.
In section 1.2 we have already discussed what user-friendliness means. For example, it means avoiding modes wherever possible. For this reason, BlackBox doesn't support modal dialog boxes.
Modes are unavoidable if a user action sometimes makes sense, and sometimes doesn't. For example, if the clipboard is empty, its contents cannot be pasted into a text. If it is not empty and contains text, pasting is possible. This cannot be helped, and is harmless if the current state is clearly visible or can easily be inquired by the user. For example, if the clipboard is empty, the Paste menu command can be visibly marked as disabled. The visual distinction gives the user early feedback that this command is currently not meaningful. This is usually much better than to let the user try out a command and then give an error message afterwards.
Compilation also produced a new code file on disk. However, the old version of ObxPhoneUI is still loaded in memory! In other words: once loaded, a module remains loaded ("terminate-and-stay-resident").
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 31.10.04 18:53 | ||
| Оценка: | |||
|
|
От: |
Poisson
|
|
| Дата: | 31.10.04 19:57 | ||
| Оценка: | 12 (1) | ||
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 31.10.04 21:39 | ||
| Оценка: | |||
|
|
От: |
VladD2
|
www.nemerle.org |
| Дата: | 31.10.04 22:02 | ||
| Оценка: | |||
|
|
От: |
Poisson
|
|
| Дата: | 01.11.04 05:12 | ||
| Оценка: | |||
|
|
От: |
Дарней
|
|
| Дата: | 01.11.04 08:45 | ||
| Оценка: | +1 | ||
|
|
От: |
Кодт
|
|
| Дата: | 01.11.04 10:13 | ||
| Оценка: | |||
Перекуём баги на фичи!
|
|
От: |
Сергей Губанов
|
http://sergey-gubanov.livejournal.com/ |
| Дата: | 01.11.04 10:18 | ||
| Оценка: | |||
Работа с текстами программ
1) Редактирование и форматирование
2) Как писать служебные слова из прописных букв
3) Организация файлов в Блэкбоксе
Компилирование и отладка
1) Простейший цикл разработки (Некоторые заповеди)
2) Как компилятор сообщает об ошибках
3) Перезагрузка модулей
4) Как происходит аварийная остановка программы
Прочие вопросы
1) Простейший вывод информации (средства модуля StdLog)
2) Рабочий журнал (Log)
3) Как организована документация в Блэкбоксе
|
|
От: |
Сергей Губанов
|
http://sergey-gubanov.livejournal.com/ |
| Дата: | 01.11.04 10:23 | ||
| Оценка: | |||
|
|
От: |
Сергей Губанов
|
http://sergey-gubanov.livejournal.com/ |
| Дата: | 01.11.04 10:26 | ||
| Оценка: | |||
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 01.11.04 10:30 | ||
| Оценка: |
|
||
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 01.11.04 10:50 | ||
| Оценка: |
18 (2)
|
||
Цвет — мощная помощь в разметке визуальной информации
Например, удобно использовать цвет для новых, еще не проверенных вставок в программный текст. Можно определенным цветом выделять комментарии, и т.п. Хорошо выделять, скажем, красным цветом символы экспорта (звездочки и минусы после идентификаторов) в виду их большой важности
...
Кроме того, рекомендуется использовать курсив для комментариев, а жирным шрифтом выделять идентификаторы процедур в их заголовках, а также операторы RETURN и EXIT
Опишем простой и удобный способ выполнить процедуру из скомпилированного модуля. (Есть и другие способы.)
Поставим курсор в окошке с нашим модулем в самый конец текста после точки, закрывающей модуль
Выполним команду меню Инстр --> Вставить коммандер.
После коммандера без пробелов напечатать Привет.Сделать
Теперь кликнем мышкой по коммандеру.
Сохранение файла с программой
Для простоты сохраним модуль прямо в той папке, в которой откроется диалог Файлы --> Сохранить как...
Имя модуля CommObxStreamsClient разбивается на префикс Comm (имя подсистемы) и собственно имя модуля и соответствующих файлов — ObxStreamsClient. Тогда исходный текст хранится в Comm/Mod/ObxStreamsClient.odc, кодовый файл — в Comm/Code/ObxStreamsClient.ocf, а символьный файл — в Comm/Sym/ObxStreamsClient.ocf
Устраняйте самую первую ошибку — и сразу компилируйте снова, нажимая Ctrl+K
В простейших случаях (например, в школьных курсах программирования) работают с единственным модулем небольшого объема (скажем, до 500 строк).
5 Почаще нажимать Ctrl+K! (компиляция)
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 01.11.04 11:02 | ||
| Оценка: | |||
|
|
От: |
Mamut
|
http://dmitriid.com |
| Дата: | 01.11.04 11:46 | ||
| Оценка: | |||
|
|
От: |
VladD2
|
www.nemerle.org |
| Дата: | 01.11.04 11:56 | ||
| Оценка: | |||