Search found 7 matches

by 4otomax
Thu Sep 23, 2021 2:46 am
Forum: Coding Questions
Topic: Problem with unicode character representation with the pbPDFModule by Thorsten1867
Replies: 1
Views: 1776

Re: Problem with unicode character representation with the pbPDFModule by Thorsten1867

I think that Arial, Helvetica and some other fonts are already contained in this library (but only ASCII range), so they are not loaded from external files. Extraneous characters at the beginning of a line do not always appear, depending on the font used. I did not bother and use drawing in a vector ...
by 4otomax
Thu Sep 23, 2021 1:33 am
Forum: Coding Questions
Topic: Check sqlite db table columns
Replies: 9
Views: 2624

Re: Check sqlite db table columns

I use DB Browser for SQLite for syntax checking. It's free and portable, can make SQL queries and have autocomplete.
by 4otomax
Thu Sep 23, 2021 12:55 am
Forum: Coding Questions
Topic: Same Gadget ID's in different windows
Replies: 13
Views: 2558

Re: Same Gadget ID's in different windows


Here is another suggestion.
I like to use the enums and structure them as in the example below.


I use very similar windows' and gadget's names. My mistake was to use default IDE settings. Next time I will disable the use of #PB_Any in combination with variables for gadget id's. Now I have no ...
by 4otomax
Tue Sep 21, 2021 12:32 pm
Forum: Coding Questions
Topic: Same Gadget ID's in different windows
Replies: 13
Views: 2558

Re: Same Gadget ID's in different windows

Thanks to all for answers!
There is about 200 gadgets and 8000 code lines in my app, so I need to think what will be the best.
This is my hobby project (I'm not a programmer) and I have been writing this program for 2 years. It's funny, that I catched this bug only now. I have never opened all ...
by 4otomax
Tue Sep 21, 2021 11:43 am
Forum: Coding Questions
Topic: Same Gadget ID's in different windows
Replies: 13
Views: 2558

Re: Same Gadget ID's in different windows


So you use the returned gadget ID in the Select EventGadget() : Case ... section?

Yes.

One more question. This is code in main loop:

Case #PB_Event_CloseWindow
CurrentWindow.l = EventWindow()
Select CurrentWindow
Case Window_main
ExitProgramRequester()
Default
CloseWindow(CurrentWindow ...
by 4otomax
Tue Sep 21, 2021 10:42 am
Forum: Coding Questions
Topic: Same Gadget ID's in different windows
Replies: 13
Views: 2558

Re: Same Gadget ID's in different windows


On the other hand, a bound gadget event should be released when the gadget is released.


I don't use bind/unbind gadget events functions and process all gadget events in main loop. Can I leave gadget events for main window gadgets in a main loop (where WaintWindowEvent() is) or it is a bad idea ...
by 4otomax
Tue Sep 21, 2021 2:21 am
Forum: Coding Questions
Topic: Same Gadget ID's in different windows
Replies: 13
Views: 2558

Same Gadget ID's in different windows

Hello, can anyone help me please?
There is 6 different windows in my app created with Form Designer. Gadgets are created using #PB_Any, and their ID's are stored in variables.
Each time I open any of secondary window, PB assigns new value to gadget's ID, but this ID is the same for other gadget in ...