Page 1 of 1

Standard libraries for use in all my applications

Posted: Tue Jun 05, 2012 9:01 am
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?

Re: Standard library for use in all my applications

Posted: Tue Jun 05, 2012 9:11 am
by Bisonte
ohmmmmmmmmmm....

Image

Code: Select all

If purebasicforum = codeexample
   CallFunction(Help)
else
   End
endif

Re: Standard library for use in all my applications

Posted: Tue Jun 05, 2012 1:18 pm
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.

Re: Standard libraries for use in all my applications

Posted: Tue Jun 05, 2012 3:39 pm
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 ;)