Search found 27 matches

by superjacent
Sat Aug 16, 2008 2:32 am
Forum: Coding Questions
Topic: How to retrieve text from dynamically created menu
Replies: 11
Views: 1658

Thanks all, there's enough info here to enable me to progress my first PB application. I like Eddy's one-liner but that's not dismissing the other info put forward, I'll have to study it to make sense of it.
by superjacent
Fri Aug 15, 2008 3:01 pm
Forum: Coding Questions
Topic: How to retrieve text from dynamically created menu
Replies: 11
Views: 1658

Thank you, looks like that makes sense, after visiting the Enumeration help page. I'll fiddle with this over the weekend.
by superjacent
Fri Aug 15, 2008 2:39 pm
Forum: Coding Questions
Topic: How to retrieve text from dynamically created menu
Replies: 11
Views: 1658

How to retrieve text from dynamically created menu

Hope someone can help. I have the following function which builds a menu structure and adds from zero 'recent folders' (directory paths) to many items. The directory paths are retrieved from a linked list.

Procedure BuildMenu()
If CreateMenu(#MENU_BAR, WindowID(#WIN_MAIN))
MenuTitle("File ...
by superjacent
Wed Aug 13, 2008 1:36 am
Forum: Coding Questions
Topic: Create menu items after window opened
Replies: 2
Views: 815

I can see that in your example, you are effectively re-creating the whole menu structure after deleting it.

I've got something to work with now, thanks.
by superjacent
Tue Aug 12, 2008 3:36 am
Forum: Coding Questions
Topic: Create menu items after window opened
Replies: 2
Views: 815

Create menu items after window opened

Is it possible to create menu items after the initial window/menu creation routine.

What I'm wanting to do, for tutorial purposes, is create or add menu items to an already created menu structure ie 'recent folders' menu item under the 'File' menu.

If this is possible, any chance of a quick ...
by superjacent
Sat Aug 02, 2008 7:46 am
Forum: Coding Questions
Topic: Editing PDF files
Replies: 4
Views: 1229

Thanks for replies and I've briefly checked out PurePDF.

I use Foxit, is heaps better than Acrobat, quicker and smaller.

To expand a little further, what I'm wanting to do is in batch fashion, edit pdf files residing in a particular directory. The process would be to open each pdf file and insert ...
by superjacent
Fri Aug 01, 2008 11:52 am
Forum: Coding Questions
Topic: Editing PDF files
Replies: 4
Views: 1229

Editing PDF files

Can someone point me in the right direction. Is it possible, using PB, to edit PDF files. What I'm wanting to do is simply whack some text in either the header or footer area of the document.
by superjacent
Wed Jul 30, 2008 2:47 am
Forum: Coding Questions
Topic: How to enable and disable button gadget
Replies: 3
Views: 1517

Thank you.
by superjacent
Wed Jul 30, 2008 2:35 am
Forum: Coding Questions
Topic: How to enable and disable button gadget
Replies: 3
Views: 1517

How to enable and disable button gadget

I know I'll be kicking myself when the answer arrives but how do you set a button gadget to be enabled or disabled (active - can be clicked or inactive - can't be clicked).
by superjacent
Sat Jul 19, 2008 1:10 pm
Forum: Coding Questions
Topic: Method to sort ListIconGadget
Replies: 1
Views: 815

Method to sort ListIconGadget

Ok, I'm populating a ListIconGadget with a list of files from a directory. The intention being to batch rename the files. An obvious option is to sort the files by name or date etc. prior to passing the files through a rename procedure.

It's the sorting bit that I'm stumbling on. What are my ...
by superjacent
Sat Jul 19, 2008 12:30 pm
Forum: Coding Questions
Topic: ListIconGadget - how to cycle through [Solved]
Replies: 4
Views: 1254

Thanks all, got that bit nutted out.
by superjacent
Sat Jul 19, 2008 10:09 am
Forum: Coding Questions
Topic: ListIconGadget - how to cycle through [Solved]
Replies: 4
Views: 1254

ListIconGadget - how to cycle through [Solved]

I'm new to PB and for tutorial purposes I'm creating a simple batch file rename program.

I'm using the gadgets, ExplorerTree and ListIconGadget (for the multiple columns). So far I can navigate via the ExplorerTree gadget and populate the ListIconGadget with a listing of files (filename & date ...
by superjacent
Tue Jul 15, 2008 12:30 pm
Forum: Coding Questions
Topic: text.s + "whatever" not working.
Replies: 8
Views: 2052

Thanks, I'll put this one down to 'just one of those things' to watch out for. Even modifying as suggested, the whole snippet doesn't work as intended.

For future reference I suppose it's just a matter of assigning each of those error codes/messages to separate variables and then join them.
by superjacent
Mon Jul 14, 2008 2:12 pm
Forum: Coding Questions
Topic: text.s + "whatever" not working.
Replies: 8
Views: 2052

text.s + "whatever" not working.

The following is from the book, Purebasic - A beginners guide, but the end result is not as per the book. As written, the message box appears, for me, under Vista, only refers to the last Text.s + "Error occurred in module..." part and only the variable portion, GetErrorModuleName(). That is the ...
by superjacent
Mon Jun 23, 2008 2:32 pm
Forum: General Discussion
Topic: Coming to grips with Purebasic
Replies: 9
Views: 2684

Thanks all, it gives me something to work with.

I'm seeing similarities with C++ where all the prototypes must be defined prior to the calling of the "main()" program, though in Purebasic's case it's the entire definition of the procedures and functions prior to calling the main loop (or starting ...