Search found 115 matches: button owner
Searched query: +button +owner
- Fri May 17, 2024 12:02 am
- Forum: Coding Questions
- Topic: How to #CCM_SETBKCOLOR for Button ?
- Replies: 3
- Views: 516
- Fri Dec 08, 2023 7:04 am
- Forum: Coding Questions
- Topic: Image button without outline
- Replies: 17
- Views: 2281
Re: Image button without outline
@RASHAD
Thank you. Your code work fine to make icon button with no borderline.
In my case I want to make the whole button flat in certain color like ... responsive when I repeat click.
I think may be this the problem:
BS_OWNERDRAW
Creates an owner-drawn button. The owner window receives a WM ...
Thank you. Your code work fine to make icon button with no borderline.
In my case I want to make the whole button flat in certain color like ... responsive when I repeat click.
I think may be this the problem:
BS_OWNERDRAW
Creates an owner-drawn button. The owner window receives a WM ...
- Tue Oct 10, 2023 6:46 pm
- Forum: Coding Questions
- Topic: Creating an own control/gadget using Windows API
- Replies: 15
- Views: 2871
Re: Creating an own control/gadget using Windows API
What I remember from experiments at VB6 Times
A Button and other standard Gagdets are created with the CreateWindow-API.
You need the correct ClassName ... link!
https://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Owner_Draw_Buttons/VB6_OwnerDraw_Buttons.html
But actually it is not possible ...
A Button and other standard Gagdets are created with the CreateWindow-API.
You need the correct ClassName ... link!
https://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Owner_Draw_Buttons/VB6_OwnerDraw_Buttons.html
But actually it is not possible ...
- Wed Jun 28, 2023 4:06 pm
- Forum: Coding Questions
- Topic: Digital-picture tool to rename with exifdate in the filename Procedure does not work
- Replies: 9
- Views: 904
Digital-picture tool to rename with exifdate in the filename Procedure does not work
... the "Date-Renamed"-Folder >> its OK
The loop should be canceld by a button "#GADGET_Button_rename_abort" >> its not OK, loop is not canceld ... Exif_Type_ASCII, 20, 0)
#ExifTAG_Artist = $013B ; name of the camera owner, photographer or image creator
#ExifTAG_Copyright = $8298 ; indicate ...
The loop should be canceld by a button "#GADGET_Button_rename_abort" >> its not OK, loop is not canceld ... Exif_Type_ASCII, 20, 0)
#ExifTAG_Artist = $013B ; name of the camera owner, photographer or image creator
#ExifTAG_Copyright = $8298 ; indicate ...
- Sat May 13, 2023 5:02 am
- Forum: Coding Questions
- Topic: Remove ButtonGadget border
- Replies: 6
- Views: 716
Re: Remove ButtonGadget border
... Or
If you are Windows User you can use TextGadget() with #SS_Notify
Or Owner Drawn Gadget
There are many alternative in this case
OpenWindow(0, 0, 0, 270, 160, "HyperLinkButton", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
HyperLinkGadget(0, 10, 10, 80,22," Button #1",$0000FF ...
If you are Windows User you can use TextGadget() with #SS_Notify
Or Owner Drawn Gadget
There are many alternative in this case
OpenWindow(0, 0, 0, 270, 160, "HyperLinkButton", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
HyperLinkGadget(0, 10, 10, 80,22," Button #1",$0000FF ...
- Mon May 08, 2023 3:57 pm
- Forum: Coding Questions
- Topic: [Solved] PureBasic 6.02 beta 3 LTS (x64) #WM_DRAWITEM does not work properly.
- Replies: 14
- Views: 1556
Re: PureBasic 6.02 beta 3 LTS (x64) #WM_DRAWITEM does not work properly.
... This is a working example of how to deal with ListViewGadget owner drawing if it is placed inside a PanelGadget.
Thanks Fred, for the push ... SizeGadget | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
ButtonGadget(#GADGET_btnAdd, 4, 4, 96, 24, "Add New Line")
TextGadget(#GADGET ...
Thanks Fred, for the push ... SizeGadget | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
ButtonGadget(#GADGET_btnAdd, 4, 4, 96, 24, "Add New Line")
TextGadget(#GADGET ...
- Fri Feb 03, 2023 9:36 am
- Forum: General Discussion
- Topic: How to make a modern GUI?
- Replies: 31
- Views: 7630
Re: How to make a modern GUI?
Not buttons, but Toolbar button image + text exist since 5.60
Yeah, I know. But at this time, the app was already there for 6 years and already used owner drawn buttons. The app in this configuration started in 2011 with PB 4.61. I also remember that the team later argued that right-aligning an ...
- Wed Dec 07, 2022 11:36 am
- Forum: Tricks 'n' Tips
- Topic: Better ColorRequester()
- Replies: 24
- Views: 11608
Re: Better ColorRequester()
... and Set the ColorRequester Background Color.
; For Windows 10 and up, Buttons use the DarkMode_Explorer theme If the Background Color is Dark ... Structure CHOOSECOLOR ; see PB toolbox
; lStructSize.l
; hwndOwner.i
; hInstance.i
; rgbResult.l
; *lpCustColors
; Flags.l
; lCustData.i ...
; For Windows 10 and up, Buttons use the DarkMode_Explorer theme If the Background Color is Dark ... Structure CHOOSECOLOR ; see PB toolbox
; lStructSize.l
; hwndOwner.i
; hInstance.i
; rgbResult.l
; *lpCustColors
; Flags.l
; lCustData.i ...
- Mon Aug 08, 2022 5:56 pm
- Forum: General Discussion
- Topic: Why no SetGadgetColor for buttons?
- Replies: 21
- Views: 4584
Re: Why no SetGadgetColor for buttons?
After reflection, here is a code to colorize buttons, disabled buttons are not taken into account because it is necessary to mix the base colour with button theme color using the alpha layer, it's simpler with Gdi+ (at least for me, I know that not all know Gdi+).
The button must be "#BS_OWNERDRAW ...
The button must be "#BS_OWNERDRAW ...
- Mon Jul 04, 2022 5:47 pm
- Forum: Applications - Feedback and Discussion
- Topic: Launcher
- Replies: 2
- Views: 7501
Re: Launcher
Update (Windows)
Added custom button color for Launcher-OWNER (color=550000).
For WindowsXP, forced Wow64EnableWow64FsRedirection to be disabled because it doesn't exist (bug fix).
The sequence of the missing ini-file dialog has been restored.
Added custom button color for Launcher-OWNER (color=550000).
For WindowsXP, forced Wow64EnableWow64FsRedirection to be disabled because it doesn't exist (bug fix).
The sequence of the missing ini-file dialog has been restored.
- Fri Jan 14, 2022 7:20 am
- Forum: Applications - Feedback and Discussion
- Topic: Launcher
- Replies: 2
- Views: 7501
Re: Launcher
Update (Windows)
Added the BitsHide = 32 (or 64) parameter. These buttons will be hidden on the specified OS.
If the screen size (600) is smaller than ... BorderColor=FF9900
Added an option with custom button drawing (Launcher-OWNER)
[gui]
BCbg=444444
BCbg2=222222
BCtxt=dddddd
BCtxt2=FF8800
BCfr=0099FF ...
Added the BitsHide = 32 (or 64) parameter. These buttons will be hidden on the specified OS.
If the screen size (600) is smaller than ... BorderColor=FF9900
Added an option with custom button drawing (Launcher-OWNER)
[gui]
BCbg=444444
BCbg2=222222
BCtxt=dddddd
BCtxt2=FF8800
BCfr=0099FF ...
- Tue Feb 11, 2020 2:51 pm
- Forum: Coding Questions
- Topic: Fill a ScrollAreaGadget without flickering?
- Replies: 20
- Views: 5347
Re: Fill a ScrollAreaGadget without flickering?
Closest thing to doing that would be an owner-drawn combo without the #CBS_HASSTRINGS styles. In this case you would simply draw the text yourself ... s just once and then simply repopulate everytime you hit the rebuild button. Together with some #WM_SETREDRAW's seems to speed up massively here ...
- Thu Jan 31, 2019 12:11 am
- Forum: Tricks 'n' Tips
- Topic: Module ScaleGadgets
- Replies: 63
- Views: 24853
Re: Module ScaleGadgets
Update v0.16
- Added ScaleRegisterGadget(Gadget, ...) for owner gadget
New feature to add custom gadgets to the ScaleGadget system.
First create ... changed to the correct size.
; Add owner gadget with PB_Any
Define MyButton = MyOwnerDrawButtonGadget(#PB_Any, 360, 10, 160, 30, "My Button ...
- Added ScaleRegisterGadget(Gadget, ...) for owner gadget
New feature to add custom gadgets to the ScaleGadget system.
First create ... changed to the correct size.
; Add owner gadget with PB_Any
Define MyButton = MyOwnerDrawButtonGadget(#PB_Any, 360, 10, 160, 30, "My Button ...
- Tue Nov 27, 2018 11:07 pm
- Forum: Tricks 'n' Tips
- Topic: Module ScaleGadgets
- Replies: 63
- Views: 24853
Module ScaleGadgets
... the size.
The callback must have the following structure.
Procedure MyOwnerDrawCB(Gadget, x, y, Width, Height)
This is called automatically when ... Title, Flags, ParentID)
EndMacro
;- - Create Gadget´s
Macro ButtonGadget(Gadget, x, y, dx, dy, text, Flags = 0)
CreateGadget(#PB ...
The callback must have the following structure.
Procedure MyOwnerDrawCB(Gadget, x, y, Width, Height)
This is called automatically when ... Title, Flags, ParentID)
EndMacro
;- - Create Gadget´s
Macro ButtonGadget(Gadget, x, y, dx, dy, text, Flags = 0)
CreateGadget(#PB ...
- Wed Nov 07, 2018 3:58 pm
- Forum: General Discussion
- Topic: Need help about future decision of my PB apps
- Replies: 18
- Views: 6167
Re: Need help about future decision of my PB apps
... Also, it is really hard to make this DPI aware. At least, if you mix owner drawn with generic ones. Also, I really do not want to re-invent many ... the same.
And trust me, I know what I'm writing about. I did my own button Gadget, my own ListView/TreeView and some others (just search the forum ...
And trust me, I know what I'm writing about. I did my own button Gadget, my own ListView/TreeView and some others (just search the forum ...