View previous topic :: View next topic |
Author |
Message |
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Feb 25, 2005 3:56 pm Post subject: Edit Dialog Element and the 64 KB Limit? |
|
|
Hi Guys,
I know this has been touched upon before, but is there a way to get around the 64 KB size limit for edit boxes? I know Lists allow for the holding of more data, but what about edit boxes? Is there a way to utilize the Windows API, or perhaps a DLL, to allow for edit boxes to hold more data?
Thanks,
- Boo |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 25, 2005 4:27 pm Post subject: |
|
|
Use a decent, NT-based OS. Under XP I regularly load huge Pascal source files several hundred KB into my Textpad utility, which is written in VDS using the normal EDIT dialog element. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Feb 25, 2005 5:13 pm Post subject: |
|
|
Hi Jules,
I am running Windows XP Home Edition. Unfortunately, I cannot load such large files. 8-(
Problem is, I am creating an application for users who may be using Windows 98 or above. I was hoping for a solution to allow editable text that is over 64 KB in size. (I need an Edit element similar to the one utilized in the Windows Wordpad program.)
Thanks,
- Boo |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Feb 25, 2005 5:23 pm Post subject: |
|
|
Quick followup...
Just found out that I can manually paste over-65 KB text into a VDS edit box under Windows XP Home Edition. However, I cannot make it work when transfering the data from variables (and perhaps lists?) within my VDS-based application.
Regardless, I still need editable support, for example, for users running Windows 98.
Cheers,
- Boo |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Fri Feb 25, 2005 5:29 pm Post subject: |
|
|
Try the vdsobj extension, it is now freeware and includes a richedit object; it should be more then capable to handle more then 64kb of data. The richedit object allows you to specify the PLAINTEXT sytle which is basically the same as a memo/editbox then. |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Feb 25, 2005 5:31 pm Post subject: |
|
|
Thanks PGWARE. Will give it a shot...
Cheers,
- Boo |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Feb 25, 2005 5:43 pm Post subject: |
|
|
Your best bet is the richedit object in PK's dll there. It will allow large
files on 9x and NT systems. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Fri Feb 25, 2005 7:09 pm Post subject: |
|
|
Hi Guys,
I am playing around with this right now.
By the way, PGWARE... Can your GUI extension be used in conjunction with the Object extension? What about balloon tooltips on Object elements?
Thanks,
- Boo |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Sat Feb 26, 2005 12:15 am Post subject: |
|
|
I think you are refering to CodeScripts GUI extension. I have no GUI extension
I suspect CodeScripts balloon tips may work. The object extension has a function which will allow you to retrieve the window handle of controls using the @OBJECT(GETHANDLE) function.
Again I'm not certain on CodeScripts GUI extension and if it works by using Windows handles but I suspect it probably does; if so it should work fine with vdsobj. |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sat Feb 26, 2005 5:05 am Post subject: |
|
|
Hi PGWARE,
Thanks for the info. Oops! Should have typed it as "the GUI extension."
Cheers,
- Boo |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Feb 26, 2005 9:36 am Post subject: |
|
|
Boo wrote: | Hi Jules,
I am running Windows XP Home Edition. Unfortunately, I cannot load such large files. 8-( |
That's very odd. I have never noticed such a restriction on any of the 3 computers running XP here. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sat Feb 26, 2005 3:08 pm Post subject: |
|
|
Hi Jules,
Actually, I got it working after a little memory management...
Thanks,
- Boo |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Mar 06, 2005 12:54 pm Post subject: |
|
|
Hi Boo
VDSGUI Balloon tips should wok with VDSOBJ elements.
For elements that return a window handle (most OBJ elements) you can use:
Code: |
GUI ADD,TOOLTIP,TOOLTIP1,TOOLTIPCTRL1,%%Handle,1,Test Title, This is body text
|
where %%handle can be obtained by @OBJECT(GETHANDLE) function in VDSOBJ.
Even for elements from other extensions/VDS like bitmap where you can't get
a valid handle you can use:
Code: |
GUI NOTIFYTIP,<Window>,<Icon>,<Title>,<Text>,<Timeout>,<TipEvent>{ ,Xpos,Ypos }
|
where <Window> is the classname of your main VDS dialog itself.
You can position he tip using XPos & Ypos values such that the tip gets
properly postioned on the target dialog element (say bitmap).
This way you can virtually display tooltip against any dialog element!.
Refer VDSGUI help file for more details. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sun Mar 06, 2005 3:23 pm Post subject: |
|
|
Thanks Codescript.
Cheers,
- Boo |
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Wed Mar 16, 2005 1:04 am Post subject: |
|
|
Hi Again,
I can successfully paste large amounts of text (over 64 kb) into the richtext object. However, larger instances of text (such as a 1.5 MB or so of text) take a long time to load.
Is there a way to increase the buffer size for this .DLL to allow faster loading? (In other Windows apps. on my PC, I can instantly paste large amounts of text into edit fields. However, the same text in a VDS richedit object takes forever.)
Thanks,
Boo |
|
Back to top |
|
|
|