Skip to Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
4.5 Busy Frames
When running the Push Me application, you might notice a delay between the time that the
Hello button is pressed and the time that the subframe is displayed. If a delay might confuse
the user about what might be happening, you can provide visual feedback that the application
is at work. You can set the FRAME_BUSY attribute for the frame that issues the request that
might cause the delay. In Example 4-6 we set the XV_SHOW attribute in the base frame. Thus,
show_cmd_frame() might have looked like the following code fragment:
show_cmd_frame(subframe,event)
Frame subframe;
Event *event;
{
xv_set(baseframe, FRAME_BUSY, TRUE, NULL);
xv_set(subframe, XV_SHOW, TRUE, NULL);
xv_set(baseframe, FRAME_BUSY, FALSE, NULL);
}
The effect of this action is that the base frame’s header will be grayed out and the cursor will
change to a timeout cursor. When the subframe has been displayed, the base frame’s appear-
ance is resumed and the cursor restored. If excessively long delays are expected, then this
method might not be adequate—all other buttons and events are suspended until the callback
routine has returned control to the Notifier.
Note that FRAME_BUSY only grays the title bar and sets the busy cursor for the frame passed
to xv_set(). If your application has many subframes and you wish each of them to
become busy, you need to set this attribute for each frame.
4.6 Frame Sizes
The size of any type of frame can be set or queried using either of two convenience functions
available from the FRAME package. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Volume 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson

Publisher Resources

ISBN: 9780937175873