A caret for Cameron (OpenInsight Specific)
At 22 FEB 1998 06:03:29PM Brock Prusha wrote:
Ok, this one is for Cameron.
We would like to change the caret from a small thing horizontal line to something more visible. We have had many complaints that the caret
(or cursor as they call it) is to hard to see. I have tried several
ideas but have yet found a solution. Here is what i have tried.
On the Gotfocus and Char events i tried some API calls.
declare function get_property, createcaret, showcaret
declare subroutine destroycaret
handle=get_proeprty(ctrlentid, 'HANDLE')
destroycaret() ;*i know createcaret should destroy it but…
createcaret(handle, 1, 40, 40)
showcaret(handle)
I know these API routines worked, because I got them to work in a small delphi app. The only result I could get was the entire caret
disappeared, as if the showcaret function failed. Is there anyway
we can get this to work? Is it possible to replace the caret resource
in memory? or have it loaded? Please lemme know.
Tankya
Brock Prusha
DFM Systems, Inc.
bprusha@mapcon.com
At 23 FEB 1998 07:22AM Cameron Revelation wrote:
Brock,
Ok, this one is for Cameron. We would like to change the caret from a small thing horizontal line to something more visible.
I am not Mr. GDI, but I will fw: the thread to someone who is. You should also ask Carl Pates, who does the most imaginative (yet unimaginable) direct GDI work using OI.
Cameron Purdy
info@revelation.com
At 23 FEB 1998 10:48AM Carl Pates wrote:
Thanks Cam…it's all those colouful mushrooms…
Brock,
AFAIK it's the Presentation Server's default processing that's causing your display *problems* with the caret. I duplicated what you did and managed to hide it pretty well myself .
Subclassing the Edit Control's window procedure via a DLL also yielded no results until I stopped passing the WM_SETFOCUS message on to PS but onto the DefWindowProc instaed. I then got a huge cursor but no PS functionality, such as event processing etc…
I guess the only option here is to change something in PS and have it pick up a CARET property or something…but's that sounds like a lot of work…
cpates@sprezzatura.com
World Leaders in all things RevSoft (Except VIP)
At 23 FEB 1998 12:11PM Gene Gleyzer Revelation wrote:
Carl,
I believe the problem is that since caret is a single chared Windows resource, caret processing is only allowed for the task that owns the current window. That is why you cannot control the caret for a window owned by PS directly from the Engine (which is a different task). So the only solution would be to have the CARET property.
I'll try to investigate this …
Gene
At 23 FEB 1998 12:49PM Carl Pates wrote:
Gene,
Sounds cool….I sometimes forget that OE and PS are separate processes!
Thanks..
Carl
BTW…with the proliferation of unwanted animals on the forum of late, and all this talk of carets, I'm surprised we haven't seen any rabbits here …
At 23 FEB 1998 12:49PM Carl Pates wrote:
Gene,
Sounds cool….I sometimes forget that OE and PS are separate processes!
Thanks..
Carl
At 23 FEB 1998 01:20PM Elmer Fudd wrote:
Shhh……be vewy vewy quiet.
I'm hunting wepositowy based devwelopment tools…..and wabbits…
At 23 FEB 1998 01:31PM :)= wrote:
Eeeer, What's up Doc?
At 23 FEB 1998 10:06PM Brock Prusha wrote:
Thanks for all the input, I really appreciate it.
For the OI GUI GURUS I was wondering…
Could a parameter be added to the utility function to change the
caret size? ie: x=utility("CARET", 40:vm:40)
here's to hoping…
Brock Prusha
DFM Systems, Inc.
bprusha@mapcon.com