..how to set window with sliders..
BlitzMax Forums/MaxGUI Module/..how to set window with sliders..
| ||
..when i rescale my created windows, all gadgets inside gets cut off due smaller size(in case i scale window down), so its fine..but ptoblem is that sliders doesnt exist so i cant reach options created within that window..how should I set my window so in case of scalling it, my gadgets are accessible by sliders? |
| ||
See: SetGadgetLayout For example, if I had a canvas in a window/panel etc .. I would do the following so that the canvas adjusts when the window is re-sized: NOTE: 1=EDGE_ALIGNED 2=EDGE_RELATIVE Global can:TGadget=CreateCanvas(0,0,400,400,mypanel) SetGadgetLayout can,1,1,1,1 This example makes the gadget move sideways maintaining its width. The vertical size adjusts with the windows vertical size: SetGadgetLayout mygadget,1,2,1,2 You could also look at SetMinWindowSize to prevent the window from being resized too much |
| ||
ahh..yes..thank you very much..GadgetLayout did it..help MUCH appreciated.. |
| ||
Depending on the layout you may want to check also the ScrollPanel, which is able to pop in sliders for the gadgets on top when needed. |