Recent

Author Topic: Help Needed(Closed)  (Read 8932 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #15 on: March 05, 2021, 10:22:46 pm »
My basic question was answered. It doesn't run well or not at all on Unix. I can live with that. Answer is simple, Windows Only.

As for the UI. Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to. And once you reach that age there isn't a lot anyone can do about that. Hopefull you'll learn that. It's a good thing.

And by the way. The reason you have to click on 'DataSet' and select one from the listbox is because you can have more that one. I have FreePascal, Phonebook,
House, Passwords, Appliance Warranty, Autos and Toyhauler. It's easy to copy all this stuff to a thumbdrive for backup.

Thanks for the Help


FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: Help Needed
« Reply #16 on: March 05, 2021, 10:35:38 pm »
Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

Like writing a decent subject line for your posts? That was obvious 999 messages ago.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1111
  • Professional amateur ;-P
Re: Help Needed
« Reply #17 on: March 05, 2021, 11:43:31 pm »
Hey JL,

You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

I'm at 51 an I'm fighting with every fibre of my being to NEVER turn into the grumpy old fart that you portray. Being old doesn't excuse being rude or a troll.
I didn't say you were obligated to adhere, I said it would be nice of you to try and show some empathy towards your fellow human beings.

You know, it's because of people like you that the world is in the covid-19 crisis that it is. Your selfish, obstinate and utterly in the wrong, but you'll never admit that you're wrong because you're just an ugly person inside.

I'm now really sorry that I ever extended any sympathy towards you. I'm even gonna delete that sorry excuse of a program so i don't get the cuties from you!!

Have a good life!

No Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Help Needed
« Reply #18 on: March 06, 2021, 02:53:11 am »
As for the UI. Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

So why ask for help if you have it all figured out?
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #19 on: March 06, 2021, 03:08:34 am »
As for the UI. Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

So why ask for help if you have it all figured out?

I would have thought that was obvious in the first post. "Will this run on Unix". The answer was no.

FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #20 on: March 06, 2021, 03:20:18 am »
This was posted in "Beginners".

The program isn't meant for programmers who know it all. You don't have to look up anything.

But, as a beginner is is very difficult to know what you don't know. First off you don't know what to search for or where to look.

And the Old Line "Read the Manual!' Sucks. Few read the manual while trying to learn a language. I just got tired of typing in the google search box "Free Pascal String Function".


For me, and maybe it's just me the documentation for PFC is nothing to brag about. But here again it probably doesn't really matter that much. Usage of FreePascal isn't growing by leaps and bound.
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Help Needed
« Reply #21 on: March 06, 2021, 05:33:01 pm »
As for the UI. Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

So why ask for help if you have it all figured out?

I would have thought that was obvious in the first post. "Will this run on Unix". The answer was no.

Huh, sorry to interfere here but I dont understand why your code (with some modifs) should not work on Unix.

Maybe the first thing to do is remove {$IFDEF UseCThreads} (for me strange that Lazarus gives it by default):

Code: Pascal  [Select][+][-]
  1. program QuickList;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. uses
  6.   {$IFDEF UNIX} // no other conditions.
  7.   cthreads,
  8.   {$ENDIF}

And some tuning in the config path then your code should perfectly run under Unix.

(And dont forget the undoubtedly true mirror-theory: a person that describes a other person, describes in fact himself).

Fre;D
« Last Edit: March 06, 2021, 06:08:46 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #22 on: March 06, 2021, 06:50:41 pm »
@ Fred vS

Your not interfering. Thanks for the help. I'll try it. But I don't have any way to test the results.

Yea, I was beginning to think there was a new standard on the "Beginners board". In the course of not providing help you get to call the person names.

I do fail to see how that will promote FreePascal. May they could change the name of the Beginners Board to "Personal Insults". 
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Help Needed
« Reply #23 on: March 06, 2021, 07:11:59 pm »
@ Fred vS

Your not interfering. Thanks for the help. I'll try it. But I don't have any way to test the results.

Yea, I was beginning to think there was a new standard on the "Beginners board". In the course of not providing help you get to call the person names.

I do fail to see how that will promote FreePascal. May they could change the name of the Beginners Board to "Personal Insults".

Hello JLWest.

Sorry to repeat myself:
Quote
(And dont forget the undoubtedly true mirror-theory: a person that describes a other person, describes in fact himself).

Now about your project, only changing, like gcarreno-when-he-is-great explained:

Code: Pascal  [Select][+][-]
  1. Procedure TForm1.VerifyInstallPath;
  2.   Var
  3.    Found : Boolean = False;
  4.    Path  : String;
  5.   begin
  6. {$IFDEF WINDOWS}
  7.    Path := INSTALLPATH + 'QuickList.exe';
  8. {$ELSE}
  9.    Path := INSTALLPATH + 'QuickList';
  10. {$ENDIF}
  11.    Found := FileExists( Path );
  12.    if ( Not Found ) then begin Halt; end;
  13.  end;

And it works here on Linux 64 bit.

But, about the GUI appearance, maybe you should think to make the form sizable because here on a 1024x800 it is not readable.

Fre;D


 
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Help Needed
« Reply #24 on: March 06, 2021, 07:51:50 pm »
As for the UI. Not willing to change. You state I have to adhere. "No I don't". At 79 years old I don't have to do one thing I don't want to.

So why ask for help if you have it all figured out?

I would have thought that was obvious in the first post. "Will this run on Unix". The answer was no.

Sorry, I misunderstood.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #25 on: March 06, 2021, 09:07:37 pm »
@ Fred vS

Not sure I understand all the ins and outs of resizing.
I guess I could create a trunk and if it work OK and if not delete the trunk.

Thanks.



FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Help Needed
« Reply #26 on: March 06, 2021, 10:11:24 pm »
@ Fred vS

Not sure I understand all the ins and outs of resizing.

Here, compiled with fpc 3.2.0 and LCL GTK2 widget-set, the main form is not sizable, you may only move it but nor re-size it.
(Note that I dont know well LCL widget-set and did not check the gui code, did you set the main-form as sizable?)

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Help Needed
« Reply #27 on: March 06, 2021, 10:33:55 pm »
@ Fred vS

Not sure I understand all the ins and outs of resizing.

Here, compiled with fpc 3.2.0 and LCL GTK2 widget-set, the main form is not sizable, you may only move it but nor re-size it.
(Note that I dont know well LCL widget-set and did not check the gui code, did you set the main-form as sizable?)

Re-hello.

I think that the main form is not sizable because you added TSizeConstraints.
If you remove it (set all min-max to 0) , the form will be re-sizable.
Also you may set 'AutoScroll := true".

« Last Edit: March 06, 2021, 10:39:46 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: Help Needed
« Reply #28 on: March 06, 2021, 11:03:06 pm »
Yes you are right. I set the main form constraints. I'll make the changes and post, probably tomorrow,
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1111
  • Professional amateur ;-P
Re: Help Needed
« Reply #29 on: March 07, 2021, 12:01:12 am »
Hi all,

I think I blabbered way too much without putting some effort on the demonstration part.

And no, I'm not backing up on telling a 79 year old that he is rude and obstinate.

So I had some time to spare and here's version v0.1 of QLProper and some screen shot under Ubuntu and Wine, since I don't have a Windows machine.

At this point it does:
  • Loads datasets configured on an INI file: qlproper.ini
  • Loads the mm.txt content
  • Loads first level content
  • Loads and Saves Form.[Top, Left, Width, Height, WindowState] and the PairSplitte's Position under GetAppConfigFile()

Next post will be level 2 data retrieval.
And since this is supposed to be hierarchical, in a near future I'll port the app to use TVirtualStringTree
I'm not sure If I'll go all the way into the editing/creating of either datasets and/or levels of data in the datasets.

This was with a very superficial look at the JL's code. At the moment I understand mm.txt, a bit about the doublex folder and the hierarchy of the content folder (I think. It's all very confusing).
I still don't understand:
  • How to use alltags.txt
  • How to use tags.txt
  • How to use items.txt

Let the comments and replies bathe me with your opinions...

Cheers,
Gus
« Last Edit: March 07, 2021, 12:32:24 am by gcarreno »
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018