
I had initially tried with a ScrollArea Container, seems better with HBox, VBox, GridBox or MultiBox.
The Faq's on the 1st post should be usefull for newsbie like me.
Yes that library is really cool thing and decreases UI pain a lot, even though it is obliously not fully completed for now.tj1010 wrote:This is something both SB and PB desperately needs. I'd even argue Dialog lib should replace the Window, Toolbar, Menu, and Gadget libraries completely since static geometry is pretty much obsolete in the field of UI/UX in 2017(since there is stuff with CGA all the way to 4K resolutions and different dynamic aspect ratios) and writing your own handlers even from templates is annoying.
...
I made a pretty complex UI with it within 30 minutes of downloading it. My only complaints are with Dialog lib itself in how it has no way to control height expansion(no maxheight on anything but Window and SingleBox) and how it handles image cropping.
Nice if so. Btw I wouldn't be surprised if it was created for SB originally ^_^ As it really follows a lot concepts from web / CSS.I think PB Dialog lib XML is identical to SB Dialog lib XML so your tool already works there too..
Nice 2 ideas, one which is first I'll probably add when program finally will get own options/config (thus it will be possible to switch export behavior between file and CB, to not bloat popup menu).Feature Requests from my brief testing:
- Copy to Clipboard for both code and xml export
- Some form of code stub to handle relative font sizing with native PB and SB font per platform. Basically LoadFont with a relative value for "Size" using window timer or thread state machine and sweep all text based gadgets using SetGadgetFont?
Code: Select all
Define x = LoadFont(#PB_Any, "Consolas", 25)
SetGadgetFont(-1, FontID(x))
Proportionate to what it was in it's first state while maintaining aspect ratio. Like if a string field got taller and wider go as wide and tall as possible up to original proportion without breaking font aspect ratio. Basically keeping font same size relative to the gadget as it was originally.Lunasole wrote: ...
Yes that library is really cool thing and decreases UI pain a lot, even though it is obliously not fully completed for now.
However it also has another problem -- those "runtime" procedures and dialogs xml itself are placed into binary as plain text, that of course allows easily to modify them and generally makes binary much more hackable. I was planning to add some obfuscation/encryption to fix this partially (and there are some other related ideas), but currently all remains as is.
...
What about 2nd, I have idea of adding code like this (and related function to define font from designer):Executed before dialogs open, it will replace all dialog gadgets font with one loaded, then dialog library automatically resizes controls and windows to fit all text with that loaded font/size.Code: Select all
Define x = LoadFont(#PB_Any, "Consolas", 25) SetGadgetFont(-1, FontID(x))
Just didn't get what you mean as relative font size value? DPI scale factor? (if yes, it's not needed, at least Windows scales fonts automatically)
I think too this will need API. Also it looks too complicated/specific to add it to code generator.tj1010 wrote: Proportionate to what it was in it's first state while maintaining aspect ratio. Like if a string field got taller and wider go as wide and tall as possible up to original proportion without breaking font aspect ratio. Basically keeping font same size relative to the gadget as it was originally.
I'm not even sure this is possible though without API stuff. You basically have to reload fonts and I seem to remember PB falls back to rounded font sizes or something.
Btw adding handlers using BindEvent() for example (instead of XML) should make some difference also.tj1010 wrote: EDIT: Regarding XML hacking: Base64 over AES encrypt or ROT13 or packed memory in resource section. Anyone who can beat that can patch a UI structure and handler anyway..
I like idea, but don't like linux a lot ^^ I like it's "ideology", but don't like what it became on practice. As for me modern linux is like USSR with it perverted socialism realization.Kiffi wrote:@Lunasole: Is there any chance to compile a linux-version?
Well currently I don't have "big reasonable ideas" of new things ^^loulou2522 wrote:Is there some news about your wonderfull programm ?
1.0.0.6
- Output: greatly changed events handling code (now it used 'native' event binding, instead of xml-defined)
// surely that bloats resulting code, but also:
// - bypasses PB bugs with canvas/other controls
// - removes runtime procedures/library
// - generally is "more flexible" ^^
// no more OnEvent attribute in exported code XML, while special "dd2events" attribute used on raw XML export (ignored by dialogs library as invalid)
- Output: now every event handler has local variable "this"
- Output: fixed missing window declares in cases when no UI callbacks generated