Standard libraries for use in all my applications

Just starting out? Need help? Post your questions and find answers here.
hmasr
User
User
Posts: 15
Joined: Wed May 16, 2012 8:08 pm

Standard libraries for use in all my applications

Post by hmasr »

I have a group of controls that will work together to do a specific function. This group can be repeated in the same application or in other applications and I want them to always act the same way. I put a procedure in a pbi file to create the group, so all what I need is to include this file and call the procedure. The problem now is where to write the events for this group without the need to change the code each time I use them?
Last edited by hmasr on Tue Jun 05, 2012 1:24 pm, edited 1 time in total.
User avatar
Bisonte
Addict
Addict
Posts: 1306
Joined: Tue Oct 09, 2007 2:15 am

Re: Standard library for use in all my applications

Post by Bisonte »

ohmmmmmmmmmm....

Image

Code: Select all

If purebasicforum = codeexample
   CallFunction(Help)
else
   End
endif
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
hmasr
User
User
Posts: 15
Joined: Wed May 16, 2012 8:08 pm

Re: Standard library for use in all my applications

Post by hmasr »

May be the subject is misleading, not necessarily all the procedure to be in one file.
For example, I am trying to simulate MS Access multi-column combo using string, button, and listview gadgets.
When you click the button or string gadget the listview will appear then when a row is selected the listview will disappear again and the selected value will be written to the string gadget
I want to find a way to write all these functionalities in a procedure(s) that I can call anywhere in the application without the need to write further code in the application’s event loop.
User avatar
Bisonte
Addict
Addict
Posts: 1306
Joined: Tue Oct 09, 2007 2:15 am

Re: Standard libraries for use in all my applications

Post by Bisonte »

And again... There is a running code needed to describe that what you want.
So we can say if it's possible or we can help you to make it so...

I don't know what your procedures need or how they look like... so my post above ;)
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Post Reply