forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


USE WINE TO PORT VDS PROGGIES TO LINUX
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 29, 2003 5:33 pm    Post subject: Reply with quote

Quote:
Have you ever looked into the editor component used by Inno Setup?


I always thought it was the same one we used. If it isn't, the problem is that a lot of work has been invested is integrating TSyntaxMemo into the VDS debugger. To start again with a different editor would be an enormous amount of work, which would have no benefit to the end user because it would just look the same. I did look at one syntax editor that was being developed open source but it was horrible to use. It would probably have used up most of the development budget converting to it...

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 29, 2003 5:37 pm    Post subject: Reply with quote

My only wish would be to find a workaround with the HTML formatting
problem. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 29, 2003 5:39 pm    Post subject: Reply with quote

Hi Jules,
Yeah syntax highlighting is one of the harder things to get right. I have tried to build VDS DLL's for this and it is very difficult to write it so that it works as good as the others that are already out there...Most syntax highlighting controls are very slow...Just how slow...Well with some I have tried you could actually watch it as it was painting each letter of the word Sad If you find a good component keep it for sure....

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Aug 29, 2003 5:39 pm    Post subject: Reply with quote

It should be pretty easy. Just make a hotkey which catch "Ctrl+V", and let it put the clipboard contents into a (text) list. Then paste it into the editor. I think it will only use a couple of extra lines... Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 29, 2003 5:45 pm    Post subject: Reply with quote

Skit,
I believe the IDE is built with Delphi? They just need to filter the clipboard data type and only request CF_TEXT instead of just coping what ever is on the clipboard or CF_RTF...

Below is a function from the Win32 API help file...It's in C syntax but should be easy enough to convert to Pascal....

