Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2008, 08:52 AM   #1
ouais32
Junior Member
ouais32 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2008
Device: iLiad
Question Add new icons to the toolbar

Hi,

Is there any way to add new icons to the toolbar ? (new PNG image, new icon ID)

I found the file toolbar.xml which contains declaration of all toolbar icons.
I added a new icon to this file but nothing happened. I copied the file to different locations, rebooted iLiad many times.
In order to append the icon to the toolbar, I call tbAppendPlatformIcon with the icon ID "iconID_forward + 1" (i.e. 67) and it shows :
"(W)mb-applet-icon-container.c:193,doAppendPlatformIcon() Illegal arguments: uaID (1), iconID (67), nIcons (67)"
nIcons always equals 67, no matter how many icons I add to toolbar.xml.

Also, I saw that the header liberipc/eripctoolbar.h contains enum of all icons IDs.
As we can't rebuild that, we will not be able to add any icon to the toolbar ?

Thanks
ouais32 is offline   Reply With Quote
Old 01-04-2008, 11:43 AM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
I'm not sure in what program you're trying to do this, or in the general contentlister.

But it should be possible in 3rd party programs. The community iPDF with bookmark support does this. Take a look at that code to see how.
Adam B. is offline   Reply With Quote
Advert
Old 01-04-2008, 12:04 PM   #3
ouais32
Junior Member
ouais32 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2008
Device: iLiad
I'm trying to do this in iPDF.
For bookmark support, new icons are actually already existing ones : iconID_bookmark and iconID_sort
Their IDs are in the header liberipc/eripctoolbar.h
ouais32 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik LRF 1 10-13-2009 04:01 AM
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik Sony Reader Dev Corner 1 10-06-2009 03:33 AM
Toolbar icons yingwu iRex 3 06-17-2009 12:20 PM
Sony Reader Icons, Other Reader Icons and much more! TheHeartlessHero Deals and Resources (No Self-Promotion or Affiliate Links) 27 11-21-2008 06:21 AM
iLiad Toolbar icons tomchek iRex Developer's Corner 6 07-30-2007 11:13 AM


All times are GMT -4. The time now is 02:19 AM.


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