- Bugfixes
- Support of #LF$ for multiline - buttons
[Module] ButtonEx (all OS)
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Update:
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- doctorized
- Addict
- Posts: 856
- Joined: Fri Mar 27, 2009 9:41 am
- Location: Athens, Greece
Re: [Module] ButtonEx (all OS)
Set text to #BUTTONML to "Nokia Phone" and after lineadd:and see that the text goes on the top of the button and not in the middle. (SetText() and GetText() are in my last post with your code.)
Code: Select all
Debug "Multiline button pressed"
Code: Select all
ButtonEx::SetText(#ButtonML, ButtonEx::GetText(#ButtonML) + #LF$ + "5")
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Bug fixed
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Update: dynamic text size (needs ModuleEx.pbi)
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] ButtonEx (all OS)
Line 64: XIncludeFile "ModuleEx.pbi"
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Fixed
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] ButtonEx (all OS)
Yes... looks great
Next "problem"... the popupmenu is not really in place.
My Button is 120px. the arrow-button is at the right side. The popup shows on the left side.
Next "problem"... the popupmenu is not really in place.
My Button is 120px. the arrow-button is at the right side. The popup shows on the left side.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
I still haven't found a way to determine the width of the popup menu to position it right-aligned.Cyllceaux wrote:Yes... looks great
Next "problem"... the popupmenu is not really in place.
My Button is 120px. the arrow-button is at the right side. The popup shows on the left side.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] ButtonEx (all OS)
Maybe line 682 to:Thorsten1867 wrote:I still haven't found a way to determine the width of the popup menu to position it right-aligned.Cyllceaux wrote:Yes... looks great
Next "problem"... the popupmenu is not really in place.
My Button is 120px. the arrow-button is at the right side. The popup shows on the left side.
Code: Select all
DisplayPopupMenu(BtEx()\PopupNum, WindowID(BtEx()\Window\Num), dpiX(dX)+GadgetWidth(BtEx()\CanvasNum)-dpiy(20), dpiY(dY))
Re: [Module] ButtonEx (all OS)
Can wie do the Disable thing, here, too?
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Update: Added Attribute '#Corner'
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] ButtonEx (all OS)
yeah... great
Can I have a GetText for the button?
and a GetData and SetData?
Can I have a GetText for the button?
and a GetData and SetData?
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
Update:
- ButtonEx::GetText()
- ButtonEx::SetData() / ButtonEx::GetData()
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- doctorized
- Addict
- Posts: 856
- Joined: Fri Mar 27, 2009 9:41 am
- Location: Athens, Greece
Re: [Module] ButtonEx (all OS)
Is there a way to have a button like this one?
http://users.sch.gr/arahiotis/other/button.png
http://users.sch.gr/arahiotis/other/button.png
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] ButtonEx (all OS)
This is very special, but theoretically you could adjust ButtonEx accordingly.
With SetText() pass the 2 additional strings and let the Draw_() routine draw them.
With SetText() pass the 2 additional strings and let the Draw_() routine draw them.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]