|
|
#1 |
|
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2023
Device: PocketBook InkPad 4
|
on/off toggle switch
Hi. While developing an application using the PocketBook SDK, I encountered an unexpected difficulty. I am unable to create an on/off toggle switch like the one in the image. Could someone perhaps advise me on how to create such a toggle switch? Thank you
|
|
|
|
|
|
#2 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 93
Karma: 250460
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus, reMarkable Paper Pro
|
Quote:
EDIT: Well, I just tried and I have no idea how to initialize CFG_CHECKBOX; Using the same as for a contextual "yes no" menu made with CFG_INDEX it doesn't render as you expects... Last edited by orontee; 12-06-2025 at 09:16 AM. |
|
|
|
|
|
|
#3 |
|
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2023
Device: PocketBook InkPad 4
|
Thanks for your reply. I tried using the CFG_CHECKBOX, but it didn't work. Unfortunately, I couldn't find any documentation on this topic or examples from other applications.
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,075
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
CFG_CHECKBOX only showed up in recent firmware versions. It isn't available on older firmwares, so most of the third-party software out there wouldn't have included it.
Since it displays a graphic, maybe the values should just be numbers (0 and 1) rather than strings. The "icon_theme" entry in the iconfigedit struct is also new to firmware version 6, so perhaps it is necessary for this new type. I have no idea what you would set it to, though. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I create a new toggle? | winstonma | Onyx Boox | 4 | 05-19-2023 03:38 AM |
| How does the 'Automatically Sleep and Wake' toggle switch work? | Dr. Drib | Kobo Reader | 21 | 10-19-2022 05:43 PM |
| Toggle Voice??? | tym | Viewer | 4 | 03-16-2022 10:15 AM |
| How does one toggle the Auto Scroll? | jer.b | Viewer | 9 | 10-24-2021 03:27 PM |
| Dark Mode Toggle | Futuregrace | Amazon Kindle | 61 | 06-22-2020 11:37 AM |