The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: RedXVII on March 03, 2006, 01:06:27 PM

Title: Editbox problem
Post by: RedXVII on March 03, 2006, 01:06:27 PM
More editbox problems. Quite simply put, a pain in the ass. If ever i get this working, im gonna write a tutorial or something so that people dont have to go through the same bumpy ride im going through  :eek

what i want is,
An edit boxwhich cant be edited in any way, the color can be changed and the texted highlighted so tha it can be "copied".

If i lock the edint box, its all good but; i cant change the color, stays grey
If i subclass the editbox, its all good but; it refuses to accept my mouse input, my highlighting attempts and make a menu appear

Suggestions on how to solve this?
Title: Re: Editbox problem
Post by: RedXVII on March 03, 2006, 01:50:31 PM
Actually, ill just convert my dialogue box into create window, then i can control everything properly like a control freak, right?  :bdg
Title: Re: Editbox problem
Post by: RedXVII on March 03, 2006, 04:04:41 PM
Not that anyone actually cares, i just want to say i did the whole thing with createwindowex. subclassing worked properly for once, and colors are working a treat. There must be some kind of rubbish Message handling with dialog box functions. so yeah, cheers
Title: Re: Editbox problem
Post by: PBrennick on March 03, 2006, 04:24:58 PM
Yeah, that is why you have to subclass it.  I am glad that you got it working.  Now that it is a window why not make it a richtext window.  If you are thinking of doing a tutorial, you need to also do that.  HINT:  Richedit

If you need help, I will be watching for you.

Paul
Title: Re: Editbox problem
Post by: Tedd on March 03, 2006, 06:52:26 PM
Quote from: PBrennick on March 03, 2006, 04:24:58 PM
If you need help, I will be watching for you.
That sounds more like a threat :bdg
Title: Re: Editbox problem
Post by: PBrennick on March 03, 2006, 07:00:44 PM
Tedd,
I know I am one of the old guys but am I really that intimidating?  Don't  make me crawl up this wire. :bdg

Paul
Title: Re: Editbox problem
Post by: Tedd on March 03, 2006, 07:02:35 PM
I'd really like to see you try :lol
Title: Re: Editbox problem
Post by: PBrennick on March 03, 2006, 07:17:26 PM
Yeah, me too, the last time I found myself on a wire is because I was falling off a utility pole in Milano, Italy while trying to do a hot melt into a fiber link.  Broke an arm and a leg and got married.  Go figure, the bones healed but the wife is still here after 12 years, fallowed me all the way back to Massachusetts and for some unknown reason, still thinks I am the best thing in town.  Again, go figure.  :lol

Paul
Title: Re: Editbox problem
Post by: IAO on March 04, 2006, 07:46:30 PM
Hi to all:   My English is poor. But I try.

Mr. RedXVII  
Please look here.
http://www.radasm.com/projects/Demo.zip

Inside of demo.zip. "CtlColor".

Good luck.
Thanks for your patience.

Bye ('_').
Title: Re: Editbox problem
Post by: RedXVII on March 07, 2006, 10:20:47 PM
Wow, Thanks IAO, these are really reall hand examples  :bg

Cheers  :U