[Gtk2forpascal-devel] =?gb2312?B?UG9zc2libGUgQnVnczogZW51bXMgbm90IGNvbXBhdGlibGUgd2l0aCBDIGVudW1z?=
Brought to you by:
mgaertner
|
From: mili <mil...@16...> - 2002-08-30 17:24:01
|
Hi, Everyone
In gtk2forpascal, TGtkTextSearchFlags is defined as follows:
TGtkTextSearchFlags = (
GTK_TEXT_SEARCH_VISIBLE_ONLY,
GTK_TEXT_SEARCH_TEXT_ONLY
);
Then the following C codes can't be converted to Pascal:
search_flags = GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY;
to
search_flags := GTK_TEXT_SEARCH_VISIBLE_ONLY or GTK_TEXT_SEARCH_TEXT_ONLY;
Because bit operator can't be operated on enum type. And at the same time,
gedit_text_iter_forward_search() function in pascal will ask for a enum
type, anything else is unacceptable. So, How can I do?
I think this is a bug of gtk2forpascal, for the developers have not
anticipate the incompatibility between Pascal and C.
Yours,
mili
|