anchoring widgets in ringnotepad

22 views
Skip to first unread message

Al As

unread,
Jul 15, 2022, 12:44:11 PM7/15/22
to The Ring Programming Language

Dear All,

is there any way to anchor the widgets on the form?

thanks
Alaa


Mahmoud Fayed

unread,
Jul 15, 2022, 5:56:28 PM7/15/22
to The Ring Programming Language
Hello Alaa

See the next samples:



The idea is about using Layouts, and methods list setMinimumWidth(), setMinimumHeight(), setMaximumWidth(), setMaximumHeight() & setSizePolicy()

Greetings,
Mahmoud

Al As

unread,
Jul 16, 2022, 1:09:54 PM7/16/22
to The Ring Programming Language
Thank Mahmoud for your response
is there any way to do it in ring note designer?

thanks
Alaa

Mahmoud Fayed

unread,
Jul 16, 2022, 1:33:19 PM7/16/22
to The Ring Programming Language
Hello Alaa


The application uses Layouts, Take a copy from it and try playing with it

Remember that we design the User Interface using the Form Designer which will generate the View Class

But we still have the Controller class that can access the view object: https://github.com/ring-lang/ring/blob/master/tools/findinfiles/findinfilesController.ring#L18

Greetings,
Mahmoud

Al As

unread,
Jul 17, 2022, 2:49:40 PM7/17/22
to The Ring Programming Language
hi Mahmoud ,
i found good tutorial , hope everyone benefit from it


Thanks

Mahmoud Fayed

unread,
Jul 17, 2022, 4:53:34 PM7/17/22
to The Ring Programming Language
Hello Alaa

Thanks for sharing :D

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages