| Author | Topic: Hint please? | |
|---|---|---|
![]() | Dominik Perkovic | Hint please? on Sat, 19 May 2012 21:16:21 +0200 Hello everyone, I am 18 year old that is trying to learn Xbase. I have no prior knowledge about databases but my father is a Clipper programmer and he talked me into this. Unfortunately he isn't too willing to help (kinda gave up after a week or so) and I'm losing interest myself too. We spent about a week going through Xbase sample programs, my father figured out some things but it took us way too much time. I still don't know why one window can be maximized while other just jumps top left. We had hard times figuring out how status bar works (adding value to first field, changing font) but we still don't know why we got it jumping out of window or why it opens in one window and the rest (menu) in another... etc etc etc... So my question is: is there any kind of manual or book or something (like a bunch of those for VB) that would lead me step by step explaining how what why... ? Or is there any place where one can ask trivial / sample questions about Xbase? Thank you |
![]() | Osvaldo Ramirez | Re: Hint please? on Sat, 19 May 2012 14:21:53 -0600 On 5/19/2012 1:16 PM, Dominik Perkovic wrote: > Hello everyone, > > I am 18 year old that is trying to learn Xbase. I have no prior > knowledge about databases but my father is a Clipper programmer and he > talked me into this. Unfortunately he isn't too willing to help (kinda > gave up after a week or so) and I'm losing interest myself too. > > We spent about a week going through Xbase sample programs, my father > figured out some things but it took us way too much time. I still don't > know why one window can be maximized while other just jumps top left. We > had hard times figuring out how status bar works (adding value to first > field, changing font) but we still don't know why we got it jumping out > of window or why it opens in one window and the rest (menu) in > another... etc etc etc... > > So my question is: is there any kind of manual or book or something > (like a bunch of those for VB) that would lead me step by step > explaining how what why... ? Or is there any place where one can ask > trivial / sample questions about Xbase? > > Thank you |
![]() | James Loughner | Re: Hint please? on Sat, 19 May 2012 21:26:37 -0400 Looks like you are jumping into the deep end of the pool. First learn about the simple stuff the complicated Windows stuff will follow. There is the online documentation which is pretty good all and all and most things have example code. Learn about databases and indexes first before you jump into Windows. You need to understand database and structures before you can make pretty Windows. Jim On 05/19/2012 03:16 PM, Dominik Perkovic wrote: > Hello everyone, > > I am 18 year old that is trying to learn Xbase. I have no prior > knowledge about databases but my father is a Clipper programmer and he > talked me into this. Unfortunately he isn't too willing to help (kinda > gave up after a week or so) and I'm losing interest myself too. > > We spent about a week going through Xbase sample programs, my father > figured out some things but it took us way too much time. I still don't > know why one window can be maximized while other just jumps top left. We > had hard times figuring out how status bar works (adding value to first > field, changing font) but we still don't know why we got it jumping out > of window or why it opens in one window and the rest (menu) in > another... etc etc etc... > > So my question is: is there any kind of manual or book or something > (like a bunch of those for VB) that would lead me step by step > explaining how what why... ? Or is there any place where one can ask > trivial / sample questions about Xbase? > > Thank you |
![]() | Dominik Perkovic | Re: Hint please? on Sun, 20 May 2012 10:54:34 +0200 Thank you both for your replies |
![]() | AUGE_ OHR | Re: Hint please? on Sun, 20 May 2012 22:07:20 +0200 hi,
> Anyway, here is one of our 'successful test products'. Could anyone tell
> me why that window can't be maximized? How to make it spread over the
> screen instead of jumping to upper left corner? My father thinks / hopes
> we are missing 'just one tiny detail' but we can't figure out which one it
> could be.
>
> oDlg := XbpDialog():new( AppDesktop(), , {600,400}, , , .F.)
you are using wrong Parameter ... and wrong Windows !
try this :
oDlg := XbpDialog():new( AppDesktop(), ,aPos ,aSize)
i recommend to use a 3-PP Lib like Express++ to make migration to GUI.
greetings by OHR
Jimmy |
![]() | James Loughner | Re: Hint please? on Sun, 20 May 2012 20:32:40 -0400 Looks like you are doing a hybrid mode compile rather then a full GUI these are not used in a full GUI app > SetAppWindow():useShortCuts := .T. > SetColor( "N/W" ) > SetCancel( .F. ) > CLS > SetMouse(.T.) > SetAppWindow():mouseMode := XBPCRT_MOUSEMODE_PM > So you are running in a Windows DOS box Jim On 05/20/2012 04:54 AM, Dominik Perkovic wrote: > Thank you both for your replies |
![]() | Allen Lee | Re: Hint please? on Sun, 20 May 2012 18:54:11 -0700 Can the Windows DOS box be made larger? |
![]() | Thomas Braun | Re: Hint please? on Tue, 22 May 2012 08:46:39 +0200 Allen Lee wrote: > Can the Windows DOS box be made larger? PMFJI, but this is no "Windows DOS box", but a console window which is 100% Windows (no DOS of any sort involved |
![]() | Chris Andries | Re: Hint please? on Mon, 21 May 2012 08:43:06 +0200 Hi, If your father was a Clipper programmer for 20 years, you have to look to eXPress++. (http://donnay-software.com/) It is the easiest way to migrate from Clipper to the Windows world of Xbase++. Best regards, Chris Andries. <Dominik Perkovic> wrote in message news:2dfc118c$1fb592bc$1d679@news.alaska-software.com... > Thank you both for your replies |
![]() | Dominik Perkovic | Re: Hint please? on Mon, 21 May 2012 21:14:32 +0200 Yayyyyy I made it!!!!! |
![]() | James Loughner | Re: Hint please? on Mon, 21 May 2012 17:17:43 -0400 You want to set a background image. Well a dialog is made up of several parts. The one we want is the drawingarea. The drawingarea. The drawingarea is a special kind of window object XbpIWindow class. Look up XbpIWindow for details in the docs Also may want to look at the XbpBitmap class to load an image You can reference the drawingarea in you code with odlg:drawingarea In the appsys procedure Jim On 05/21/2012 03:14 PM, Dominik Perkovic wrote: > Yayyyyy > > I made it!!!!! |
![]() | Dominik Perkovic | Re: Hint please? on Tue, 22 May 2012 17:48:13 +0200 Thanks for hints James |
![]() | AUGE_ OHR | Re: Hint please? on Tue, 22 May 2012 21:15:11 +0200 hi,
> Seems I learn easier from examples than from help files.
YES, this is the best Way
> Didn't find any example of XbpIWindow class,
Xbase++ does not follow Windows "handle" Syntax
it use OOP ( like Classy ) with Parent/Owner and Child
XbpIWindow is a abstract Class derived from SuperClass
XbpWindow() where allmost all XbPart are from.
a XbpIWindow() is more like a hDC ( Device Content )
which is called Presentationspace ( oPS ) in Xbase++
> will see if I can get something from XbpBitmap class.
oBMP:= XbpBitmap():new():create()
load from Resource DLL
oBMP:load( "MYOWN.DLL", BMP_CAL_STARTBMP )
load from Disk
oBMP:loadfile("MyPic.JPG")
oDialog := XBPDIALOG() :new( APPDESKTOP(), , ;
aPos, ;
aSize)
oDialog:drawingArea:bitmap := oBMP
oDialog:resize := { | aOldSize, aNewSize, oSelf | ;
MyResize(aOldSize, aNewSize, oBMP) }
oDialog:create() :
this Way you can add a Image to :drawingArea:bitmap.
as you can see i also include o:resize Callback Slot ... i guess you next
Question |
![]() | Thomas Braun | Re: Hint please? on Tue, 22 May 2012 08:53:58 +0200 Dominik Perkovic wrote: > So my question is: is there any kind of manual or book or something > (like a bunch of those for VB) that would lead me step by step > explaining how what why... ? Or is there any place where one can ask > trivial / sample questions about Xbase? To be honest - if you are thinking about working in the software business sometimes in the future most likely you'll be better of learning some mainstream language such as C++ / C# / Java first instead of any xBase dialect. It also can't hurt to learn a some of the languages that are used in web development such as PHP or Python. - There are tons of (good) books about any of those languages - There are literally terabytes of online tutorials and sample code - There are hundreds of online forums - Most of the languages come with an IDE (integrated development environment) for free. - The chance of getting a job later is much better regards Thomas |
![]() | Peter Alderliesten | Re: Hint please? on Tue, 22 May 2012 17:35:54 +0200 Thomas, > To be honest - if you are thinking about working in the software business > sometimes in the future most likely you'll be better of learning some > mainstream language such as C++ / C# / Java first instead of any xBase > dialect. It also can't hurt to learn a some of the languages that are used > in web development such as PHP or Python. > > - There are tons of (good) books about any of those languages > - There are literally terabytes of online tutorials and sample code > - There are hundreds of online forums > - Most of the languages come with an IDE (integrated development > environment) for free. > - The chance of getting a job later is much better I don't think this advice does him any good if he's taking over the application in the family and want to upgrade his Clipper application (which I assume that's what he's trying to do). In my opinion only the last reason is a reasonable one to start looking to other language users. But I have heard the same argument convincing people to switch to Java, which I don't hear much about anymore, or Delphi, which is in the same league, and I am sure there are many others (if I read the developer comments on MS sites right). Peter |
![]() | Thomas Braun | Re: Hint please? on Wed, 23 May 2012 09:11:19 +0200 Peter Alderliesten wrote: > I don't think this advice does him any good if he's taking over the > application in the family and want to upgrade his Clipper application > (which I assume that's what he's trying to do). From what he wrote: > I am 18 year old that is trying to learn Xbase. I have no prior > knowledge about databases but my father is a Clipper programmer and he > talked me into this. I would not come to this conclusion. |
![]() | Peter Alderliesten | Re: Hint please? on Wed, 23 May 2012 15:14:11 +0200 Thomas, > I would not come to this conclusion. |
![]() | Dominik Perkovic | Re: Hint please? on Tue, 22 May 2012 17:42:20 +0200 Fair enough Thomas |
![]() | Jan Groenestein | Re: Hint please? on Tue, 22 May 2012 19:07:11 +0200 Hi Dominik, By way of encouragement : I think your father is right. I see a lot of programmers who have no idea of what they are doing because they only know the "drag and drop" method of programming. In the end, that does not get you very far. If you want to learn some real programming skills, then Xbase++ is in my view a good choice, even if you will later on also use other languages. We have used Xbase++ for many years now, and we outperfom any C++, C#, Java programmer team easily in speed of development and stability of the resulting systems. So, if you are thinking of starting your own business : Xbase++ is excellent. If you want to be a programmer for run-of-the-mill outfits : Xbase++ is a good way to learn good programming practices. Kind regards, Jan Groenestein Op 22-5-2012 17:42, Dominik Perkovic schreef: > Fair enough Thomas |
![]() | AUGE_ OHR | Re: Hint please? on Tue, 22 May 2012 21:13:42 +0200 hi, > Unfortunately(?) my father thinks I 'should get familiar with coding of > some kind because drag & drop programming isn't enough'. i agree, but where do you want to start ? if you realy want to know how dragdrop works you have to read C. Petzold Book as i did last Year after 30 Year of Xbase (all Version) > I have very basic programming classes at high school (no databases), > and college I'm interested in teaches C++, Xbase 'fun' is supposed to > fill some blanks |
![]() | Thomas Braun | Re: Hint please? on Wed, 23 May 2012 09:26:09 +0200 Dominik Perkovic wrote: > Fair enough Thomas |
![]() | Dominik Perkovic | Re: Hint please? on Wed, 23 May 2012 19:55:21 +0200 Let me try to reply to all replies in one post |
![]() | AUGE_ OHR | Re: Hint please? on Wed, 23 May 2012 23:11:06 +0200 hi,
>1. If this code defines size and position of my window:
>
> aSize[1] := 640
> aSize[2] := 400
> aPos[1] := 0.1 * aSize[1]
> aPos[2] := 0.1 * aSize[2]
> oDlg := XbpDialog():new( ,,aPos , aSize )
>
>which values I need to make it start / show at upper left corner of my
>screen? I tried 0,0 (apos1 and 2) but its lower left corner which seems
>weird to me.
Windows 0,0 start with lower left so Xbase++ use XBP_ORIGIN_BOTTOMLEFT
Size of DeskTop is
aDesk := AppDeskTop():currentSize()
aPos[1] = 0
aPos[2] = aDesk[2] - aSize[2]
>2. Lets say this is code for status bar:
> oSBar := XbpStatusBar():new(Oparent)
> aPP := {{XBP_PP_COMPOUNDNAME, "8.Arial"}}
> oSBar:create(Oparent ,, {0,0},
> {SetAppWindow():currentSize()[1],20},aPP)
> cmsg := "test1 test2 test3 test4 test5 test6 test7 "
> oSBar:getitem(1):caption := cmsg
>
>When I click maximize button (or resize window manually) it keeps same size
>which also seems weird to me |
![]() | Thomas Braun | Re: Hint please? on Thu, 24 May 2012 08:20:47 +0200 AUGE_ OHR wrote:
>>oDialog:resize := { | aOldSize, aNewSize, oSelf | ;
>> MyResize(aOldSize, aNewSize, oBMP) }
>>
>>I guess I should use oDlg instead of oDialog
>
> you can use any Name you want
Of course he can't - he has to use the variable name he assigned the
dialog object to, otherwise he would run into some error message.
Thomas |
![]() | Thomas Braun | Re: Hint please? on Thu, 24 May 2012 08:31:14 +0200 Dominik Perkovic wrote:
> oDialog:resize := { | aOldSize, aNewSize, oSelf | ;
> MyResize(aOldSize, aNewSize, oBMP) }
>
> I guess I should use oDlg instead of oDialog (as I did with mentioned 3
> lines)but how do I get values for aOldsize, aNewSize, oSelf?
Those values are passed to the "code block" ( -> look this up in the
documentation, C calls this "function pointer") by the system when the
resize event occurs.
The above is a construct named "callback slots" - those are iVars (object
properties, member variables) that contain a pointer to executable code.
You should also read the first three basic chapters of the documentation -
read them several times, look into sample code, read them again... until
you get the feeling that you actually understand something |
![]() | Raymond Fischbach | Re: Hint please? on Thu, 24 May 2012 21:48:50 +0200 Dominik Perkovic a écrit : > Let me try to reply to all replies in one post |
![]() | Zupan Miran | Re: Hint please? on Fri, 25 May 2012 08:41:21 +0200 I totally agree with Raymond. I also using TopDown GUI lib, but maybe yout father wil be more familiar with Express lib. You realy will save yourself hundreds of hours learning Xbase++ and creating your first application with one of this GUI library. On my web site you can download a demo version of accounting aplication writen entirely in xBase++ and TD lib Puno pozdrava Miran Zupan -------------------------------- SPC Zupan Miran s.p. Tomanova pot 9, 1251 Moravce, Slovenia TEL: (xx386) 59 / 045 - 909 GSM: 041/ 620 - 753 E-mail: spczupan@spc-zupan.si Web site: www.spc-zupan.si -------------------------------- |
![]() | Thomas Braun | Re: Hint please? on Fri, 25 May 2012 14:19:01 +0200 Raymond Fischbach wrote: > If you keep doing it the way you have started, you are following a > terribly long learning curve. > > That is why I advice you to spend some $$$ on external libraries. There > are 3 that I am aware of: > > - Xpress++ ... > > TopDown Library ... > > Xclass++ ... Do you really think adding complex third party libraries will help in learning Xbase++? At least Xpress++ was built with the average command-oriented Clipper developer in mind and uses a lot of Clipper concepts and logic. Thomas |
![]() | Zupan Miran | Re: Hint please? on Fri, 25 May 2012 15:21:35 +0200 Dne 25.5.2012 14:19, piše Thomas Braun: > Do you really think adding complex third party libraries will help in > learning Xbase++? I think, the end point is migration old (father's) clipper aplication to windows environment ... When I look into the past, I first try with pure xBase, after a few loong months (almost year...), I give up and try with TopDown lib. I must be honest, this was not an easy job also, but then I start learning (again!) source code from that lib and now I am very pleased with the results and products that I made. OK, I know, it's not perfect, but .... And, again, without that lib (or Express++) I never learn xBase and migration time from clipper to xBase windows will end years ago. Best regards Miran Zupan |
![]() | Raymond Fischbach | Re: Hint please? on Fri, 25 May 2012 19:00:16 +0200 Thomas Braun avait prétendu : > Raymond Fischbach wrote: > >> If you keep doing it the way you have started, you are following a >> terribly long learning curve. >> >> That is why I advice you to spend some $$$ on external libraries. There >> are 3 that I am aware of: >> >> - Xpress++ > ... >> >> TopDown Library > ... >> >> Xclass++ > ... > > Do you really think adding complex third party libraries will help in > learning Xbase++? > > At least Xpress++ was built with the average command-oriented Clipper > developer in mind and uses a lot of Clipper concepts and logic. > > Thomas As I said, I am not using Xpress++ and pointed out that other people would give better advices on it. I know that many people like it as it has the Clipper flavour. I can also say that TD is definitely much more easier to use that pure Xbase++. Personnaly, I wanted to get rid of this kind of programming and wanted to go to full GUI directly. With TD lib, I could produce my first application in a couple of months. It was not a huge one but it was quite complex. After 6 months I was able to produce very nice peaces of code that I showed at the DevCon in Holland. And many people told me that they were impressive. My opinion is simply that using TD, I understand the things much better and faster than with any Xbase++ sample and/or manual. To finish, I am sure that using any of the - what you say "complex" library is far away easier than the method you followed with WAA. Regards, Raymond |
![]() | Allen Lee | Re: Hint please? on Fri, 25 May 2012 10:47:09 -0700 Hi Raymond: Have you tried WAA? There is nothing easier than WAA. |
![]() | Allen Lee | Re: Hint please? on Fri, 25 May 2012 10:52:34 -0700 Hi Raymond: Have you tried WAA? There is nothing easier than WAA. You will be amazed at how fast an application can be developed in WAA. |
![]() | Raymond Fischbach | Re: Hint please? on Fri, 25 May 2012 20:13:52 +0200 Allen Lee a couché sur son écran : > Hi Raymond: > Have you tried WAA? > There is nothing easier than WAA. > You will be amazed at how fast an application can be developed in WAA. Hi Allen, You are thinking right, I never tried WAA. I thought anyway that you have to write the application using Xbase++ though. If I am right, where is WAA easier than Xbase++? Anyway, I was not trying to be the troll here. I was simply indicated that in my opinion, the external libraries could really help newbies with windows programming under Xbase++ because this is my experience. Best regards, Raymond |
![]() | Allen Lee | Re: Hint please? on Fri, 25 May 2012 12:01:38 -0700 What does it tell you about the complexity of Xbase++ when you need the help of external libraries to understand windows programming? WAA does not require the long steep learning curve of the Xbase++ GUI code set. WAA only requires Xbase Clipper code superset. Most people already know HTML, CSS and a little javascript. When WAA is combined with HTML, javascript and CSS then the learning is very gentle. The development is much faster because far less coding is required due to the high-level nature of HTML. |
![]() | Thomas Braun | Re: Hint please? on Tue, 29 May 2012 08:38:29 +0200 Allen Lee wrote: > Most people already know HTML, CSS and a little javascript. Quite obciously, Dominik does not nok much about programming as such... so adding any kind of additional layer to the complexity does not help. > The development is much faster because far less coding is required due > to the high-level nature of HTML. You are joking? Creating business-grade applications for the web is very complex because with plain HTML you don't get anywhere at all. |
![]() | Allen Lee | Re: Hint please? on Tue, 29 May 2012 00:22:05 -0700 On 5/28/2012 11:38 PM, Thomas Braun wrote: > Allen Lee wrote: > >> Most people already know HTML, CSS and a little javascript. > > Quite obviously, Dominik does not know much about programming as such... so > adding any kind of additional layer to the complexity does not help. I found the GUI layer to be many times more complex than the HTML layer. >> The development is much faster because far less coding is required due >> to the high-level nature of HTML. > > You are joking? I found comparative functionality to require far more lines of code for GUI than for HTML. > > Creating business-grade applications for the web is very complex because > with plain HTML you don't get anywhere at all. I found GUI to be much more pedantic and less intuitive than HTML, CSS and javascript. I get the impression that you do not agree. Am I wrong in thinking that you left GUI for WAA for all the reasons that I have previously stated? |
![]() | Thomas Braun | Re: Hint please? on Tue, 29 May 2012 16:17:28 +0200 Allen Lee wrote: > I get the impression that you do not agree. > Am I wrong in thinking that you left GUI for WAA for all the reasons > that I have previously stated? I left desktop-based GUI because I needed to build a web based application. I did not leave beacause I wanted to - but I don't regret. Despite the fact that ther where a lot of things to learn, it was great fun |
![]() | Rudolf Reinthaler | Re: Hint please? on Tue, 29 May 2012 08:47:08 +0200 Hello, I was one of the first XBase++ and eXPress++ users. For me it never was necessary to dig deeper into pure XBase++ code for writing all my software, especially for writing complex dialogs. For createing most of my dialogs I am even faster with coding than with the form designer. The code is very compact and so also finding errors is much easier for me. eXPress++ does all what I need (and much more) and saves very much time and so also money. Also TD lib helps a lot. I see no need for me actually to know the complete background, it only would take time that I better use for more important things. So I think if someone is really interrested for the background and have enough free time, it makes sense, but for writing professional and robust applications I see no need for this. Of course this is only my opinion based on my experiences. regards Rudolf |
![]() | Allen Lee | Re: Hint please? on Wed, 23 May 2012 21:40:58 -0700 Hi Dominik: What you are learning here now is not fun. In your father's time, Clipper was fun. Forget about the coding set that creates desktop GUI EXE files. Follow Thomas Braun's path and create GUI web applications. Use WAA with the Xbase coding set that derived from Clipper. The benefits to you are: 1. You will be far more productive because the coding is simpler and smaller. 2. Your father will understand the code and be able to help you. 3. You can run a web app on a desktop machine as if it were an EXE. 4. You can load your web app on a server and run it from any machine in the world that has an internet connection. 5. In the process, you will learn html and maybe javascript. 6. Your web app functionality can be the same as a desktop EXE. |
![]() | James Loughner | Re: Hint please? on Thu, 24 May 2012 02:24:40 -0400 I disagree.
You may end up doing this but you really need to understand GUI Class
event driven programming to get by in any windowed environment.
How it works
the Windowed environment keeps track of where all the windows are and if
they are being clicked or if the mouse is over then etc. When the
environment senses say a mouse click it sends a message to the object
that the mouse is over at that moment. The program that owns that object
receives that message and thought the event loop passes it to the
correct object's handleEvent method along with any info about the event
where it then may call other methods that deal with a click.
If you look at the docs for any of the XBP classes you will find all
sorts of methods that for the a large part deal with events.
Classes are truly neat. An object is just an instance of a class
definition. A class is basically a data structure and a set of methods.
Methods are just functions that are attached to a class.
Real simple example Note these will only work in console mode not full
GUI I am using text based commands here just doing it in a class structure.
CLASS mysimpleclass
EXPORTED:
METHOD INIT, PRINTIT
VAR ctext
ENDCLASS
METHOD mysimpleclass:Init()
::cText := "Some text"
RETURN Self
METHOD mysimpleclass:PRINTIT()
? ::cText
RETURN Self
Using Exported indicate the following variables and methods is visible
to the world. There are ways to limit that, read the docs.
The neat part of classes is that you can use inheritance to make a
modified version or sub-class
CLASS NewClass FROM mysimpleclass
EXPORTED:
METHOD INIT
ENDCLASS
METHOD mysimpleclass:Init()
::cText := "New text"
RETURN Self
This class has all the stuff from mysimpleclass but I overloaded the
init method in this case which now uses a new text string. So by
overloading we can replace selected sections of the original class but
don’t have to reprogram the whole thing.
How to use it?
PROCEDURE MAIN() //compile as a console app
LOCAL oClass
oClass := mysimpleclass:New()
oClass:PrintIT()
now the sub class
oClass := Newclass:New()
oClass:PrintIT()
lets change the string value
oClass:cText := "Hello world"
oClass:PrintIT()
INKEY(0)
RETURN
Note that class do not have to be GUI parts but GUI parts are classes.
This is an extremely powerful way to write programs.
I seldom write a function or procedure any more almost all my code is
now in class format.
Checkout my vector class and others here
http://gogalthorp.com/splash
Jim
On 05/24/2012 12:40 AM, Allen Lee wrote:
> Hi Dominik:
> What you are learning here now is not fun.
> In your father's time, Clipper was fun.
>
> Forget about the coding set that creates desktop GUI EXE files.
>
> Follow Thomas Braun's path and create GUI web applications.
> Use WAA with the Xbase coding set that derived from Clipper.
>
> The benefits to you are:
> 1. You will be far more productive because the coding is simpler and
> smaller.
> 2. Your father will understand the code and be able to help you.
> 3. You can run a web app on a desktop machine as if it were an EXE.
> 4. You can load your web app on a server and run it from any machine in
> the world that has an internet connection.
> 5. In the process, you will learn html and maybe javascript.
> 6. Your web app functionality can be the same as a desktop EXE.
>
>
> |
![]() | Allen Lee | Re: Hint please? on Thu, 24 May 2012 01:15:13 -0700 You have described a very steep learning curve for a beginner. Wouldn't the event driven programming be more easily managed with WAA and javascript? |
![]() | James Loughner | Re: Hint please? on Thu, 24 May 2012 22:12:24 -0400 Well Input via HTML even Javascripted is very primate compared to Pure Xbase. It is fine for a cloud like situation where all processing happens on the servers and you have minimum input requirements. So I believe you need to write local programs first then learn the HTML and Javeascript, if wanted, which is also a steep learning curve. Learn about event driven GUI OPP and it applies to other real languages like Java c++ and python etc. The methodology is the same just different syntax. Jim On 05/24/2012 04:15 AM, Allen Lee wrote: > You have described a very steep learning curve for a beginner. > > Wouldn't the event driven programming be more easily managed with WAA > and javascript? > |
![]() | Thomas Braun | Re: Hint please? on Thu, 24 May 2012 15:00:57 +0200 Allen Lee wrote: > Forget about the coding set that creates desktop GUI EXE files. > > Follow Thomas Braun's path and create GUI web applications. > Use WAA with the Xbase coding set that derived from Clipper. The downside of this is that creating a decent web-based (aka browser-based) application is not a trivial task. Creating a browser GUI that acts like a desktop app involves a lot of different skills, such as HTML, CSS, javascript, knowledge of the DOM and the variations and oddities you will get by using at least 4 or 5 different browsers on different platforms. > The benefits to you are: > 1. You will be far more productive because the coding is simpler and > smaller. See above |
![]() | AUGE_ OHR | Re: Hint please? on Wed, 30 May 2012 00:43:51 +0200 hi, >What you are learning here now is not fun. >In your father's time, Clipper was fun. if you do not have fun with your work something is going wrong |
![]() | Dominik Perkovic | Re: Hint please? on Thu, 24 May 2012 19:55:55 +0200 Okkkkk.. I admit I was a bit confused with discussion after my previous post, I wondered if I have said something wrong. So I called my father, he has read and smiled saying something like 'get used to it, thats the way we are, we like to discuss things'. Jimmy I'm a bit busy with school so I'll have to try your code this weekend. I'm using XP SP3 and have no clue what MsComCtl.ocx is but will google it. Source Code Editor.. I've googled 'VX IDE' but no luck. Any link please? Thomas 'You should also read the first three basic chapters of the documentation'.. could you tell me which (where is) documentation you were referring to? Again, thank you all |
![]() | AUGE_ OHR | Re: Hint please? on Thu, 24 May 2012 21:35:00 +0200 hi, > I'm using XP SP3 and have no clue what MsComCtl.ocx is but will google it. OCX are activeX Components. for Visual Basic Users MS was introuduce the MSCOMCTL.OCX which is need for some XbParts like XbpStatusbar() or XbpToolBar() new Visual Basic Versions moved to the .NET Platform so Win7 dont have MSCOMCTL.OCX if OCX is not "default" on Win7 like on XP Machine you need to "install" it ( need Admin rights ). also some OCX seem to need Admin rights when run ( on 64bit ? ) > Source Code Editor.. I've googled 'VX IDE' but no luck. Any link please? you should find "VX IDE" at Alaska Website. it include Editor Help Debugger btw. which Xbase++ Version are you using ? greetings by OHR Jimmy |
![]() | Dominik Perkovic | Re: Hint please? on Fri, 25 May 2012 19:29:48 +0200 Maybe this is naive question but still: if TopDown or Express++ do the job better, why do I need Xbase++ then? And, regarding my father.. he won't let me use his programs. He says that each time he migrated to new software he pulled a bunch of crap together with old programs. He says scratch is where I start. |
![]() | Pascal Boivin | Re: Hint please? on Fri, 25 May 2012 19:54:00 +0200 Dominik Perkovic wrote: > Maybe this is naive question but still: if TopDown or Express++ do > the job better, why do I need Xbase++ then? Xbase give us low level objects. You need to do many things to work with them. For example, the object XbpQuickBrowse do look good, but it's read only. After you add a few pages of code to do a derived class from XbpQuickBrowse, you can finally have a sortable and editable browse. That is what Topdown and Express do. They add the missing source code over xbase so you can concentrate on the workflow, instead of trying to reinvent existing objects. > And, regarding my father.. he won't let me use his programs. He says > that each time he migrated to new software he pulled a bunch of crap > together with old programs. He says scratch is where I start. Your father is funny but realist! |
![]() | Dominik Perkovic | Re: Hint please? on Fri, 25 May 2012 20:15:24 +0200 My newbie thinking is: Alaska should buy those 'libs' and put that all together in one product. And make one good step-by-step manual. For newbies of course |
![]() | AUGE_ OHR | Re: Hint please? on Fri, 25 May 2012 21:18:39 +0200 hi, > Alaska should buy those 'libs' and put that all together in one product. your Father had the same "Problem" with Cl*pper 3-PP LIB 3-PP LIB are to enhance a "basic" Product to make live easy. if your Father do not use Cl*pper 3-PP LIB ( except CT Tools ) you can migrate the "old" Cl*pper Code into 32bit Hybrid Mode "quick" just in some Days. the big Step is "full GUI" meen using Windows Controls. Xbase++ Controls, called XbParts, are "Wrapper" for those Windows Controls and give you a Object to work with OOP there are several Xbase (all Version ) "Wrapper" doing allmost the same as you can see it for harbour Constribution. if you know how, you can build you own "Wrapper" for "native" Control using OS() "given" DLL ... so you can say Windows itself is the bigges "free" Toolbox. > And make one good step-by-step manual. For newbies of course |
![]() | Raymond Fischbach | Re: Hint please? on Fri, 25 May 2012 20:25:49 +0200 Il se trouve que Dominik Perkovic a formulé :
> Maybe this is naive question but still: if TopDown or Express++ do the job
> better, why do I need Xbase++ then?
>
> And, regarding my father.. he won't let me use his programs. He says that
> each time he migrated to new software he pulled a bunch of crap together with
> old programs. He says scratch is where I start.
These are LIBRARIES.
This means that they are upper level code for Xbase++ but they still
use Xbase++. These libraries can do nothing without Xbase++.
If you start from scratch, then do what I did: forget Clipper and go
straight GUI and OOP. For this I used TD but as I already said, other
libraries can fit your needs better.
Just spend a few hours/days on looking at them (you can find the links
on Alaska web site), you will have a better understanding.
But as an example, your program to create a dialog can be replaced in
TD by:
oDlg := tdDlg(nRows,nCols,cTitle)
where nRows, nCols and cTitle are preset parameters.
Simple, isn't it?
Best regards,
Raymond |
![]() | Pablo Botella Navarro | Re: Hint please? on Sat, 26 May 2012 14:17:15 +0200 Hi, Just will told a experience, in case can help. When my nephew Andreu was start to learn programming about 5 years ago I was recommend him to start learning basic things with Xbase++ but in clasic clipper style just using the console and a few input/?/wait commands to retrive or put information. He was using some of my old Clipper books and play with it for about 1 year Later he was found easy to start using Javascript because basic programming concepts was the same, and later was start using php. Currently he has 18 and is writting very nice php code, and I have delegated to him some small projects for customers with nice results. This year that has started in the school he says that found easy to start programing in C because he was aquire a solid programming. Regards, Pablo Botella |



Dominik
greetings by OHR
Jimmy