Author |
Message |
Siavash
|
Posted: Mon May 25, 2009 1:46 pm Post subject: highlighting text in graphics mode |
|
|
I've been trying to highlight something with pictures on the screen. Is there any way to highlight text and have images on the screen at the same time? This works in text mode, but in text mode you can't have any pictures on the screen at the same time. In graphics or screen mode you can't highlight any text because it's just pixels. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Mon May 25, 2009 2:09 pm Post subject: RE:highlighting text in graphics mode |
|
|
It only works in text mode |
|
|
|
|
![](images/spacer.gif) |
DtY
![](http://compsci.ca/v3/uploads/user_avatars/8576159234be48b7a8b0e8.png)
|
Posted: Mon May 25, 2009 5:24 pm Post subject: RE:highlighting text in graphics mode |
|
|
What do you mean by highlight? You can set the background colour in graphics mode. |
|
|
|
|
![](images/spacer.gif) |
Siavash
|
Posted: Mon May 25, 2009 6:37 pm Post subject: RE:highlighting text in graphics mode |
|
|
I mean when you select text and are able to copy it. it is possible in text mode but how do i get it to work in graphics mode or a mode that allows me to have text and pictures. |
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Mon May 25, 2009 7:01 pm Post subject: RE:highlighting text in graphics mode |
|
|
You can print or save it as an image but cannot get text from it |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Mon May 25, 2009 7:15 pm Post subject: RE:highlighting text in graphics mode |
|
|
With some clever programming you can do it. Might not be worth it, as it would take a lot of work. |
|
|
|
|
![](images/spacer.gif) |
Siavash
|
Posted: Mon May 25, 2009 7:21 pm Post subject: RE:highlighting text in graphics mode |
|
|
ok, but how??? |
|
|
|
|
![](images/spacer.gif) |
Dusk Eagle
![](http://compsci.ca/v3/uploads/user_avatars/78727197549dd7290a342c.png)
|
Posted: Mon May 25, 2009 7:27 pm Post subject: Re: highlighting text in graphics mode |
|
|
Is this the effect you want?
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Siavash
|
Posted: Mon May 25, 2009 7:55 pm Post subject: RE:highlighting text in graphics mode |
|
|
no i mean when you highlight text and you can right click and copy the text.
try:
View.Set ("text")
put "hello world"
and you can copy the text
but it doesnt let me use graphics in text mode.
i want something that will let me use graphics but still be able to highlight text and be able to copy it from the program. |
|
|
|
|
![](images/spacer.gif) |
Dusk Eagle
![](http://compsci.ca/v3/uploads/user_avatars/78727197549dd7290a342c.png)
|
Posted: Mon May 25, 2009 8:00 pm Post subject: Re: highlighting text in graphics mode |
|
|
Is there no way to store what you were going to output to the screen as a string instead? You could then just pass the string along (or open a new window using View.Set ("text") and output the string). |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Mon May 25, 2009 8:01 pm Post subject: RE:highlighting text in graphics mode |
|
|
I'm afraid that may be beyond what you have yet learned. It involves creating your own textbox and everything, which is q bit advanced. |
|
|
|
|
![](images/spacer.gif) |
saltpro15
![](http://compsci.ca/v3/uploads/user_avatars/9776171634ced6278d14c2.png)
|
Posted: Mon May 25, 2009 8:07 pm Post subject: RE:highlighting text in graphics mode |
|
|
does this work, basically just coding what Dusk Eagle said
|
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Mon May 25, 2009 9:14 pm Post subject: RE:highlighting text in graphics mode |
|
|
That would open a new window and if it is just setscreen ("text") it cls' all the graphics |
|
|
|
|
![](images/spacer.gif) |
Siavash
|
Posted: Mon May 25, 2009 9:25 pm Post subject: RE:highlighting text in graphics mode |
|
|
Thanks insectoid
I am just not very familiar with text since i have only done pixel graphics
anyway your text box idea will work really well for me ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Kharybdis
![](http://compsci.ca/v3/uploads/user_avatars/111642592477ec7e78e574.gif)
|
Posted: Tue May 26, 2009 7:46 am Post subject: RE:highlighting text in graphics mode |
|
|
Making your own GUI would be hard... just a warning. or at least .. good GUI ... |
|
|
|
|
![](images/spacer.gif) |
|