Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

SplitterFrame1

 

Resizable frame Ctrls - with dialog

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

#define LAYOUTFILE <SplitterFrame1/StandardLayout.lay>

#include <CtrlCore/lay.h>

 

struct MyApp : WithStandardLayout<TopWindow> {

    SplitterFrame sf;

    ArrayCtrl list,list1;

    typedef MyApp CLASSNAME;

    TopWindow app;

 

    MyApp() {

        CtrlLayoutOKCancel(*this, "Test SplitterFrame");

        AddFrame(sf.Left(list, 200));

        list.AddColumn("List");

        for(int i = 0; i < 100; i++)

            list.Add(FormatIntRoman(i, true));

        AddFrame(InsetFrame());

        sf.SizeMin(200).MinSize(100);

        Sizeable();        

    }

};

 

GUI_APP_MAIN

{

    MyApp().Run();

}

 

 

 

StandardLayout.lay

 

LAYOUT(StandardLayout, 396, 192)

    ITEM(Button, ok, SetLabel(t_("OK")).SetFont(StdFont().Bold()).LeftPosZ(12, 96).BottomPosZ(13, 27))

    ITEM(Button, cancel, SetLabel(t_("Cancel")).RightPosZ(12, 68).BottomPosZ(13, 19))

    ITEM(Label, dv___2, SetLabel(t_("label:")).SetAlign(ALIGN_RIGHT).LeftPosZ(12, 48).TopPosZ(20, 20))

    ITEM(EditString, estr, HSizePosZ(64, 12).TopPosZ(20, 19))

    ITEM(LabelBox, dv___4, SetLabel(t_("Standard Layout")).SetInk(LtBlue).HSizePosZ(4, 4).VSizePosZ(4, 4))

END_LAYOUT

 

 

 

 

 

Do you want to contribute?