Fast method to show a "settings window" II » Fuel Economy » zeerkalo
forumzeerkalo

zeerkalo



ПоискПоиск   Users   Registration   Entrance
Today: 20.05.2025 - 05:36:44
Pages:  1  

Fast method to show a "settings window" II

Advertising

.
MessageAuthor

continuing the thread I want to show a settings windows. 1) at the start, I hide all settings controls. 2) when I clicked a rect, I show a bitmat overlay with the backgound settings. 3) show all settings controls. The problem is that I'm a dummy guy :-S Code:

-----------------------------------------
Gary Gray If you can take it apart you can make it faster!

GGray

users fun




Statistics:
Messages: 6,854
Registration: 08.23.2003
29.09.20 - 20:19:29
Message # 1
RE: Fast method to show a "settings window" II

This is what I do: I enumerate all GUI controls, so I can access them by control index number rather then by parameter index number or pointer. The tricky part is I have to attach my controls in the right order. I then have a method that hides/shows all settings controls, background included. Code:

-----------------------------------------
http://animatedgif.net/facessmiles/bgantikface_e0.gif

dally

users fun




Statistics:
Messages: 8
Registration: 05.01.2002
29.09.20 - 20:27:13
Message # 2
RE: Fast method to show a "settings window" II

Thanks Tale! I have omitted an important part in the previous message, sorry. I thought I could use IBitmapOverlayControl, but it hasn't a callback (to place the unhide rutine when the rect is clicked) I think I'll have to insert into iPlug and create a control but I did not want to come to this.

-----------------------------------------

Gofast

users fun




Statistics:
Messages: 3,806
Registration: 02.13.2002
29.09.20 - 20:33:19
Message # 3
RE: Fast method to show a "settings window" II

You don't need to insert anything into IPlug, just make a control that derives from ISwitchControl in your project. Here's one I just did, a splash screen that can display some text. The .h file: Code:

-----------------------------------------

Whatup1049

users fun




Statistics:
Messages: 39
Registration: 08.13.2002
29.09.20 - 20:42:27
Message # 4
RE: Fast method to show a "settings window" II

Thanks cc_! So and now can override OnMouseDown and access to the plug controls via mPlug. like: mPlug->GetGUI()->HideControl(xcontrol,false) :)

-----------------------------------------
(On going to war over religion) "You're basically killing each other to see who's got the better imaginary friend." - Rich Jeni

ponq

users fun




Statistics:
Messages: 25
Registration: 11.25.2002
29.09.20 - 20:48:25
Message # 5
RE: Fast method to show a "settings window" II

It works!! :) Code:

-----------------------------------------
1995 M3 (sold) 1997 M3/4 (sold) 2004 GT3 2008 E90 M3 on order -- week 23 build -- DCT and 19's!

ArcticFox

users fun




Statistics:
Messages: 2,104
Registration: 12.13.2001
29.09.20 - 20:53:37
Message # 6
RE: Fast method to show a "settings window" II
new lossles codec : Previous topicNext topic: help me! my guitar tone sucks!!! conclusion
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants