| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Oct 28, 2003 8:50 pm Post subject: |
|
|
Sometimes I get this when selecting:
| Code: | ---------------------------
Visual DialogScript 5
---------------------------
Error: Unhandled exception ""
at line: 73
in file: C:\Documents and Settings\FreezingFire\TranparentRichedit\RICHEDIT.dsc
---------------------------
OK
--------------------------- |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1754 Location: Space and Time
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Oct 29, 2003 2:59 am Post subject: |
|
|
I had warned about that earlier. Just remove the timer - so that mousedown in VDSUG won't be put to work (and menu is not shown). I don't think anymore crashes shpould occur. This is a VDS 5 specific bug - A new bug introduced in VDS 5.x ?? .You can use VDS built in @mousedown() but as of now U know it has some bugs - have to live with it. Hope it's fixed in next version
Also anyone tried it in VDS 3-4.x I am sure it won't crash.
Also sorry for not warining that it may force a reboot atleast on win 9x  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Oct 29, 2003 4:39 am Post subject: |
|
|
I have converted the script to implement mousedown function entirely using API. Also removed some inconsistencies in the script so that it should work on all versions of VDS 3.x and above.
So I hope no more crashes.
Download here:
http://codescript.vdsworld.com/VDS5src/TranparentRichedit.zip
Disclaimer:
Use entirely at your own risk.
The script may not at all be suitable for newbies.
Use it
Thanks for your encouragement.
May be a DSU after VDS update.
Enjoy!! _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Oct 29, 2003 11:39 am Post subject: |
|
|
Thanks CodeScript.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Wed Oct 29, 2003 7:56 pm Post subject: |
|
|
Man, you ROCK CodeScript!  _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1754 Location: Space and Time
|
Posted: Thu Oct 30, 2003 12:56 am Post subject: |
|
|
Thanks a lot!!! Very nice...
one question: How do I get a scroll bar to show up? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Oct 30, 2003 8:00 am Post subject: |
|
|
I did intentionally avoid Scroll bars. If U scroll then you should use the API mouse down to detect when the user released the mouse button and refresh ( WM_ERASEBKGND -> WM_PAINT) the richedit using API else it may look horrible.
I have not tested if it works.
Also note that scrollbars will be opaque
Replace the following line to show scroll bars (single line):
| Code: | | %%Riched = @UG(DLLFUNC,CreateWindowExA,INT,INT:0,STRBUF,STRBUF,INT:@SUM(1073741824,268435456,4,8192,192,2097152,1048576),INT:%%LEFT,INT:%%TOP,INT:%%WIDTH,INT:%%HEIGHT,INT:%H,INT:0,INT:%M,INT:0) |
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension
Last edited by CodeScript on Thu Oct 30, 2003 2:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1754 Location: Space and Time
|
Posted: Thu Oct 30, 2003 12:58 pm Post subject: |
|
|
Ok. It workd fine. The text flashes a little bit, but not much. Thanks again. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|