Jump to content

Roland

Developers
  • Posts

    2,953
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Sweden

Recent Profile Visitors

42,882 profile views

Roland's Achievements

Newbie

Newbie (1/14)

  • Dedicated
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

510

Reputation

1

Community Answers

  1. WString newState = "false"; // or = "true" auto myCheck = CreateButton("MyCheckbox", x, y+50, 20, 20, this->ui->root, ButtonStyle::BUTTON_CHECKBOX); myCheck->SetState( newState == "true" );
  2. Ooops I missed one line :) auto sidepanel = CreatePanel(0, 0, SIDEPANELWIDTH, sz.y, mainpanel); sidepanel->SetLayout(0, 1, 1, 1); sidepanel->SetColor(1, 0, 0);
  3. All Widget virtual methods mentioned is Custom Widgets are undocumented. I have added the missing documentation hints here (in yellow)
  4. All Create functions in the GUI part are returning Widget's as shared pointers. Does this mean that the AppKit also owns the returned Widget internally and destroys them internally att program exit?
  5. I'm working on a little project where I need to make some simple image processing such as rotation, brightness, contrast and so on. FreeImage is a nice lib for those things and I noticed that it's already included in the FITextueLoader Plugin so that's nice. Is there a way to access the pixel-data in Pixmap so it an be used with the FreeImage functions? Actually something like this: FIBITMAP* Pixmap2FreeImage( std::shared_ptr<Pixmap> pixmap ) { FIBITMAP* bmp = //??? pixmap->???? // ???? return bmp; } std::shared_ptr<UltraEngine::Pixmap> FreeImage2Pixmap(FIBITMAP* source) { std::shared_ptr<UltraEngine::Pixmap> pixmap = std::make_shared<UltraEngine::Pixmap>( ); // ??? return pixmap; }
  6. Here is the one with the white bar at top. Removed Resizable and the white bar is gone. So the problem is Resizable ... if the bar isn't intestinally there of some strange reason ? The white bar in the example above shouldn't bee there in my humble opinion
  7. Small things but somebody have to report them ? x, width should be x, r y, height should be x, g
  8. Just a thought. Might something like this work. Change the return values of newline to whatever suitable
  9. Have you tested std::endl https://en.cppreference.com/w/cpp/io/manip/endl
  10. I tested the simple code in the "Create an Image Viewer" in the Tutorials. All images I tested works well when loaded. However some of the become distorted and grayscale when saved, but only some of them. I have enclosed such an image. The original and the one saved by the Image Viewer example
×
×
  • Create New...