chnge the curson in the IDE

BlitzMax Forums/BlitzMax Beginners Area/chnge the curson in the IDE

Dax Trajero(Posted 2006) [#1]
Is there anyway of making the blinking cursor a bit more noticeable in the standard BlitzMax IDE ?

Perhaps a flashing square ?

Either my eyesight is no good or I keep losing its position!


Beaker(Posted 2006) [#2]
Same here. My eyesight is great, but I lose it everytime.


SculptureOfSoul(Posted 2006) [#3]
I third this motion!


skidracer(Posted 2006) [#4]
after many attempts, i finally found the correct win32 call, having a few problems getting it to work properly though:

' createtextarea.bmx

Strict 

Extern "win32"
Function CreateCaret(hWnd,hBitmap:Byte Ptr,nWidth,nHeight)
Function ShowCaret(hWnd)
End Extern

Local window:TGadget
Local textarea:TGadget

window=CreateWindow("My Window",130,20,200,200,,15|WINDOW_ACCEPTFILES)

textarea=CreateTextArea(0,0,ClientWidth(window),ClientHeight(window)/2,window)
SetGadgetLayout textarea,1,1,1,1
SetGadgetText textarea,"a textarea gadget~none line~nandanother"
ActivateGadget textarea

Local hwnd,caret
hwnd=QueryGadget(textarea,QUERY_HWND)

While WaitEvent()
	Print CurrentEvent.ToString()+" "+EventSourceHandle()
	Select EventID()
		Case EVENT_GADGETACTION,EVENT_GADGETSELECT
			caret=CreateCaret(hwnd,Null,2,12)
			ShowCaret(hwnd)
			DebugLog "caret="+caret
		Case EVENT_WINDOWCLOSE
			End
		Case EVENT_APPTERMINATE
			End
	End Select
Wend



Beaker(Posted 2006) [#5]
Seems to work here. Whats wrong?


ImaginaryHuman(Posted 2006) [#6]
I would also like the cursor to actually jump to and point to the EXACT place in the code where there was an error when the debug mode bombs out.


Ryan Burnside(Posted 2006) [#7]
"I would also like the cursor to actually jump to and point to the EXACT place in the code where there was an error when the debug mode bombs out."

Amen to that.


Grey Alien(Posted 2006) [#8]
I second everything said but would like it compiled into the next IDE version if possible as I have no idea how to apply the above fix.


Yan(Posted 2006) [#9]
I would also like the cursor to actually jump to and point to the EXACT place in the code where there was an error when the debug mode bombs out.
I added this, along with highlighting the error line, to the CEIDE quite early on, admittedly it was pretty hackish but it worked. However, someone must've objected to it as it was removed.:o/