Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[wxWidgets] ToolBar + BitMap (MacOSX)

Featured Replies

Posté(e)

Alors voila je voudrais créer une toolbar avec des boutons qui sont en format bmp mais lorsque j'execute mon code ma toolbar apparait mais pas les images --> avec un jolie message d'erreur : no bitmap handler for type 1 defined.

Je vous donne juste le code de ma méthode qui crée la toolbar :

void CMainFrame::CreateMyToolbar() {
m_toolbar = CreateToolBar(wxNO_BORDER | wxTB_HORIZONTAL,TOOLBAR_TOOLS);
wxBitmap toolBarBitmaps[4];

toolBarBitmaps[0] = wxBitmap(_("new.bmp"),wxBITMAP_TYPE_BMP);
toolBarBitmaps[1] = wxBitmap(_("open.bmp"),wxBITMAP_TYPE_BMP);
toolBarBitmaps[2] = wxBitmap(_("save.bmp"),wxBITMAP_TYPE_BMP);
toolBarBitmaps[3] = wxBitmap(_("draw.bmp"),wxBITMAP_TYPE_BMP);

m_toolbar->SetToolBitmapSize(wxSize(toolBarBitmaps[0].GetWidth(),toolBarBitmaps[0].GetHeight()));

m_toolbar->AddTool(MENU_NEW, _("Nouveau"), toolBarBitmaps[0]);
m_toolbar->AddTool(MENU_OPEN, _("Open"), toolBarBitmaps[1]);
m_toolbar->AddTool(MENU_SAVE, _("Save"), toolBarBitmaps[2]);
m_toolbar->AddSeparator();
m_toolbar->AddCheckTool(MENU_TRIANGLE,_("Draw"),toolBarBitmaps[3]);

SetToolBar(m_toolbar);
m_toolbar->Realize();
}

Petite image de ce que ca doit donner logiquement -->

image006.jpg

Posté(e)
  • Auteur

Petite précision même si apparement ca parle pas beaucoup...

Ce code fonctionne sur le serveur de ma fac qui est sur la version 2.6.3 de wxWidgets alors que je suis sur la version 2.8.0 sur mon MacBook :cartonrouge:

Donc je suppose qu'ils ont du modifier la gestion des images dans cette version mais je vois pas trop comment faire malheureusement.

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.