Hello!
First of all, I am new to C++.
The problem with the scale widget is that I get a segmentation fault when I
want to create it with more than zero decimal numbers.
beta_scale_ = XtVaCreateManag edWidget("betas cale",
xmScaleWidgetCl ass, form_left,
XmNtitleString, title,
XmNorientation, XmHORIZONTAL,
XmNminimum, 1,
XmNmaximum, 10000,
XmNdecimalPoint s, 2,
XmNshowValue, True,
XmNvalue, 100,
XmNwidth, SCALE_WIDTH,
XmNheight, SCALE_HEIGHT,
NULL);
It worked that way in C, but in C++ it only works with XmNdecimalPoint s set
to 0.
Thanks,
Daniel
--
Port State Service
666/tcp open doom 1 1826
"Daniel Tscharnuter" <sk***@skateboa rd.com> wrote... First of all, I am new to C++.
Your problem while shows up in C++ really has nothing to do with C++
but rather with Motif and its widgets. The problem with the scale widget is that I get a segmentation fault when
I want to create it with more than zero decimal numbers.
beta_scale_ = XtVaCreateManag edWidget("betas cale", xmScaleWidgetCl ass, form_left, XmNtitleString, title, XmNorientation, XmHORIZONTAL, XmNminimum, 1, XmNmaximum, 10000, XmNdecimalPoint s, 2, XmNshowValue, True, XmNvalue, 100, XmNwidth, SCALE_WIDTH, XmNheight, SCALE_HEIGHT, NULL);
It worked that way in C, but in C++ it only works with XmNdecimalPoint s
set to 0.
You need to ask about it in a newsgroup dedicated to Motif. This NG only
deals with C++ _language_ issues, and yours isn't one of them.
Victor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: maRIO5 |
last post by:
I have Mandrake 9.0 and I downloaded Motif version of eclipse,
but after I unziped, set the PATH and started:
Eclipse -data /home/mario/Documents/eclipse/
I got a message that startup.jar is not in the same directory
as its executable.
What can be wrong?
What version, Motif or GTK 2 I need for Mandrake 9.0
--
dk
|
by: Srinath Avadhanula |
last post by:
Hello,
Sorry to be bringing up what seems to be a somewhat beaten up topic...
This is what I wanted to do:
Create a _simple_ text editor widget which supports VI(M) style
keybindings but works with arbitrary fonts/unicode characters. Vi(m)
unfortunately, does not support Devanagari (or proportional fonts) and
it looks like it will take quite some time for these things to work. As
|
by: John Fouhy |
last post by:
So I've got a horizontal scale widget in my GUI. When I click the
mouse in the area to the right of the GUI, the scale advances by 1.
13
+-------------------------+
|<| X |>|
+-------------------------+
||
\/
|
by: Bulba! |
last post by:
I'll soon start development of a specialized small app and need
to choose GUI for it.
I have narrowed the choice to wxPython/PythonCard and QT/PyQT
(buying commercial licenses is not a big problem, the company
would pay for it).
Which is better for this kind of application? I mean, looking
from purely technological and long-term development aspects
and ignoring licensing issues:
|
by: ch424 |
last post by:
Hi
I'm trying to make a zooming in/out slider, but I want to make it
re-center when I let go of the mouse button on it -- i.e. it starts
with a value of 1 (in the center of the slider), then the user can drag
it to the right or left, while it does UPDATE_CONTINUOUS, but when the
user lets go, I want it to go back to 1 (its center value) again.
So, basically, my question is: Is it possible to make a scale widget
with UPDATE_CONTINUOUS...
| |
by: m7b52000 |
last post by:
Some time ago I wrote a little program in Tcl/Tk that took the values
from 3 sliders and performed a calculation using these values. The
calculation was of course automatically repeated each time a slider was
moved.
It is proving most difficult in Python. How do I pass the .get() values
to my calculating function? Do I use the command option for each
slider? e.g command = Calc(a.get()). Obviously not cos it doesn't work.
I am not a...
|
by: WLigtenberg |
last post by:
Hi,
I'm looking for a Scale like Tkinter widget that has two sliders, so
that the user can select both the upper and lower bound of some
dataset.
Much like the widgets used in spotfire: http://wiserways.com/images/2004-02-10/intro_spotfire.jpg
(see the widgets on the right of the picture)
Thanks in advance!
|
by: HalfCoded |
last post by:
Hi everyone,
I am currently working at learning perl but come up with two problems i can't clear on my own.
I use perl version 5.8 on windows xp
The complete I am working on is supposed to find motifs in a sequence.
This is the complete code
#!/usr/bin/perl -w
use strict;
|
by: willpfeiff |
last post by:
Can I use VB to emualte a Motif application front end?
Is there a Motif skin?
I have done some preliminary research but no simple answers.
Anybody tried this before?
Should I just develop on unix/linux platform?
Is there an IDE on linux that would allow me to rapid prototype?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |