HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem calling XmTextField Action Proc
Operating System - HP-UX
1832451
Members
3232
Online
110042
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 07:18 AM
08-01-2001 07:18 AM
Problem calling XmTextField Action Proc
I would like the contents of an XmTextField widget to appear selected when the widget is displayed.(i.e. as if the user had held and dragged the left mouse over the field). I see the textfield widget has an action proc called select-all and assume this is what needs to be called. I tried calling it using the XtCallActionProc, but can find no documentation on what the contents of the event argument should be, nor its structure. I am assuming that no other parameters need to be passed, besides the widget and the name of the action routine. I would appreciate any suggestions. Thanks in advance.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2001 12:25 PM
08-04-2001 12:25 PM
Re: Problem calling XmTextField Action Proc
Hello Joan,
if you go for action proc callbacks you will have to register
a "Binding" to some "Event" or Combination of "Events"
to be bound to that "Action", like in your ".Xdefaults":
yourprg*Translations: #overrride \n Ctrla: select-all() \n
And, as you see, it does NOT take any parameters...
But you are looking for a solution from within your
C-program, right? So you would not go for "ActionProcs"
but for the "ICCCM" (Inter Client Communication
Convention Manual, which is quite complicated) or you
do simply use the "XtSetValue" method to set the
values of the "XmNsectionArray" and the
"XmNselectionArrayCount" for that widget. You seem
to go for the action "XmSELECTION_LINE" to select
the whole line of text in your widget...
HTH,
Wodisch
if you go for action proc callbacks you will have to register
a "Binding" to some "Event" or Combination of "Events"
to be bound to that "Action", like in your ".Xdefaults":
yourprg*Translations: #overrride \n Ctrl
And, as you see, it does NOT take any parameters...
But you are looking for a solution from within your
C-program, right? So you would not go for "ActionProcs"
but for the "ICCCM" (Inter Client Communication
Convention Manual, which is quite complicated) or you
do simply use the "XtSetValue" method to set the
values of the "XmNsectionArray" and the
"XmNselectionArrayCount" for that widget. You seem
to go for the action "XmSELECTION_LINE" to select
the whole line of text in your widget...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2001 10:09 AM
08-07-2001 10:09 AM
Re: Problem calling XmTextField Action Proc
Thank you for taking the time to read and acknowledge my question. You are correct, I am trying to casue the action from a C program. The XtSetValue suggested didn't seem to work. I have also tried the XmTextFieldSetHighlight and XmtextFieldSetSelection calls. The appearance as a result of these two calls seems to be the same as the user dragging the left mouse over the field; however, when you hit the keyboard delete key the text is not deleted like it is when first holding down the left mouse and dragging it over the field yourself.
Thanks again for your time.
Thanks again for your time.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP