Freeman35 Posted May 13, 2020 Share Posted May 13, 2020 Hello, 1-) In Treail 1531, CustomControl-4 demo. dpk file's requires, need change to installed prefix number. foe example, saved "uniGUI20Core" etc. not much importent 2-) Install this demo component, then open demo application in IDE, you will see added component TUniMyButtonGroup. change this component's "Align" property to any, for example to "alNone" and then press "Alt + F12" look to dfm, you will not see this property :) then back to do form view, Property setted to alTop. This mean I set position in form, build and run application, It on the top :) How to fix this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 13, 2020 Share Posted May 13, 2020 10 hours ago, Freeman35 said: 1-) In Treail 1531, CustomControl-4 demo. dpk file's requires, need change to installed prefix number. foe example, saved "uniGUI20Core" etc. not much importent Hello, Just remove these files from the project. And when you install the package, these files will be added... Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted May 14, 2020 Author Share Posted May 14, 2020 3 hours ago, Sherzod said: Hello, Just remove these files from the project. And when you install the package, these files will be added... That was just let you know. So I wrote not much importend. Problem is 2. Align property not saveing in dfm & always set to default value alTop. So I can not change position of component. Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted May 14, 2020 Author Share Posted May 14, 2020 Solution: constructor TUniMyButtonGroup.Create(AOwner: TComponent); begin FItems := TMyButtonGroupCollection.Create(TMyButtonGroupItem); inherited; // Define the default height and width for this control // Align:=alTop; <--- Remark or remove this line Height:=46; ColumnCount:=1; end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.