|
Post by Walt Decker on Dec 9, 2022 14:41:32 GMT -5
That was a silly question by me. If JB does not support API calls it will not support a .TKN with API calls in it.
I will attempt a form designer for JB after Christmas.
Here is where I am with the form designer for LB. Needs a lot of work, but I am slowly getting there. The .zip contains:
CTL_COLOR.DLL MNUCB.DLL TABCTL.DLL QHELP.TXT APIFORMS_015._BAS
Hope it does not blow-up but if it does, please let me know.
|
|
|
Post by xxgeek on Dec 9, 2022 17:47:38 GMT -5
Thanks Walt. I tried it out for a few minutes, and without any help figured out how to use it, THEN, I noticed the file with the help.
It was easy to figure out. Not sure if you want to hear any issues yet, since it is early in development and you must know the obvious ones I noticed in just a few minutes, but here's what I came across.
Opened the General tab and was selecting a font I believe, and the color window that came up was unresponsive. Wouldn't cancel out either. Couldn't do anything after that. The color choice window had control. Had to close the app, then all the opened windows closed, no errors. Didn't go back and try the stylebits.
Before that happened I put everything in the list onto the form, went and grabbed the bas file created with the code, and ran that. It works.
Looking forward to the finished product, not for JB though.
LB can run JB code, but JB can't run LB code unless that code uses only the commands available to both. There are a few commands in LB other than what we've discussed already that are not available in JB. Most I believe can be worked around using other commands.
Impressive work Walt. I've read many of your posts, and code. I like your writing style. It looks like what a person coding for many years develops to make life easier, with less errors. Makes any errors easy to spot when the code is consistent. Like naming your function FN.something for instance. And RetVal indicating a return value. Makes a lot of sense.
Anyway, I think I may just make up a few templates, or use data lines. There aren't very many things a person can put on a form. I count 12 items in freeform. 12 items by 3 or 4 lines of code each could be done fairly easily with data lines I think.
Lots of other stuff to do before attempting this.
Have yourself a great holiday season Walt.
|
|
|
Post by Walt Decker on Dec 9, 2022 19:05:24 GMT -5
Yes, I noticed that just a few minutes ago. The problem is in SUB SEL.COLOR Just change ColorOpen = 1 to ColorOpen = 0 and it will work.
Glad it is fairly intuitive. I strive to achieve that.
Even at this stage I appreciate input. If I can fix errors early it is much easier to than later.
Thank you.
|
|
|
Post by Walt Decker on Dec 16, 2022 17:24:58 GMT -5
Updated the zip with a fully functional designer for ONE FORM ONLY.
LEFT TO DO: Set up file system so form(s) files can be accessed and viewed/updated at a later time Enable multiple forms Enable a test option Enable a view option Design an immediate file viewer
|
|
|
Post by xxgeek on Dec 17, 2022 17:36:32 GMT -5
No, but JB can Run an exe written in LB
I'll checkout the new zip files and get back to you.
|
|
|
Post by xxgeek on Dec 17, 2022 18:23:26 GMT -5
Ok, back from testing.
The colorOpen = 1 issue was not addressed as yet in the code. Once edited, no problems with font color change made.
Changing background color did not work out. The test.bas file, when Run, had the font color chosen, but background remained the same "lightgray" looking.
Other than that, everything else worked well.
YES, I like it so far. But I think JB will have trouble since the code generated is for use in LB only. Still, great app for quick code in LB
|
|
|
Post by Walt Decker on Dec 17, 2022 19:33:42 GMT -5
Thank you, xxgeek. I will take care of that in the next iteration. I really appreciate the feedback and help.
If I can get it done before Christmas I will start on a JB version. That will be a challenge. I doubt that I will get it done before going in for some more plumbing repair.
|
|
|
Post by xxgeek on Dec 17, 2022 19:46:16 GMT -5
Tried it again and paid closer attention.
When selecting the background color and applying it, the textbox stays with the system color, and doesn't get updated either. Start there.
Keep posting the updates, I'll keep testing them and reporting back.
|
|
|
Post by Walt Decker on Dec 18, 2022 10:09:40 GMT -5
I think you are using an older version. The latest version(020) the ColorOpen variable is set correctly and when I run it the background colors of list boxes, combo boxes, and text boxes are set correctly. The background colors of all other controls remains the same as the form background. However, I will triple check.
|
|
|
Post by xxgeek on Dec 18, 2022 12:19:29 GMT -5
You are correct, I must have grabbed the wrong file after downloading.
What I tried... Yellow background with red text, with sunken styles.
What I see when running the test.bas file... Yellow form background, white textbox, white combobox, white graphicbox, white listbox, and red statictext. And the sunken style worked too.
I'm curious, will the rest of the controls be included in the final version. Texteditor & bmpbutton?
|
|
|
Post by Walt Decker on Dec 18, 2022 13:03:49 GMT -5
I am not sure. There is not much I can do with the text editor other than allow placement setting and setting the font and perhaps the background color; maybe the extended styles. I can emulate it with a multiline text box and create a menu for it as LB does. That will take a little special coding.
As for the BMP button, other than placing it, nothing can be done. Perhaps set the extended style. I would also have to supply a dummy bmp file for it.
On the design form all of the controls, with the exception of the graphics box, are real controls with which you can interact. The graphics box and text editor are LB propriety controls over which I have little control. I will play around with those after I get some of the more important items completed.
I am glad that the system, so far, seems to be working properly. Thank you for testing it for me. I really appreciate it.
|
|
|
Post by xxgeek on Dec 18, 2022 14:16:40 GMT -5
No problem Walt, feedback can be scarce, I know the feeling. There are a handful of members at the JB forums that help and good help at that. The majority of the members however remain pretty quiet. Glad to help. Let's get it done for X-MAS as planned. You don't need to do a JB version Walt, but if you have the time, and enjoy it, well then have at it. But I'm pretty sure I can create something that works. Not as elaborate as yours, but quick generic code users can edit and make work. BTW - I checked the line count of this app, over 6000 lines so far. No wonder the clipboard chokes on it. Have a great day Walt, I gotta get back to a problem app I'm working on for JB, a search app that searches all the JB files from Help, Freeform and Tutorial to all the JB Example files, and Functions. The textbox being used chokes at the 11th character typed. I used a "W" as the 11th character and only half of it shows. Very strange. Up until using the W as the 11th char, I thought the number 11 was telling me that I needed to use an array, but there are no errors happening. Now that I see the partial W it seems as though another control is overlapping the textbox where anything typed past that point is not seen, because the search includes any char's typed after the 11th, even if they are invisible. Fun stuff The thing is, there is no other control there to overlap the textbox.
|
|
|
Post by Walt Decker on Dec 18, 2022 18:51:31 GMT -5
That sounds like a scrolling problem. Try adding a text box just below the problem one and test it for scrolling. If the problem persists in the second control there is probably something wrong with to tokenizer. Perhaps the ES_AUTOHSCROLL style is being left out.
|
|
|
Post by Rod on Dec 20, 2022 6:26:48 GMT -5
I have had a chance to open this and try a few things. It looks really nice, that's the first thing. I was itching to change font and snap to size, also to realign controls once placed.
As far as API and JB is concerned I don't think it will hold you back. For JB you will distribute a fully functioning LB .exe. Provided the code it produces does not use API directly or Stylebits directly it should work well.
Static images for bmpbutton and a blank box for a graphicbox are what we are used to now.
|
|
|
Post by Walt Decker on Dec 21, 2022 9:17:19 GMT -5
Thank you for taking a look at it, Rod. I appreciate all the comments I can get, both good and bad.
I am not sure that is an option. The LB runtime and support files are well over a megabyte compressed, an when the .TKN is considered I am looking at over 2MB. That makes it difficult to post on most web sites.
|
|