PDA

View Full Version : New to programming. Select all/ highlighting with a mouse




captainritalin
Jul 13, 2009, 02:23 PM
Hey guys. I am somewhat new to program. The current program that i am writing needs to be able to deal with any text that is highlighted/ selected. I am absolutely clueless as to how to do that or even what highlight/select really even is. Can anyone give me some pointers in the right direction pleas?



HiRez
Jul 13, 2009, 03:56 PM
You should probably first state what language and environment you're programming in. Are you using Cocoa/Objective-C/Xcode? Java? Python? Targeting Mac OS or iPhone? etc.

captainritalin
Jul 13, 2009, 04:32 PM
Mac Os, Python

boast
Jul 13, 2009, 04:46 PM
well I don't know what widget toolkit you are using, but you might want to start by looking at its API for methods to get what you ask for.

Cinder6
Jul 13, 2009, 05:40 PM
I am absolutely clueless as to how to do that or even what highlight/select really even is.

What don't you understand about it?

captainritalin
Jul 13, 2009, 10:32 PM
How is it written into OS X and how do i integrate it into my programs?

HiRez
Jul 14, 2009, 05:53 PM
Are you using the Python-Cocoa bridge (in other words using Cocoa UI elements) or just straight Python? And if the latter, what GUI toolkit are you using? Python does not have a native/built-in GUI.