Self-contained find dialog

BlitzMax Forums/MaxGUI Module/Self-contained find dialog

JoshK(Posted 2007) [#1]
This code will enable a Windows Notepad-like Find dialog on any textarea gadget.

Usage:

Import "Find.bmx"
GADGET_MENU_FIND=CreateMenu("Find",0,menu)
CreateFindWindow(MainWindow:TGadget,TextArea:TGadget)

That's it!




JoshK(Posted 2007) [#2]
This is an updated version that will search up & down. I also added a GADGET_MENU_FINDNEXT menu item. Just create it and the application will handle everything, including enabling and disabling the menu. You should disable the GADGET_MENU_FINDNEXT menu item when it is created.




danielos(Posted 2008) [#3]
looks good!
could you (or someone else) code that also for blitzplus ?