example of combobox + checkbox combined

This forum is for eXpress++ general support.
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

example of combobox + checkbox combined

#1 Post by digitsoft »

hello Roger
you have an example of combobox + checkbox combined
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4728
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: example of combobox + checkbox combined

#2 Post by rdonnay »

That is not possible with a DCCOMBOBOX command.

I don't understand what it is that you want.
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: example of combobox + checkbox combined

#3 Post by digitsoft »

I need to choose several options within a combobox
Nolberto Paulino
Regards

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: example of combobox + checkbox combined

#4 Post by Wolfgang Ciriack »

Take a DCBrowse with a bitmap column, one bitmap with a selected checkbox, one with a non selected checkbox.
_______________________
Best Regards
Wolfgang

User avatar
PedroAlex
Posts: 229
Joined: Tue Feb 09, 2010 3:06 am

Re: example of combobox + checkbox combined

#5 Post by PedroAlex »

Maybe 'DCListBox' can be useful for your case!
Pedro Alexandre

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: example of combobox + checkbox combined

#6 Post 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 | ... }
greetings by OHR
Jimmy

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: example of combobox + checkbox combined

#7 Post by digitsoft »

I NEED SOMETHING LIKE THIS
Attachments
Ejemplo.jpg
Ejemplo.jpg (90.59 KiB) Viewed 3368 times
Nolberto Paulino
Regards

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: example of combobox + checkbox combined

#8 Post 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
ListBox_Ownerdraw.jpg (24.98 KiB) Viewed 3356 times
left Side : Xbase++
right Side : DXE Lib Version using Ot4XB
greetings by OHR
Jimmy

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: example of combobox + checkbox combined

#9 Post by digitsoft »

Hi
where can i download that lib with compileable examples
Nolberto Paulino
Regards

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: example of combobox + checkbox combined

#10 Post 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
Attachments
OWLBOX.ZIP
(4.22 KiB) Downloaded 111 times
greetings by OHR
Jimmy

Post Reply