Page 1 of 2
example of combobox + checkbox combined
Posted: Fri May 19, 2023 1:11 pm
by digitsoft
hello Roger
you have an example of combobox + checkbox combined
Re: example of combobox + checkbox combined
Posted: Fri May 19, 2023 1:46 pm
by rdonnay
That is not possible with a DCCOMBOBOX command.
I don't understand what it is that you want.
Re: example of combobox + checkbox combined
Posted: Fri May 19, 2023 2:25 pm
by digitsoft
I need to choose several options within a combobox
Re: example of combobox + checkbox combined
Posted: Sat May 20, 2023 2:35 am
by Wolfgang Ciriack
Take a DCBrowse with a bitmap column, one bitmap with a selected checkbox, one with a non selected checkbox.
Re: example of combobox + checkbox combined
Posted: Sat May 20, 2023 3:24 am
by PedroAlex
Maybe 'DCListBox' can be useful for your case!
Re: example of combobox + checkbox combined
Posted: Sat May 20, 2023 9:58 am
by Auge_Ohr
hi,
XbpListbox() / XbpCombobox() have Ownerdraw so you can use "drawItem" Codeblock Slot to "paint" your Item
Code: Select all
:drawItem := {| oPS, aInfo, self | ... }
Re: example of combobox + checkbox combined
Posted: Tue May 23, 2023 7:08 am
by digitsoft
I NEED SOMETHING LIKE THIS
Re: example of combobox + checkbox combined
Posted: Tue May 23, 2023 10:04 am
by Auge_Ohr
hi Diego,
as i say you can use Ownerdraw, which is like "Printing" on oPS
Code: Select all
:drawItem := {| oPS, aInfo, self | ... }
Array aInfo hold Information. look at XbpListbox() -> :drawItem
---
it is "hard" to have "Image" on right Side as you must "calculate" longest String before
when place it on left Side it is "easy"
Sample does not show Image but it is same Way

- ListBox_Ownerdraw.jpg (24.98 KiB) Viewed 13403 times
left Side : Xbase++
right Side : DXE Lib Version using Ot4XB
Re: example of combobox + checkbox combined
Posted: Tue May 23, 2023 11:31 am
by digitsoft
Hi
where can i download that lib with compileable examples
Re: example of combobox + checkbox combined
Posted: Tue May 23, 2023 1:28 pm
by Auge_Ohr
hi Diego,
digitsoft wrote: ↑Tue May 23, 2023 11:31 am
where can i download that lib with compileable examples
did you talk about DXE Lib
i have made it for v1.9.355
as i do not use v2.x i have ask People every Year at Devcon to compile it with v2.x
but have not be on Devcon since i began with harbour / HMG / Fivewin
---
here a full Sample using "pure" Xbase++
try different Number (1 - 5) as Parameter