sGUI
Re: sGUI
Yes, this produces a problem - e.g. if FR is called 2x immediately with control printout of selected file,
screen shows only one line of two lines reprinted on the same first line, not two lines printed as coder awaits..
screen shows only one line of two lines reprinted on the same first line, not two lines printed as coder awaits..
Re: sGUI
A long moment of no free time I'll have to test&tuning sGUI 084 build on new feature OPB - 'One Point Building' - seems to me,
so here is my tip/idea/design of it.
Preview of this beautiful feature shortly - easy way to build all as movable&resizable, based on one referenz point und differences.
Actually every (composed) gadget/widget is constructed on absolute coords passed as posX,posY.This is hard way for recalculating gadgets in moving..
But this definition/philosophy can be changed into this - all can be constructed on (anyplaced) and from one referenz point, for example taken as ULC - upper left corner of wi/gadget, and all the rest of needed points to construction of composed gadget/widget are differences to this point/derived from this point ;) and all moving+resizing is only calculating differences to differences to one point.
So now absolute coords are equally a difference to point (0,0)!
All necessary what is needed to know is only initial ULC, gadget elements differences to ULC, and difference in mouse moved.
One formula to recalculating - and gadgets are movable & resizable in easy way
Ende of my idea ;)) Enjoy it !!
so here is my tip/idea/design of it.
Preview of this beautiful feature shortly - easy way to build all as movable&resizable, based on one referenz point und differences.
Actually every (composed) gadget/widget is constructed on absolute coords passed as posX,posY.This is hard way for recalculating gadgets in moving..
But this definition/philosophy can be changed into this - all can be constructed on (anyplaced) and from one referenz point, for example taken as ULC - upper left corner of wi/gadget, and all the rest of needed points to construction of composed gadget/widget are differences to this point/derived from this point ;) and all moving+resizing is only calculating differences to differences to one point.
So now absolute coords are equally a difference to point (0,0)!
All necessary what is needed to know is only initial ULC, gadget elements differences to ULC, and difference in mouse moved.
One formula to recalculating - and gadgets are movable & resizable in easy way
Ende of my idea ;)) Enjoy it !!
Re: sGUI
Quick start on fonts, reading a few font pages..
Seems as missing font Ubuntu-R and its folder in 085alpha pack, so I convert this ttf file from web with your font converter and then moving bmp result into Ubuntu folder; wonderfull - now I see 2 fonts.
Due this I think 085'll has :
- some routine for selecting a font type, size, (+ bmp file internally linked) from a list; and from font folder and its new sGUI global variable ( named e.g. 'fontsAll' or so ).Place for adding all new font files by user manually anytime.
New in 084tuned:
- added new gadget parameter 'gad->moveIt' (yes/no or 1/0 value) for gad's moving feature.
Seems usefull to define static, or dynamic layout feature - gadgets/widgets are movable or not by default.
Initial default values :
gad->moveIt=1 - widgets are movable (FileRequester, MesaageBox, all custom widgets)
gad->moveIt=0 - simple gadget+field of the same gadtype are not movable (e.g. all gads in 'DemoActivation.bas')
Seems as missing font Ubuntu-R and its folder in 085alpha pack, so I convert this ttf file from web with your font converter and then moving bmp result into Ubuntu folder; wonderfull - now I see 2 fonts.
Due this I think 085'll has :
- some routine for selecting a font type, size, (+ bmp file internally linked) from a list; and from font folder and its new sGUI global variable ( named e.g. 'fontsAll' or so ).Place for adding all new font files by user manually anytime.
New in 084tuned:
- added new gadget parameter 'gad->moveIt' (yes/no or 1/0 value) for gad's moving feature.
Seems usefull to define static, or dynamic layout feature - gadgets/widgets are movable or not by default.
Initial default values :
gad->moveIt=1 - widgets are movable (FileRequester, MesaageBox, all custom widgets)
gad->moveIt=0 - simple gadget+field of the same gadtype are not movable (e.g. all gads in 'DemoActivation.bas')
Last edited by petan on Apr 11, 2016 6:52, edited 2 times in total.
Re: sGUI
Question to 085 Menus - Howto set Menu main bar to be placed on any place ?
Seems actually it has only one position - top of a screen. Usefull feature would be to place it on passed coords with needed lenght,
e.g I would like to use it in designer (0.6+) on top of orange polygon for clearer lists.
Seems actually it has only one position - top of a screen. Usefull feature would be to place it on passed coords with needed lenght,
e.g I would like to use it in designer (0.6+) on top of orange polygon for clearer lists.
Last edited by petan on Apr 16, 2016 8:26, edited 1 time in total.
-
- Posts: 139
- Joined: May 28, 2009 20:07
Re: sGUI
@petan and off topic: did you ever successfully download data from your favorite file hoster??? :)
Mutton
Mutton
Re: sGUI
From 4shared ?, yes, d'load tested when logged-in, 4.4.2016 and yesterday, no problem.
Today checked as you posted, d'load via g+ login, everything hangs :(
Server problems ??
I give it up on dropbox, if its slax module will work.If not, so it 'll be putted on my site.
edit
Added link to Dropbox, works.
Today checked as you posted, d'load via g+ login, everything hangs :(
Server problems ??
I give it up on dropbox, if its slax module will work.If not, so it 'll be putted on my site.
edit
Added link to Dropbox, works.
Re: sGUI
@Muttonhead and offtopic
Dropbox is working well for you now ?
Dropbox is working well for you now ?
-
- Posts: 139
- Joined: May 28, 2009 20:07
Re: sGUI
much better, that works :)
Re: sGUI
Playing a bit with 085 Menus:
Looks very good !
( without new sGUI manual & deeper look&tests into it ), seems as easily modifyable for popular features, such as:
- 'AddMenuBar' optionally placed on Top - Bottom - Right - Left - Custom position
- 'AddMenuBar' optional length of dock bar
( 'AddMenuBar' - very optional custom colors&fonts for every menu element )
- 'AddMenuBar' optional pop-up/roll-out dock bar (invoked by - keypress, mice position&action, mouse knocking on screen edges..)
"Demo Menu PopUp.bas" would be containing more menus (with its submenus) for quick understanding this gadtype & its usage.
Second another menu hooked on left mouse button.
Third another menu hooked on left+right mouse button (or some keypress), but on constant position e.g. (100,100)
No tuning needed in Menus for now ;)
Looks very good !
( without new sGUI manual & deeper look&tests into it ), seems as easily modifyable for popular features, such as:
- 'AddMenuBar' optionally placed on Top - Bottom - Right - Left - Custom position
- 'AddMenuBar' optional length of dock bar
( 'AddMenuBar' - very optional custom colors&fonts for every menu element )
- 'AddMenuBar' optional pop-up/roll-out dock bar (invoked by - keypress, mice position&action, mouse knocking on screen edges..)
"Demo Menu PopUp.bas" would be containing more menus (with its submenus) for quick understanding this gadtype & its usage.
Second another menu hooked on left mouse button.
Third another menu hooked on left+right mouse button (or some keypress), but on constant position e.g. (100,100)
No tuning needed in Menus for now ;)
Last edited by petan on Apr 16, 2016 8:26, edited 1 time in total.
Re: sGUI
I think I got it ;))
founded answer to my previous questions about 085 font length - fontMode MUST be passed/known & correct to calculate 'textWidth + FontHeight' rightly
( Answers founded in :"BitmapFont.bi, sGUIDrawing.bas, sGUIFont.bas, DemoFont.bas" )
"DemoLabel.bas+Label.bas" tuned even a bit more second time, this really likes me ... (tonight reupload)
S'shot
https://www.dropbox.com/s/h16qb3xy3he28 ... abel-1.png
founded answer to my previous questions about 085 font length - fontMode MUST be passed/known & correct to calculate 'textWidth + FontHeight' rightly
( Answers founded in :"BitmapFont.bi, sGUIDrawing.bas, sGUIFont.bas, DemoFont.bas" )
"DemoLabel.bas+Label.bas" tuned even a bit more second time, this really likes me ... (tonight reupload)
S'shot
https://www.dropbox.com/s/h16qb3xy3he28 ... abel-1.png
-
- Posts: 139
- Joined: May 28, 2009 20:07
Re: sGUI
a dungeon walk, :DAnswers founded in :"BitmapFont.bi, sGUIDrawing.bas, sGUIFont.bas, DemoFont.bas"
well done *thumbup*
Mutton
Re: sGUI
085 ComboBoxLong feature looks enabled ;)
ComboBox.bas untouched.Ellegant way needs one macro, code is not nice (2 lines).
(You have other formula for listbox, so quick gap is an incr +21px to longest line.)
"Demo ComboBox.bas"
S'shothttps://www.dropbox.com/s/uptxqy9o9ajh67y/cbLong.png
ComboBox.bas untouched.Ellegant way needs one macro, code is not nice (2 lines).
(You have other formula for listbox, so quick gap is an incr +21px to longest line.)
"Demo ComboBox.bas"
Code: Select all
(...)
c=TO_GetLongestLineIndex(cb)
'? c,TO_GetLineContent (cb,c)
cb->Ctrl(0)=GetTextWidth(TO_GetLineContent (cb,c),1)+21
'? "LLlength ";cb->Ctrl(0)
UpdateGadget(cb)
SetComboBoxVal(cb,7)'Eintrag G vorselektiert
(...)
Re: sGUI
Well, tuning of 085 MultilineEditBox remains to do as resizable feature ;) .. maybe at weekend, no time now.
What will be a main tuning IMHO in 085, are fonts.New feature in 085 and it likes me much! Great work, Mutton, thx for it !
As I understand (without knowing font theme in any manner), 085 offers three available fonts (with default rules for applying in gadgets)
- default gfx (084) font 8 px
- proportional font placed in 'FontSlot A' from file - static ?
- monospaced font placed in 'FontSlot B' from file - static ?
So I see this directly in (adapted) designer as possibility to change font to third custom font - dynamic, temporarily placed in 'FontSlot C' buffer from file - for any text gadget loaded any other different font anytime.
And very optionally maybe also switching among them all anytime...
Am I thinking rightly ? in 085 font policy/rules ??
What will be a main tuning IMHO in 085, are fonts.New feature in 085 and it likes me much! Great work, Mutton, thx for it !
As I understand (without knowing font theme in any manner), 085 offers three available fonts (with default rules for applying in gadgets)
- default gfx (084) font 8 px
- proportional font placed in 'FontSlot A' from file - static ?
- monospaced font placed in 'FontSlot B' from file - static ?
So I see this directly in (adapted) designer as possibility to change font to third custom font - dynamic, temporarily placed in 'FontSlot C' buffer from file - for any text gadget loaded any other different font anytime.
And very optionally maybe also switching among them all anytime...
Am I thinking rightly ? in 085 font policy/rules ??
Re: sGUI
Seeing on 085 MLeditBox and Arrows..
I cannot find example for arrow callback if arrow is added in gad->subevent;
what is right notation in that case ?
I cannot find example for arrow callback if arrow is added in gad->subevent;
what is right notation in that case ?
-
- Posts: 139
- Joined: May 28, 2009 20:07
Re: sGUI
What you want implant? A sizing symbol?
Important to know is following: the "gad()" arrray not longer exists. In case of composite controls you have recognize the addresses of the
subevent controls like this:
you will find this snippet in several routines where we need to know the addresses.
I would to embed the sizing stuff in routine MultiLineEditSubHandle.
edit:
sure, we can blow up the font section in sGUI, at moment i have no plans for that.
with the embedded "BitmapFont.bi" (from charset2fbfont) the user can play with bitmap font as he wants.
Important to know is following: the "gad()" arrray not longer exists. In case of composite controls you have recognize the addresses of the
subevent controls like this:
Code: Select all
dim as Gadget ptr editbox,vscrollbar,hscrollbar
editbox=gad->subevent->GadgetList->GetFirst
vscrollbar=cast(Gadget ptr,editbox->next_node)
hscrollbar=cast(Gadget ptr,vscrollbar->next_node)
I would to embed the sizing stuff in routine MultiLineEditSubHandle.
edit:
sure, we can blow up the font section in sGUI, at moment i have no plans for that.
with the embedded "BitmapFont.bi" (from charset2fbfont) the user can play with bitmap font as he wants.