Code:
VOID WINAPI EditPaste(VOID) 
{
    PLABELBOX pbox;
    HGLOBAL   hglb;
    LPTSTR    lptstr;
    PLABELBOX pboxCopy;
    int cx, cy;
    HWND hwnd;
 
    pbox = hwndSelected == NULL ? NULL :
        (PLABELBOX) GetWindowLong(hwndSelected, 0);
 
    // If the application is in edit mode,
    // get the clipboard text.
 
    if (pbox != NULL && pbox->fEdit)
    {
        if (!IsClipboardFormatAvailable(CF_TEXT))
            return;
        if (!OpenClipboard(hwndMain))

            return;
 
        hglb = GetClipboardData(CF_TEXT);
        if (hglb != NULL)
        {
            lptstr = GlobalLock(hglb);
            if (lptstr != NULL)
            {
                // Call the application-defined ReplaceSelection
                // function to insert the text and repaint the
                // window.
 
                ReplaceSelection(hwndSelected, pbox, lptstr);
                GlobalUnlock(hglb);
            }

        }
        CloseClipboard();
 
        return;
    }
 

_________________
Home of

Give VDS a new purpose!


Last edited by vdsalchemist on Fri Aug 29, 2003 5:51 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 29, 2003 5:46 pm    Post subject: Reply with quote

Quote:
If you get one more sale of your product then that is one that you would otherwise not have.


And if you spent thousands of pounds porting your product to another OS just to get one sale you'll have lost a lot of money.

Borland asked its customers if they would like to see Delphi for Linux, and many said Yes which is why they developed Kylix. But by the time it came out not many people put their money where their mouth is.

The fact is that the Windows market is so much bigger than that for Linux that software companies can afford to ignore it. Linux is never going to compete seriously with Microsoft. It's fine for you guys who want to see an alternative to say that software companies should make Linux versions of their products but it doesn't cost you anything to say that. If it was my money I wouldn't risk it.

By the way please note that just because I've been contracted to do some of the VDS 5 development doesn't mean that I'm an employee of Commercial Research. Any opinions stated here by me are entirely my own.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 29, 2003 5:49 pm    Post subject: Reply with quote

Actually I think Macintosh is a lot more widely used than Linux. What
about support for that? I for one would use it for Macintosh. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 29, 2003 5:50 pm    Post subject: Reply with quote

FreezingFire wrote:
My only wish would be to find a workaround with the HTML formatting problem. Smile


Oh, that was dead easy to do. The fix will be in the update. Smile

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Aug 29, 2003 5:55 pm    Post subject: Reply with quote

Skit3000 wrote:
It should be pretty easy. Just make a hotkey which catch "Ctrl+V", and let it put the clipboard contents into a (text) list. Then paste it into the editor. I think it will only use a couple of extra lines... Rolling Eyes


I have already done this in a humble utility I built. You need to press Ctrl+Alt+V instead of Ctrl+V while the app is running in background. the text is paste dneat without any tags.
http://codescript.vdsworld.com/VDS5src/Tray_helper_project.zip
There are some limitations like cursor should be over the Tsyntaxmemo (editor) I could use getcaretpos (gives error due to unknown reason) and have no surplus freetime. Sure someone can improve it further.
EDIT: You can use this till you get an update Smile
Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 29, 2003 6:07 pm    Post subject: Reply with quote

jules wrote:
FreezingFire wrote:
My only wish would be to find a workaround with the HTML formatting problem. Smile


Oh, that was dead easy to do. The fix will be in the update. Smile

AWESOME You just don't know how long we have all complained about this. It is mentioned at least once for each new user to this forum Very Happy Very Happy Very Happy Thank you so very very very much....

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 29, 2003 6:11 pm    Post subject: Reply with quote

jules wrote:

And if you spent thousands of pounds porting your product to another OS just to get one sale you'll have lost a lot of money.


Use dollars they will probally go further Wink hehehehehe... Just kidding... Seriously how long did it take you to make the runtime work under Linux? How much win32 API code would need to be converted?

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 29, 2003 6:39 pm    Post subject: Reply with quote

Quote:
how long did it take you to make the runtime work under Linux?


It was just a hack - there was no dialog stuff in there and anything that didn't work, like API stuff, was just commented out. And it just executed a plain text script (I have no idea how to make Linux binaries.)

I think it would be very hard to make VDS completely cross platform, where the same script works exactly the same under both Windows and Linux. It would be not so hard to make something that was recognisably VDS, but with not exactly the same features or behavior on both platforms. But that probably wouldn't be satisfactory to a lot of people.

As I said in an earlier post, it would be much easier to make VDS cross-platform if that was the intent in the first place. Then you wouldn't put anything in there that you couldn't do on both platforms.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 29, 2003 7:16 pm    Post subject: Reply with quote

jules wrote:

As I said in an earlier post, it would be much easier to make VDS cross-platform if that was the intent in the first place. Then you wouldn't put anything in there that you couldn't do on both platforms.


Yeah this is ture for most software that you want to be portable across different platforms. I was just trying to get a feel for how much work it would actually take is all. It helps to understand the language better. At least for me. That's why I choose to write my VDS DLL's with the Lcc compiler. I was not sure if VDS would be ported to Linux but at the same time if it ever is I would be able to port my code along with it. While we are on the subject is there any chance of a dotNET version of VDS or at least the ability to use OLE/COM with the language someday or something similar to these M$ technologies?
BTW I think it is awesome that you are posting to the VDS forum Smile If no one else has said it I want to be the first to say thank you so much for taking the time to answer our questions about VDS. It has been very educational and good for me to get your input about VDS.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Aug 29, 2003 7:28 pm    Post subject: Reply with quote

mindpower wrote:
BTW I think it is awesome that you are posting to the VDS forum Smile If no one else has said it I want to be the first to say thank you so much for taking the time to answer our questions about VDS. It has been very educational and good for me to get your input about VDS.

Here, here! Thank you Jules! Very Happy

_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 29, 2003 8:10 pm    Post subject: Reply with quote

jules wrote:
FreezingFire wrote:
My only wish would be to find a workaround with the HTML formatting problem. Smile


Oh, that was dead easy to do. The fix will be in the update. Smile


Wow! That is great! Thumbs Up Very Happy Yes

That's really my only complaint about the component, so now I
can happily use VDS! Thanks! Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group