List of GUI Event
BlitzMax Forums/BlitzMax Beginners Area/List of GUI Event
| ||
| Where can i find the list of Event constants? EX "EVENT_WINDOWCLOSE" |
| ||
| In the MaxGui source likely under mods |
| ||
| This helps, Thanks _Skully |
| ||
I used this code to produce a tab-delimited list of all const within all .bmx and .bb files within the BlitzMax directory.
Global global_BlitzMaxDirectoryPath:String = "C:\Program Files\BlitzMax"
Global global_SaveListPath :String = "C:\Program Files\BlitzMax\ListOfConst.txt"
Global global_SaveListStream :TStream = WriteStream(global_SaveListPath)
Global global_SearchableExtensions :String = "bmx;bb"
ParseDirectory(global_BlitzMaxDirectoryPath)
CloseStream(global_SaveListStream)
'****************************************************************************************
Function ParseDirectory(directoryPath:String)
Local dirStream :Int = ReadDir(directoryPath)
Local curFile :String = NextFile(dirStream)
Local curFileType :Int = FileType(directoryPath + "\" + curFile)
Local curFileExt :String = ""
While curFile <> ""
If curFile = "." Or curFile =".." Then
'do nothing
Else
Select curFileType
Case 2 'File Directory
ParseDirectory(directoryPath + "\" + curFile)
Case 1 'File
curFileExt = ExtractExt(curFile)
If Instr(global_SearchableExtensions ,curFileExt) Then
Print "parsing " + curFile + "..."
ParseFile(directoryPath + "\" + curFile)
EndIf
End Select
EndIf
curFile = NextFile(dirStream)
curFileType = FileType(directoryPath + "\" + curFile)
Wend
CloseDir(dirStream)
End Function
'****************************************************************************************
Function ParseFile(filePath:String)
Local fileStream:TStream = ReadStream(FilePath)
Local curLine :String = ""
Local constLine :String = ""
Local TAB :String = Chr(9)
Local lineCount :Int = 0
While Not Eof(fileStream)
curLine = ReadLine(fileStream)
If Mid(Trim(curLine),1,6) = "Const " Then
constLine = filePath + TAB + lineCount + TAB + Replace(curLine,TAB," ")
WriteLine(global_SaveListStream,constLine)
EndIf
lineCount:+1
Wend
CloseStream(fileStream)
End Function
'****************************************************************************************
|
| ||
| From the help:) Event id Description EVENT_APPSUSPEND Application suspended EVENT_APPRESUME Application resumed EVENT_APPTERMINATE Application wants to terminate EVENT_KEYDOWN Key pressed. Event data contains keycode EVENT_KEYUP Key released. Event data contains keycode EVENT_KEYCHAR Key character. Event data contains unicode value EVENT_MOUSEDOWN Mouse button pressed. Event data contains mouse button code EVENT_MOUSEUP Mouse button released. Event data contains mouse button code EVENT_MOUSEMOVE Mouse moved. Event x and y contain mouse coordinates EVENT_MOUSEWHEEL Mouse wheel spun. Event data contains delta clicks EVENT_MOUSEENTER Mouse entered gadget area EVENT_MOUSELEAVE Mouse left gadget area EVENT_TIMERTICK Timer ticked. Event source contains timer object EVENT_HOTKEYHIT Hot key hit. Event data and mods contains hotkey keycode and modifier EVENT_MENUACTION Menu has been selected. EVENT_WINDOWMOVE Window has been moved EVENT_WINDOWSIZE Window has been resized EVENT_WINDOWCLOSE Window close icon clicked EVENT_WINDOWACTIVATE Window activated EVENT_WINDOWACCEPT Drag and Drop operation was attempted EVENT_GADGETACTION Gadget state has been updated. EVENT_GADGETPAINT A Canvas Gadget needs to be redrawn EVENT_GADGETSELECT A TreeView Node has been selected. EVENT_GADGETMENU User has right clicked a TreeView Node or TextArea gadget. EVENT_GADGETOPEN A TreeView Node has been expanded. EVENT_GADGETCLOSE A TreeView Node has been collapsed. EVENT_GADGETDONE An HTMLView has completed loading a page. |
| ||
| Thanks! |