just wondering........

BlitzPlus Forums/BlitzPlus Beginners Area/just wondering........

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

1) Yes, look at ReadFile, WriteFile and OpenFile.

2) Not exactly an IDE, but I've definitely seen some Blitz code that works a little like a Visual editor. I just can't remember where I've seen it.

Also, I want to know if i made a button gadget, how owuld I show that if teh button is clicked, then do something, or open another form??

;main loop to handle events 
Repeat
	event = WaitEvent()
	If event = $401 ;gadget action
		source = EventSource()	
		Select source
			;main buttons
			Case CommButton
				;open comm window
				DisableGadget Mainwindow
				CommWindow = CreateWindow("Communications Setup", 100, 100, 200, 200, Mainwindow, 1)
				CreateButton("OK", 80, 140, 40, 20, CommWindow)
		End Select
	EndIf ;gadget action
	If event = $803 ;Close (X) box pressed
		source = EventSource()
		If source = Mainwindow Then Exit
		If source = CommWindow
			EnableGadget Mainwindow
			FreeGadget CommWindow
			CommWindow = 0			
		EndIf
	EndIf
Forever