World: r3wp
[!REBOL3 GUI]
older newer | first last |
Kaj 26-Jan-2011 [5588] | A system that you let someone else write is never large. Yet I would say a documentation system is a large task |
Ladislav 26-Jan-2011 [5589] | I just have to make my notes to the "button size" thread: - "We can't easily make 50x50 button for e.g.?" - you can, just respect the fact, that every face has got a Max-size, and if you want to make something bigger, you need to specify the Max-size - "you have init-size as an option, yet it is ignored,or totally twisted" - it is a resizing rule, that you can resize everything only to the Max-size limit; of course, you can make the Max-size bigger, but, if you forget, nobody can be cleverer than you are knowing, what is the Max-size you want to use - ' view [button "ok" options [max-size: 200x200]]' - of course it works, allowing you to resize the button as specified - 'So, I had a look at BUTTON source and button has init-size in options, so this is bug and [button "BIG" 100x100] should work. I will fix it.' - only over my dead body, the basic resizing rule is to respect the Max-size |
Pekr 26-Jan-2011 [5590] | only over my dead body - that should not be a problem, we meet today personally, no? :-))) ... just a joke :-) |
Ladislav 26-Jan-2011 [5591] | LOOL |
Pekr 26-Jan-2011 [5592] | Ladislav - maybe what Rebol thought about was to actually exposing max-size in an options block? Is that possible? |
Ladislav 26-Jan-2011 [5593] | Rebolek has shown you how, even your code would allow you to resize the button |
Pekr 26-Jan-2011 [5594] | Now there is init-size, and my opinion is, that it is confusing, if the init-size is possible, yet it does nothing obvious. In such a case, I prefer to error-out at layout level, not allowing even init-size being specified inline ... |
Henrik 26-Jan-2011 [5595] | Kaj, perhaps this is the same misunderstanding as for host kit work. It seems that many times, when Carl or RM Asset offers a task to the community, the response is negative. |
Cyphre 26-Jan-2011 [5596] | Bolek, I don't understad what 'bug' you found in button??? The init-size in options is OK |
Ladislav 26-Jan-2011 [5597] | That is the basic resizing rule - no error, just resize respecting the Max-size. The resizing algorithm shall not be cleverer than you are, changing the Max-size sometimes, reading your mind. |
Cyphre 26-Jan-2011 [5598x2] | It is correct that you can't do button 50x50 because the button definition is: facets: [ init-size: 130x24 max-size: 230x24 min-size: 80x24 .... ] |
So as Bolek said..either make own 'fat-button' style or change the size related facets inline in your layout definiton. | |
Pekr 26-Jan-2011 [5600] | init-size should be removed from the options, if it does nothing usefull imo ... |
Ladislav 26-Jan-2011 [5601] | ??? - it says, how you want to resize the face when shown for the first time |
Cyphre 26-Jan-2011 [5602] | without init-size in the options definition you won't be able to set the size like: button XxY |
Ladislav 26-Jan-2011 [5603x2] | That is *very* useful |
On the other hand, Max-size says, what the resizing limits are. | |
Pekr 26-Jan-2011 [5605] | Now I don't understand - what is it good for having button 100x100 allowed to be specified inline, if the resizing does not allow me to have what I (user) expect? That should be precisely documented, or not allowed at all? |
Ladislav 26-Jan-2011 [5606] | That is the property of resizing - you can resize, but resizing *always* respects Max-size |
Cyphre 26-Jan-2011 [5607x2] | you can still specify any pair! value in the defined resizing limits no? |
also another possibility is to change also the max-size if user forces to change the size using the inline pair! | |
Ladislav 26-Jan-2011 [5609] | BTW, if you don't want to have any Max-size limit, you can just tell something like: max-size: 2147483647x2147483647 , which is exactly as good as "no limit" |
Pekr 26-Jan-2011 [5610] | facets: [ init-size: 130x24 max-size: 230x24 min-size: 80x24 .... ] In above code, I thought, that we could allow setting of init-size, which would readjust the max-size ..... |
Cyphre 26-Jan-2011 [5611] | that's what I meant |
BrianH 26-Jan-2011 [5612] | Does a style have to have a max-size? I am worried about scaling to large screens. I remember that was a weakness of Carl's GUI. I know you guys changed the resizing algorithm, but I didn't catch what the new algorithm was. |
Ladislav 26-Jan-2011 [5613] | No mind reading, if you want to change the Max-size, you need to know, what do *you* want it to be. |
Pekr 26-Jan-2011 [5614] | aha, clear, hmm .... |
BrianH 26-Jan-2011 [5615] | Are faces still scaled proportionally relative to their max-size? |
Cyphre 26-Jan-2011 [5616x2] | by default every style has the max-size set to the 2147483647x2147483647 value so I think that is enough |
by default = unless it is not redefined in the style definiton | |
Ladislav 26-Jan-2011 [5618x2] | Brian: re the "does a style have to have a max-size?" - see my above note, how to arrange a Max-size as good as "no limit" |
Re: "Are faces still scaled proportionally relative to their max-size?" - not at all | |
Rebolek 26-Jan-2011 [5620] | Cyphre - without init-size in the options definition you won't be able to set the size like: button XxY You cannot do that right now, so what's the point. |
Pekr 26-Jan-2011 [5621] | the trouble is, that the max-size for a button is lower, than what user might want as an init-size? The "fix" is to allow much larger buttons, no? Why does henrik want to prevent that? |
BrianH 26-Jan-2011 [5622] | I got that (was typing while you posted that). Second question: good, I didn't like that about Carl's GUI. |
Cyphre 26-Jan-2011 [5623] | Rebolek, my point was we should change the button init code so it changes max-size if user specifies the inline pair! |
BrianH 26-Jan-2011 [5624] | (Those were in reply to Ladislav) |
Rebolek 26-Jan-2011 [5625] | Cyphre yes, that's what I'm suggesting from beginning, but it requires Ladislav's death ;) |
Cyphre 26-Jan-2011 [5626] | Are faces still scaled proportionally relative to their max-size? - no ,this was too confusing in the Carls version...max-size is just simple limit no magic here. |
Ladislav 26-Jan-2011 [5627] | we should change the button init code so it changes max-size if user specifies the inline pair! - I am against that change, you don't know (not being able to read mind) what is the Max-size user wants to have anyway |
Rebolek 26-Jan-2011 [5628] | it's the size user specified in layout dialect |
BrianH 26-Jan-2011 [5629] | Can you specify more than one pair inline? Don't know the current dialect processing code. |
Cyphre 26-Jan-2011 [5630] | yes, you can |
Ladislav 26-Jan-2011 [5631] | it's the size user specified in layout dialect - if the user specifies Max-size, then I do agree, if not, then there is no reason why to "read his mind" |
BrianH 26-Jan-2011 [5632x2] | init-size min-size max-size? |
Whatever order you feel is appropriate. | |
Rebolek 26-Jan-2011 [5634] | Here are my two proposals: 1) [button "text" 100x100] is equivalent of [button "text" [min-size: 100x100 init-size: 100x100 max-size: 100x100] 2) [button "text" 100x100] is error, because size cannot be specified in dialect. |
Cyphre 26-Jan-2011 [5635] | I think it is still better to specify it either using stylize or button options [...] |
Rebolek 26-Jan-2011 [5636] | But current behaviour, where you can write [button "text" 100x100] and button hapilly ignores that value is unacceptable IMO. |
Pekr 26-Jan-2011 [5637] | options: [ text-body: [string! block!] area-color: [tuple!] init-size: [pair!] wide: [percent!] ] you may specifiy only one pair for a button - init-size, inlined, that is ... |
older newer | first last |