Author Topic: Windows and Text resources.  (Read 6328 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Cromer

Windows and Text resources.
« on: April 21, 2002, 11:08:47 AM »
Ok the question I have is, I have a window set up and it works just fine with the Display statement. The thing is though I would rather use a text resource to display the text that should be in the window. This would make it a little easier to make windows if it used the text resources instead of the Display command. I don't seem to know how to make it use the text from the text resource which has been bugging me.


Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Chris Cromer

Re:Windows and Text resources.
« Reply #1 on: April 21, 2002, 03:10:23 PM »
Well I have figured out how to access the text resources and then print them in the message box. The only thing is I don't know how to dispose of the window once I am done with it, it just stays on the screen and won't go away. I have tried WindowDispose but I can't seem to get it to work.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Brian Provinciano

Re:Windows and Text resources.
« Reply #2 on: April 22, 2002, 11:09:45 PM »
I've made a little demo for you of an About Box. To test it, download it:
http://www.bripro.com/scistudio/files/wndtest.zip

I updated the Event class with a getEvent().
I updated the Control class.
I created an Icon control from the Control class.
I create the Window, draw the Icon/text
I wait for an event.
I destroy the window.

The end  ;D

(ps. Get SCI Studio 2.0.4.109 04/23/2002)

Offline robingravel

Re:Windows and Text resources.
« Reply #3 on: April 23, 2002, 07:28:30 AM »
File not found error 404

Robin Gravel

Offline Brian Provinciano

Re:Windows and Text resources.
« Reply #4 on: April 23, 2002, 09:34:02 AM »

Offline Chris Cromer

Re:Windows and Text resources.
« Reply #5 on: April 23, 2002, 02:36:08 PM »
Thanks this should hopefully help me out with the windows. :)
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Chris Cromer

Re:Windows and Text resources.
« Reply #6 on: April 25, 2002, 03:31:36 PM »
Am I correct in thinking that the controls can be used to either display a view in the message window and to display text buttons in the window?
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Brian Provinciano

Re:Windows and Text resources.
« Reply #7 on: April 25, 2002, 09:36:29 PM »
The control classes have a "type" property. If the type is 1, it's a button (text with a border), if it's 4, it's an icon (a view), 6 is a list box, and so on. Check out the FreeSCI docs for more info, there's a whole page on it.

Offline Chris Cromer

Re:Windows and Text resources.
« Reply #8 on: April 25, 2002, 11:55:37 PM »
Ok, thanks. I will check out the FreeSCI page to learn more about this stuff.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.034 seconds with 17 queries.