Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2025, 05:12 AM   #1
reuerendo
Member
reuerendo began at the beginning.
 
Posts: 21
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
Attached Thumbnails
Click image for larger version

Name:	69abea57415b9d1e4888c10940d7.jpeg
Views:	16
Size:	8.6 KB
ID:	219531  
reuerendo is offline   Reply With Quote
Old Today, 08:46 AM   #2
orontee
Connoisseur
orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.orontee ought to be getting tired of karma fortunes by now.
 
orontee's Avatar
 
Posts: 93
Karma: 250460
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus, reMarkable Paper Pro
Quote:
Originally Posted by reuerendo View Post
Could someone perhaps advise me on how to create such a
toggle switch? Thank you
I recommend reading about iconfig,iconfigedit and CFG_CHECKBOX in inkview.h but beware I have not checked that CFG_CHECKBOX is exactly what you want...

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; Today at 09:16 AM.
orontee is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:50 PM.


MobileRead.com is a privately owned, operated and funded community.