How to draw a line and write the text in the coordinates?

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How to draw a line and write the text in the coordinates

#11 Post by Eugene Lutsenko »

Thanks, I'll try!

Actually, I just wanted to freely use in your graphic-forms which, in principle, anything of possible colors, but also the opportunity to ask them in dialogue is also very valuable. I are made available to users the opportunity, using examples from XDemo.

Somewhere XDemo I saw an example with three sliders (in my tab) to adjust the three color components of the RGB, but now I can not find. Found in eXpress++ build 259: This demo programs #3 Colors.

And you could not give a basic example of how to use: XbpColorDialog (), it's not documented ... And more interestingly, how to set the current color in Alaska indicating the brightness levels of three colors RGB.

I put my system Ajdos-X++ fully available without charge from the source at: http://lc.kubagro.ru/aidos/index.htm
Last edited by Eugene Lutsenko on Thu Dec 19, 2013 12:48 pm, edited 1 time in total.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to draw a line and write the text in the coordinates

#12 Post by rdonnay »

Look at the function DC_PopColor().
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: How to draw a line and write the text in the coordinates

#13 Post by Eugene Lutsenko »

Looked at the description, like what you need. Made a small test program based on the one in the description. Compiled and linked fine, but the performance gives an error. Can not find the library rXBTBASE1.lib, but it is nowhere and

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: How to draw a line and write the text in the coordinates

#14 Post by Auge_Ohr »

Eugene Lutsenko wrote:Somewhere XDemo I saw an example with three sliders (in my tab) to adjust the three color components of the RGB, but now I can not find. Found in eXpress++ build 259: This demo programs #3 Colors.
have a look in Xbase++ Help File for XbpSpinButton() which Sample work with RGB Color. As Slider you can use Scrollbar instead of Spinbutton.
Eugene Lutsenko wrote:And you could not give a basic example of how to use: XbpColorDialog (), it's not documented ... And more interestingly, how to set the current color in Alaska indicating the brightness levels of three colors RGB.
i have point to Alaska Newsgroup where you find working Sample Code and Comments.

XbpColorDialog() is just the Xbase++ "Wrapper" to call Common Dialog (ComDlg32.DLL) API Function "ChooseColor".
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

other Common Dialog "Wrapper" are : XbpFileDialog(), XbpPrintDialog(), XbpFontDialog()
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
greetings by OHR
Jimmy

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: How to draw a line and write the text in the coordinates

#15 Post by Auge_Ohr »

Eugene Lutsenko wrote:Compiled and linked fine, but the performance gives an error. Can not find the library rXBTBASE1.lib, but it is nowhere and
you must have something like this in your XPJ Project File

Code: Select all

COMPILE_FLAGS = /w ... /rXBTBASE1.lib /rXBTBASE2.lib
XBT -> Xb Tools
take it out and look which XBT Function it use ...
greetings by OHR
Jimmy

Post Reply