Hi, I am writing a reaction prefs program and want to have a file gadget that shows a button and a string box next to it which contains the current path/file that has been selected. I create this using the following: LAYOUT_AddChild, OBJ(OBJ_DISKRSTRING)=GetFileObject, GA_RelVerify, TRUE, STRINGA_MinVisible, 36, GA_ID,OBJ_DISKRSTRING, End, And this gives me exactly what I want. BUT....I cannot find any way to populate the "string" portion of the gadget. With a typical string gadget I would use something like this: SetGadgetAttrs(GAD(OBJ_DISKRSTRING), window, NULL, // window, requester STRINGA_TextVal, filename, TAG_DONE); but this does not work with the GetFileObject type. So, 1) How do I have this gadget how me a string with text for the path/file when it is created? 2) How do I have the text in the string part of this gadget update when I change the text for path/file? 3) How do I change the size of the string text box for this gadget. I have spent a couple hours looking at the autodocs and have not discovered the answer yet. Thank you!
Mon, 2013-01-07 15:16#1
Some Questions about the FileObject gadget