Comments (7)
If you need a flexible layout, you can overload the adjustSize()
method.
An example can be found in examples/ui.cpp.
Planned for the future is an FGrid widget container, which organizes its child widgets into rows and columns.
from finalcut.
The issue transcends adjusting the size to different screens. There exists a Turbo Vision port for Linux/Windows, that has implicit 80x25 assumptions. Nasty.
from finalcut.
I'm afraid I don't understand the question. I can't see your point.
If you have a flexible layout, then it also works in 80x25.
from finalcut.
That's the point. I wrote a tvision app once and once I ssh-ed to the shell and tried out the app, one could see there were some 80x25 assumptions in library code, as the phone terminal emulator had very strange dimensions, you could see artifacts stemming from the 80x25 assumptions.
from finalcut.
Unfortunately, I still don't understand your question.
Have you a problem with tvision or Final Cut?
Final Cut gets its resolution information via TIOCGWINSZ. If this doesn't work I use the environment variables COLUMNS
and LINES
. Otherwise I assume a standard xterm resolution of 80x24.
from finalcut.
I was merely making a philosophical observation. Not only do layouts provide flexibility are regards different screen resolutions, they also guard us from making potentially invalid assumptions (like the 80x25 assumption in tvision). As for me personally, I was looking for a TUI library, that would support something like the Qt's QScrollArea
, but no luck :(
BTW: If you intend to implement signals/slots, take a look at:
https://github.com/user1095108/generic/blob/master/callback.hpp
Otherwise, you can close this issue.
from finalcut.
There is FScrollView
that should be what you are looking for. For an example you can look into the examples/scrollview.cpp source code.
A callback functionality is already implemented. For example, you can use emitCallback("clicked")
to generate a signal that can call a own routine via widget.addCallback("clicked", F_METHOD_CALLBACK (this, &classname::method))
.
from finalcut.
Related Issues (20)
- How to acces FLineEdit text after event FFocusEvent HOT 2
- Problem with FLabel drawing double HOT 2
- Dynamic Layout issue HOT 1
- FListView crashing HOT 7
- Catching the terminal focus and unfocus signal in finalcut HOT 2
- ColorPalette not resetting after close HOT 2
- pretty last moment to get a newer version into debian HOT 1
- Does it support MSYS2 MinGW64? HOT 2
- Failed to build on MSYS2 MinGW64 HOT 2
- Compile error with clang++ -std=c++20 HOT 2
- FListview hide columns HOT 2
- Make it work on touchscreens HOT 4
- Build failed on ubuntu 22.04.2 LTS HOT 1
- can i recomend you guys an acscii 3d game HOT 2
- show windows on frame buffer HOT 4
- Enabling text selection HOT 3
- does it need ncurses?? HOT 1
- [FIX] Unable to build latest "main" without this HOT 1
- building problem with gcc-14 HOT 3
- cmake CPM building
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finalcut.