Hi, all.
I'm now writing a small utility application using PG and I make a preference
window for it.
I set the window as modal and it's type as "NVIS" for invisible build, and
put a edit filed for inputting creator.
I also check to include an EditMenu.FLTR in my project.
Then I append a "Preferences..." menu item at the end of "Edit" menu.
When the "Preferences..." is selected, I do following....
CLEAR LOCAL FN BuildPrefsWnd
DIM wnd%,x$
wnd% = FN pGbuild(_prefsWnd)
x$ = MKI$(gCreator&)
COLOR _zBlack
TEXT _sysFont,12
EDIT$(_CreatorFld) = x$
WINDOW wnd%
END FN
SELECT gLongAction&
CASE _menuLong
IF gWhichMenu% = _mEdit AND gWhichItem% = _iPrefs THEN FN BuildPrefsWnd
END SELECT
In my app, when window was build and then turn to be visible, and I want to
paste some text form clipboard but it does not work.
Then I check off the modal checkbox, EditMenu.FLTR works, but when the
window was build, an Undo menu item is always enable... (Why? I'm ask this
problem for STAZ now.)
Is there anyone who have good idea to work editmenu with PG modal window?