Jump to content

Problems with radio buttons (steam).


Go to solution Solved by Josh,

Recommended Posts

Posted

 

image.png.15402eec764be2ff45add207ff365513.png

this happens after pushing the "ambient" button. The software also crashes. 

image.png.4a3da858c60413758d615f9ea6fd8f27.png

code:

auto removal_p = CreatePanel(0, gap, sz.x - 684, 162, delit_p, PANEL_GROUP);
    removal_p->SetText("Removal");

    auto dir_m = CreateButton("Directional", 0, gap, 120, 30, removal_p, BUTTON_RADIO);
    dir_m->SetState(WIDGETSTATE_SELECTED);

    auto amb_m = CreateButton("Ambient", 100, gap, 120, 30, removal_p, BUTTON_RADIO);

 

image.png

  • 1 year later...
Posted

Program is going into an infinite loop...one moment...

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    //Get the displays
    auto displays = GetDisplays();

    //Create a window
    auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0], WINDOW_TITLEBAR | WINDOW_RESIZABLE);

    //Create User Interface
    auto ui = CreateInterface(window);

    //Create widget
    auto sz = ui->root->ClientSize();
   
    int gap = 20;

    auto removal_p = CreatePanel(0, gap, sz.x - 50, 162, ui->root, PANEL_GROUP);
    removal_p->SetText("Removal");

    auto dir_m = CreateButton("Directional", 0, gap, 120, 30, removal_p, BUTTON_RADIO);
    dir_m->SetState(WIDGETSTATE_SELECTED);

    auto amb_m = CreateButton("Ambient", 100, gap, 120, 30, removal_p, BUTTON_RADIO);

    while (true)
    {
        const auto& event = WaitEvent();
    }
    return 0;
}

 

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Josh locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...