User Activity

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hi Ognyan and Sebastian, thank-you for your solution. That's awesome. I didn't excpect to set pszText to an external buffer. Now, it works fine.

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello, just trying to read back the caption of the TabControl Items I previously set by using Add(). But the item.pszText is empty and undefined. TabControl = new TTabControl(this, 1234, 0, 0, 100, 20); ... TabControl->Add("Curve"); TabControl->Add("Setup"); TabControl->Add("Steps"); TabControl->Add("Notes"); ... TTabItem item1(TCIF_IMAGE | TCIF_PARAM); // TCIF_TEXT TabControl->GetItem(i, item1); or TCITEMA *item2 = new TTabItem(TCIF_TEXT); TabCtrl_GetItem(TabControl->Handle, 1, &item2); It's not...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    You are right. My company forced me to scan all code with CodeSonar and because of this, I had to replace all strncpy. But I didn't want to use strings, so I added a function which should be save, too. void StrCopy(char* dest, const char* srce, unsigned int len) { if (strlen(srce) < len) strcpy(dest, srce); else if (len) { strncpy(dest, srce, --len); dest[len] = 0; } }

  • Modified a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Thank you very much for all your input. I tried all variations. The one from Sebastian needs a lot of coding to make the optics the same as usual, with all the events and drawings. The input from Vidar is correct, but I didn't manage to make the TStatic visible in the boundaries of the TRadioButton. And Ognyans hint for grouping the RadioButtons correctly is hard to implement. But all these helped me to find a solution, which works for me. I want to share the result: XRadioButton::XRadioButton(TWindow*...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Thank you very much for all your input. I tried all variations. The one from Sebastian needs a lot of coding to make the optics the same as usual, with all the events and drawings. The input from Vidar is correct, but I didn't manage to make the TStatic visible in the boundaries of the TRadioButton. And Ognyans hint for grouping the RadioButtons correctly is hard to implement. But all these helped me to find a solution, wich works for me. I want to share the result: XRadioButton::XRadioButton(TWindow*...

  • Modified a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello, I come back with this issue, because of a problem with grouping the radiobuttons. If I use my class with a separate static for the text to use custom colors like this: XRadioButton::XRadioButton(TWindow* parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox* group) : TRadioButton(parent, id, "", x, y, 14, h, group) { StaticCaption = new TStatic(parent, -1, title, x + 16, y - 1, w, h); } it looks pretty well, but having a group of radiobuttons doesn't deactivate the others, when...

  • Modified a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello, I come back with this issue, because of o problem with grouping the radiobuttons. If I use my class with a separate static for the text to use custom colors like this: XRadioButton::XRadioButton(TWindow* parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox* group) : TRadioButton(parent, id, "", x, y, 14, h, group) { StaticCaption = new TStatic(parent, -1, title, x + 16, y - 1, w, h); } It looks pretty well, but having a group of radiobuttons doesn't deactivate the others, if...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello, I come back with this issue, because of o problem with grouping the radiobuttons. If I use my class with a separete static for the text to use custom colors like this: XRadioButton::XRadioButton(TWindow parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox group) : TRadioButton(parent, id, "", x, y, 14, h, group) { StaticCaption = new TStatic(parent, -1, title, x + 16, y - 1, w, h); } It looks pretty well, but having a group of radiobuttons doesn't deactivate the others, if...

View All

Personal Data

Username:
tegich
Joined:
2009-09-23 15:23:36

Projects

This is a list of open source software projects that Thien Egi is associated with:

Personal Tools

MongoDB Logo MongoDB