View Single Post
Old 10 June 2014, 03:55   #1
mritter0
Registered User

 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 49
Posts: 204
Get Gadget Width

Not even sure if this is possible. OS3.9 and ReAction gadgets.

- I have a horizontal group split into 2 sections by LAYOUT_WeightBar.
- The left side has a minumum off 100 and max of 300 pixels.
- The right can be what ever size according to the window size.
- The left side is a just a full size (no padding) listbrowser.

I would like to be able get the size of the left area when the user resizes the weight bar so I can save it so when next time the program is started, set that side to actual pixel (not weighted percent) size.

So, GetAttrs() to get the listbrowser's width, save it in prefs, quit, re-open with same pixel width. Either set the width in the layout code (preferred), or do a SetGadgetAttrs() to the width after the window is opened.
mritter0 is offline  
 
Page generated in 0.05625 seconds with 11 queries