Parent PB-ID

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Parent PB-ID

Post by mk-soft »

I believes some can it use. I in each case.

GetParentGadget(GadgetID) and GetParentWindow(GadgetID)

GT 8)
Last edited by mk-soft on Sun Apr 11, 2010 11:47 am, edited 1 time in total.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Parent PD-ID

Post by Kaeru Gaman »

didn't you mean (#Gadget) as parameter?
and in every case, #Gadget/#Window should be the return value, not GadgetID(#) wich is the hWnd.

additionally, also retrieving #Number = GadgetNumber(hWnd) would be helpful.

we already have a function to retrieve the hWnd from the #, this is the GadgetID() Function.
the reverse function would come in handy sometimes.

not every native function accept the hWnd as Argument, most do not but want the PB internal ID, the #.
oh... and have a nice day.
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Parent PD-ID

Post by mk-soft »

Yes, i mean (#Gadget) as parameter

Thanks
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: Parent PB-ID

Post by mestnyi »

Fred unwise to all native functions purebasik worked with a number of the gadget, and the function returns the number of the gadget is not, or all functions should work with the handle. And very necessary functions returning parent. What can I do whatever you added them it's very easy for you, but we really need.
Last edited by mestnyi on Sat Nov 22, 2014 9:31 pm, edited 1 time in total.
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: Parent PB-ID

Post by mestnyi »

:evil:
Post Reply