[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2099.0. "Rookie problem!" by WHOUSE::RALAN () Mon Jan 22 1990 09:18

    Hi! I'm new to DECwindows and am having what I'm sure is a rookie
    problem!
    
    I am trying to create a push button widget that has text on two 
    separate lines, similiar to the widget in the Helloworld example.
    
    Using an older version of Helloworld as a model, I tried embedding
    a \n in the text string in my UIL module. No luck! The text all
    printed on one line. I then got ahold of the latest version of
    Helloworld which uses the "separate = TRUE" statement instead of
    the newline character. But again, no luck, the text still prints
    on one line.
    
    Does anyone have any idea what I need to do to print two or more
    lines of text within a push button widget?
    
    Any help will be greatly appreciated!!!
T.RTitleUserPersonal
Name
DateLines
2099.1QUARK::LIONELFree advice is worth every centMon Jan 22 1990 12:415
What version of VMS are you using?   The example in HELLOWORLD works, but
you have to compile the UIL file - using the compiled UID on the kit doesn't
work.

				Steve
2099.2Another question!WHOUSE::RALANTue Jan 23 1990 09:2914
    We recently upgraded to 5.3. Since writing my initial note yesterday
    I have been able to get the "sepaprate = TRUE" statement to work
    and cause a text string to write on more than one line, but I have
    come up with a new problem.
    
    It appears that when writing text (by using label_label with a compound
    string) in a push-button widget, DECwindows wants to center the text
    within the widget. And a two line label has the two lines centered
    as well, without any alignment to each other. My question is...
    is there any way to override this centering and force the text
    to left justified against a margin boundery established by me?
    
    Label widgets allow the placement of text into predefined coordinates
    but push-button labels don't seem to. Any ideas?
2099.3QUARK::LIONELFree advice is worth every centTue Jan 23 1990 10:464
I suggest you raise your question in the CLT::UIL-DRM conference, as the
expertise in using UIL is more concentrated there.

				Steve
2099.4gadgets?DECWIN::KLEINTue Jan 23 1990 10:548
>>    Label widgets allow the placement of text into predefined coordinates
>>    but push-button labels don't seem to. Any ideas?

I suspect that you are getting push_button gadgets, not widgets.  If using
UIL, you need to explicitly request push_button widgets.  Gadgets do not
have all the resources.

-steve-