| View previous topic :: View next topic |
| Author |
Message |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Nov 14, 2003 5:06 am Post subject: |
|
|
| Hi Serge provided your sending the exact message ID's and parameters correctly it should function. If you're sending EM_ messages note that not all of these function with richedit controls - usually there is an equivelent message id however for a richedit. You should take a look at the win32.hlp file and also at CodeScript's TrayHelper Utility - download here, his utility will allow you to take api contants and get the message id's for them. Using the win32.hlp will then let you get the exact format that wparam and lparam require. |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Nov 14, 2003 6:53 am Post subject: |
|
|
hi prakash,
thanks for your reply...i gathered after my post that the code in question might not work because it is for an edit box and not a richedit box
as for your suggestion, i'm afraid that it is way over my head...will do without that feature...it would have been nice but certainly not an essential feature
thanks for your help
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Nov 14, 2003 9:24 am Post subject: |
|
|
Hi Serge
This is a quick spin I gave:
| Code: | | %Z = @SENDMSG(@OBJECT(GetHandle,RICHEDIT1),1091,0,16252657) |
The above code should set the color of the richedit box in example 1
of VDSOBJ light green.
16252657 is a colorref value.
You can use a colrref converter utility I wrote
to get these values for a given color:
http://codescript.vdsworld.com/VDS5src/Colorrefcon_C-Spy.zip
Enjoy _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat Nov 15, 2003 8:05 am Post subject: |
|
|
great stuff codescript...i just downloaded your script and i will test it on my laptop later on while i watch the evening movie
thanks a bunch
serge _________________
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat Nov 29, 2003 2:30 pm Post subject: |
|
|
hi prakash,
sorry to bother you...i can't get the richedit background and foreground colors to work properly eg. black background and yellow text shows black text on black background...i tried various colour combinations and found that some work (eg. yellow text on red background) while a number of others don't...they just show the text as black even though i have opted for a non-black text colour
any ideas?!?
i am using the latest version of obj.dll
thanks for your time
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Nov 30, 2003 8:37 am Post subject: |
|
|
Hi Serge
May be that some colors are not supported by the richedit control.
U can try using standard richedit colors (U can get them fom the windows wordpad color options - U can use printscreen paste the image of the wordpad with the drop down color dialog and pick the pixel color of each in colorref values using the utility I maentioed in the above post. (I think VDSOBJ colorcombo example has this already done I think.
Beyond that Prakash may be able to help U more. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Nov 30, 2003 9:12 am Post subject: |
|
|
thanks codescript...i am using standard colours...the ones listed as working with richedit...hence the confusion!...i deliberatly avoided using non-standard colours but some such standard colours don't work eg. BLACK for the background and YELLOW for the foreground
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Nov 30, 2003 1:33 pm Post subject: |
|
|
May be then something to do with the DLL; Prakash may be able to help U more _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Dec 03, 2003 1:32 am Post subject: |
|
|
Hi Serge,
Are you setting it as a style? OBJECT ADD, STYLE . Also can you please post your code here and I'll see what the problem might be. |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Dec 04, 2003 1:53 pm Post subject: |
|
|
thanks for your help pg... i found the problem i had added a line that blackened the font...i have absolutely no idea why i did that...it all works well now
serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Dec 15, 2003 6:35 pm Post subject: |
|
|
Update to VDSOBJ 3.12.9.2003
Fixed bug OBJECT CELL's CLEAR command, would throw up an error about incorrect control name/identifier. |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Dec 16, 2003 7:57 am Post subject: |
|
|
thanks pgware
serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Dec 31, 2003 5:50 pm Post subject: |
|
|
New Years Special Promotion
You can purchase a copy of the VDSOBJ at a $20 discount. The promotion ends at the end of this weekend.
You can purchase the VDSOBJ at:
https://secure.reg.net/product.asp?ID=8495
Enter Coupon Code NEWYEARS to get the $20 rebate.
-- THIS OFFER IS NO LONGER AVAILABLE ---
Last edited by PGWARE on Thu Jan 15, 2004 11:45 pm; edited 2 times in total |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Jan 01, 2004 2:00 am Post subject: |
|
|
great idea on the specials you are running pg
serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Jan 07, 2004 6:24 pm Post subject: |
|
|
Update - 3.1.7.2004 - DOWNLOAD HERE
New update adds support for VDS 5's new color values (eg. TEAL, BLUE, GREEN, etc) within the colorcombo and other dialog objects. |
|
| Back to top |
|
 |
|